# MHeatmap: Two-Walk Laplacian Reordering and Mosaic Layout for Rectangular Matrix Visualization

DevFeed: [MHeatmap: Two-Walk Laplacian Reordering and Mosaic Layout for Rectangular Matrix Visualization](<https://devfeed.tech/articles/mheatmap-two-walk-laplacian-reordering-and-mosaic-layout-for-rectangular-matrix-visualization-94877.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.29114>)

Author: Juntang Wang, Sheng'en Li, Liming Zhu, Yihan Wang, Siyuan Cao, Hao Wu, Man Zhang, Shixin Xu, Dongmian Zou

Published: 2026-10-22T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [ordering](<https://devfeed.tech/topics/ordering.md>), [layout](<https://devfeed.tech/topics/layout.md>)

Tags: [cells](<https://devfeed.tech/tags/cells.md>), [color](<https://devfeed.tech/tags/color.md>), [column](<https://devfeed.tech/tags/column.md>), [cs-hc](<https://devfeed.tech/tags/cs-hc.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [graph](<https://devfeed.tech/tags/graph.md>), [heatmap](<https://devfeed.tech/tags/heatmap.md>), [layout](<https://devfeed.tech/tags/layout.md>), [matrix](<https://devfeed.tech/tags/matrix.md>), [ordering](<https://devfeed.tech/tags/ordering.md>), [orders](<https://devfeed.tech/tags/orders.md>), [partitions](<https://devfeed.tech/tags/partitions.md>), [vector](<https://devfeed.tech/tags/vector.md>), [visualization](<https://devfeed.tech/tags/visualization.md>)

## AI overview

MHeatmap combines coordinated row and column ordering with a size-aware layout for weighted rectangular matrices. Two-Walk spectral seriation treats the matrix as a weighted bipartite graph and adds length-two shared-neighbor links; sorting a Fiedler vector produces the orders. Mosaic then makes row height proportional to row totals and column width proportional to column totals, with color showing each entry. The authors report the lowest normalized 2-SUM in all 15 synthetic regimes and the highest Band@10% in 14; gains are largest when shared neighborhoods reflect latent structure. The abstract also describes an exact matrix-vector product for sparse computation.

## Source excerpt

arXiv:2610.29114v1 Announce Type: new 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.