MHeatmap: Two-Walk Laplacian Reordering and Mosaic Layout for Rectangular Matrix Visualization
Organizations: Harvard University, Cambridge, USA · Duke Kunshan University, Kunshan, China · Duke University, Durham, USA · Westlake University, Hangzhou, China
Abstract
Weighted rectangular matrices record relations between two types of objects, such as occupations and industries, documents and terms, origins and destinations, or annotated classes and computed clusters. Their heatmaps become difficult to read when arbitrary row and column orders scatter related objects, while equal size cells hide large differences in row and column totals. We present MHeatmap (Mosaic Heatmap), which addresses these problems in two stages. Two-Walk spectral seriation first represents the matrix as a weighted bipartite graph. Ordinary bipartite ordering uses only observed row to column links. Two-Walk also uses length-two walks, so rows that share columns and columns that share rows receive explicit similarity links. Sorting a Fiedler vector of the resulting graph Laplacian gives coordinated row and column orders. The Mosaic layout then partitions a unit square so that row height is proportional to the row total and column width is proportional to the column total, while color represents the observed entry. We prove how the Two-Walk energy combines direct alignment with shared-neighbor smoothness, derive an exact matrix vector product that permits sparse computation, and formalize the tiling and area semantics of Mosaic. Across 300 synthetic matrices and seven real data sets, Two-Walk obtains the lowest normalized 2-SUM in all 15 synthetic regimes and the highest Band@10% in 14. The largest gains occur when shared neighborhoods express the latent relational structure.
Figures & tables
| R2S | Band@10% | MWB-AUC | ||||||||||||||||||||
| O | M | HC | OW | CA | MD | TW | O | M | HC | OW | CA | MD | TW | O | M | HC | OW | CA | MD | TW | ||
| Synthetic component | ||||||||||||||||||||||
| A: Clean one-to-one | 400 360 | 16.70 | 13.84 | 10.36 | 0.52 | 0.59 | 0.79 | 0.43 | 0.20 | 0.21 | 0.24 | 0.86 | 0.85 | 0.76 | 0.90 | 0.44 | 0.47 | 0.53 | 0.92 | 0.92 | 0.89 | 0.93 |
| 200 180 | 16.88 | 13.72 | 10.67 | 0.55 | 0.63 | 0.89 | 0.42 | 0.20 | 0.23 | 0.26 | 0.87 | 0.86 | 0.78 | 0.92 | 0.44 | 0.48 | 0.54 | 0.92 | 0.92 | 0.89 | 0.94 | |
| 100 90 | 17.09 | 13.25 | 9.14 | 0.60 | 0.79 | 0.96 | 0.51 | 0.21 | 0.24 | 0.34 | 0.89 | 0.85 | 0.88 | 0.92 | 0.44 | 0.49 | 0.60 | 0.93 | 0.91 | 0.91 | 0.94 | |
| B: Paired subgroup overlap | 400 360 | 16.72 | 14.04 | 8.10 | 1.04 | 1.11 | 1.08 | 0.88 | 0.19 | 0.21 | 0.31 | 0.68 | 0.67 | 0.69 | 0.74 | 0.44 | 0.47 | 0.60 | 0.87 | 0.87 | 0.87 | 0.89 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Data Visualization
Data visualization studies how visual representations help people explore, interpret, communicate, and reason about data.
See all 121 papers