NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

How to Evaluate Dimensionality Reduction? - Improving the Co-ranking Matrix

Wouter Lueks, Bassam Mokbel, Michael Biehl, Barbara HammerarXiv 2011

  • Improving the Co-ranking Matrix

Abstract

The growing number of dimensionality reduction (DR) methods available for data visualization has recently inspired the development of quality assessment measures, in order to evaluate the resulting low-dimensional representation independently from a methods' inherent criteria. Several (existing) quality measures can be (re)formulated based on the so-called co-ranking matrix, which subsumes all rank errors (i.e. differences between the ranking of distances from every point to all others, comparing the low-dimensional representation to the original data). The measures are often based on the partitioning of the co-ranking matrix into 4 submatrices, divided at the K-th row and column, calculating a weighted combination of the sums of each submatrix. Considering simple artificial examples, we argue that this parameter controls two notions at once, that need not necessarily be combined, and that the rectangular shape of submatrices is disadvantageous for an intuitive interpretation of the parameter. We propose to replace K with two parameters to control these notions separately, and introduce a differently shaped weighting on the co-ranking matrix. Moreover, we propose a color representation of local quality to visually support the evaluation process for a given mapping.

Introduction: The Challenge of Evaluating Dimensionality Reduction

Dimensionality reduction (DR) techniques like t-SNE, PCA, or LLE are essential for visualizing high-dimensional data in 2D or 3D. However, evaluating whether these mappings faithfully represent the original data structure remains an ill-posed problem. Different algorithms often yield vastly different visualizations, making objective comparison difficult.

A common tool for evaluation is the co-ranking matrix, which compares the rank of distances between points in high-dimensional space versus low-dimensional space. The standard quality measure, $Q_{NX}(K)$, relies on a single parameter $K$ to partition this matrix into four submatrices: mild/hard intrusions and mild/hard extrusions.

Standard partitioning of the co-ranking matrix into four quadrants based on parameter K.

The authors identify a fundamental flaw in this approach: the parameter $K$ is overloaded. It simultaneously defines the "region of interest" (neighborhood size) and the error threshold. This rigid rectangular partitioning ignores the actual magnitude of rank errors. For instance, a point shifting from rank 1 to $K$ is ignored, but a shift from $K$ to $K+1$ is penalized, leading to scores that do not align with human perception.

Methodology: Decoupling Neighborhood and Tolerance

To address the limitations of the $K$ parameter, the authors propose decoupling it into two distinct, intuitive parameters:

  1. $\kappa_s$ (Rank Significance): Defines the neighborhood size or region of interest (which ranks are actually evaluated).
  2. $\kappa_t$ (Error Tolerance): Defines the maximum acceptable difference between a point's high-dimensional rank and low-dimensional rank.

By replacing the rectangular sum with a sum over a diagonal band, the new metric $Q'_{NX}(\kappa_s, \kappa_t)$ directly measures absolute rank deviation. This allows for a more flexible evaluation where rank errors are tolerated up to a specific threshold.

Additionally, the authors derive a local quality assessment metric. By calculating symmetric point-wise errors, they assign a quality value to every point in the dataset. This value is then used to color the points in the final 2D/3D scatter plot, providing immediate visual feedback on local distortions and mapping trustworthiness.

Evaluation and Key Results

The proposed metric was validated using both artificial and real-world datasets.

Artificial 1D Swapping Dataset

The authors used a synthetic line of equidistant points where adjacent pairs are swapped. This creates a known, minor, uniform rank error (maximum error of 4).

Artificial 1D dataset with local swaps used to demonstrate the limitations of the standard Q_NX(K) metric.

On this dataset, the standard $Q_{NX}(K)$ metric fails to reach a perfect score for $K \ge 5$, which is counter-intuitive given the minimal distortion. In contrast, the proposed $Q'_{NX}$ correctly yields a perfect 1.0 as long as the error tolerance $\kappa_t$ is set appropriately (e.g., $\ge 4$).

Swiss Roll Manifold

Applying the local quality coloring to a t-SNE projection of the Swiss Roll dataset demonstrated practical utility. The metric successfully highlighted regions where the algorithm "tears" the manifold or creates artifacts in the inner spiral. This gives users an immediate heatmap of which parts of the DR plot they can trust and which parts are artifacts of the algorithm.

Conclusion

By refining the co-ranking matrix evaluation with decoupled parameters and local quality visualization, this work provides a more nuanced and intuitive framework for assessing dimensionality reduction. Future work may explore smooth weighting functions to replace the current hard cut-offs for rank significance and error tolerance, further improving the metric's alignment with gradual neighborhood decay.

Summary updated

BibTeX
@misc{lueks2011how,
  author = {Wouter Lueks and Bassam Mokbel and Michael Biehl and Barbara Hammer},
  title = {{How to Evaluate Dimensionality Reduction? - Improving the Co-ranking Matrix}},
  year = {2011},
  eprint = {1110.3917},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1110.3917},
}
Figure