ReorderBench: A Benchmark for Matrix Reordering

Jiangning Zhu, Zheng Wang, Zhiyang Shen, Lai Wei, Fengyuan Tian, Mengchen Liu, Shixia LiuIEEE TVCG 2024 · DOI

Abstract

Matrix reordering permutes the rows and columns of a matrix to reveal meaningful visual patterns, such as blocks that represent clusters. A comprehensive collection of matrices, along with a scoring method for measuring the quality of visual patterns in these matrices, contributes to building a benchmark. This benchmark is essential for selecting or designing suitable reordering algorithms for specific tasks. In this paper, we build a matrix reordering benchmark, ReorderBench, with the goal of evaluating and improving matrix reordering techniques. This is achieved by generating a large set of representative and diverse matrices and scoring these matrices with a convolution- and entropy-based method. Our benchmark contains 2,835,000 binary matrices and 5,670,000 continuous matrices, each featuring one of four visual patterns: block, off-diagonal block, star, or band. We demonstrate the usefulness of ReorderBench through three main applications in matrix reordering: 1) evaluating different reordering algorithms, 2) creating a unified scoring model to measure the visual patterns in any matrix, and 3) developing a deep learning model for matrix reordering.

Introduction

Matrix reordering is a fundamental technique in data visualization and network analysis. By permuting rows and columns, researchers can reveal hidden structures like clusters (blocks), bi-cliques (off-diagonal blocks), or paths (bands). Effectively, it transforms noisy data into interpretable heatmaps. However, the field has historically lacked standardized evaluation. Existing datasets are often small, limited to binary values, or rely on poor proxies for quality like "degeneration levels." ReorderBench addresses this by providing a massive, human-validated benchmark that includes continuous real-valued data and a scoring metric focused on visual quality.

The ReorderBench Dataset

The authors developed a three-stage pipeline to build ReorderBench, which significantly exceeds the scale of previous efforts. The dataset includes 2,835,000 binary matrices and 5,670,000 continuous matrices, along with 450 annotated real-world matrices. These matrices are provided in sizes ranging from $100\times100$ to $400\times400$.

The generation process involves:

  1. Template Generation: Creating "perfect" templates for four patterns: Block, Off-diagonal block, Star, and Band. For continuous data, they utilize the Robinson structure, where values decrease monotonically from the main diagonal.
  2. Variation Generation: Applying varying levels of noise and index swaps to simulate real-world data complexity.
The block pattern revealed through reordering, showing both matrix and graph representations.

Scoring Visual Quality

A key contribution of ReorderBench is a novel composite scoring metric ($S$) that measures visual quality rather than just similarity to a template. This score combines:

  • Existence Score ($S^e$): Using convolutional kernels to detect pattern presence.
  • Disorder Score ($S^d$): Using entropy to measure fragmentation.
  • Deviation Score ($S^v$): Measuring violations of the Robinson condition.

A study with experts confirmed that this scoring aligns closely with human judgment (ICC of 0.789), significantly outperforming traditional metrics like Moran’s I.

Applications and Results

The benchmark enables the training of advanced models, such as a Unified Scoring Model (ConvNeXt-T) for rapid evaluation and a Deep Reordering Model (ResNet-18).

Key findings include:

  • Deep Learning Performance: The Deep Reordering Model outperformed 45 traditional algorithms across nearly all categories.
  • Complex Pattern Recognition: Traditional algorithms like Optimal Leaf Ordering (OLO) excel at finding blocks but struggle with "Star" and "Band" patterns. On continuous "Star" patterns, the Deep Model achieved a score of 0.854, compared to just 0.427 for the best traditional method (SPIN).
The star pattern, characterized by a central hub node, appears as a cross in the adjacency matrix.
  • Efficiency and Generalizability: The scoring model can evaluate a matrix in ~3.4ms. Furthermore, models trained on ReorderBench generalize well to unseen real-world datasets.

Conclusion

ReorderBench brings much-needed rigor to the field of matrix reordering. While current work focuses on single-pattern symmetric matrices, future efforts will explore hybrid patterns, non-symmetric matrices, and scalability for massive datasets. By providing a differentiable scoring model, ReorderBench paves the way for using visual quality as a direct loss function in future deep learning architectures.

Summary updated

BibTeX
@article{zhu2024reorderbench,
  author = {Jiangning Zhu and Zheng Wang and Zhiyang Shen and Lai Wei and Fengyuan Tian and Mengchen Liu and Shixia Liu},
  title = {{ReorderBench: A Benchmark for Matrix Reordering}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2024},
  doi = {10.1109/tvcg.2025.3560345},
}
Figure