How can classical multidimensional scaling go wrong?

Rishi Sonthalia, Greg Van Buskirk, Benjamin Raichel, Anna C. Gilbert

Introduction

Multidimensional Scaling (MDS) is a foundational tool in data science, widely used to map complex pairwise distances (dissimilarities) into a low-dimensional Euclidean space for visualization or downstream processing. The most popular variant, Classical MDS (cMDS), is highly favored because it is incredibly fast, relying on a straightforward spectral decomposition of eigenvalues.

However, cMDS was fundamentally designed for Euclidean distances. In real-world applications, data is frequently "non-Euclidean"—such as shortest paths on a graph, distances with missing values, or noisy sensor data. In these scenarios, the underlying distance matrix produces negative eigenvalues. The prevailing wisdom in dimensionality reduction has long been: "If you want a better fit, just increase the embedding dimension."

Recent research proves that for cMDS on non-Euclidean data, this intuition is dangerously flawed. Beyond a certain threshold, adding dimensions actually degrades the embedding, leading to a "U-shaped" error curve and plummeting accuracy in downstream machine learning tasks.

The Root of the Problem: A Spectral Autopsy

To understand why this degradation occurs, researchers performed a "spectral autopsy" on the cMDS error (specifically the SSTRESS or Frobenius norm error). They mathematically decomposed the total error into three distinct components:

  1. $C_1$ (The Standard Error): This represents the information lost by discarding small eigenvalues. As expected, this error always decreases as you add dimensions.
  2. $C_2$ (The Culprit): A term related to the trace of the matrix. When negative eigenvalues are present (indicating non-Euclidean, "impossible" geometries), this term eventually starts to grow quadratically as the dimension increases, dragging the total error up with it.
  3. $C_3$: A heuristic constant that remains relatively stable across dimensions.
Error decomposition on the Portugal dataset showing the C2 term driving up total error at higher dimensions.

Because the error is directly tied to the eigenvalues of the input matrix, researchers can now predict exactly at which dimension cMDS will start to "go wrong" before they even run the embedding.

The Solution: The Lower Bound Algorithm

To fix this counterintuitive degradation, the authors propose the Lower Bound Algorithm. Instead of relying on the standard cMDS projection, this algorithm projects the dissimilarity matrix onto a space of symmetric, trace-zero matrices while enforcing a rank constraint.

Think of it as a mathematical "nudge" that prevents the $C_2$ term from exploding. Crucially, it maintains the computational speed of cMDS, requiring only one or two spectral decompositions rather than the expensive iterative optimization required by non-classical MDS alternatives.

Empirical Validation and Key Results

The authors validated their findings across several types of non-Euclidean metrics, including graph-based datasets (Portugal, Celegans), Isomap-processed data (Heart), and perturbed Euclidean data simulating real-world measurement errors.

  • Stabilized Error Curves: On datasets where the relative error of standard cMDS drops initially but then skyrockets at higher dimensions, the proposed "Lower + cMDS" method keeps the error low and stable.
Comparison of relative squared error (SE) showing cMDS error increasing while the proposed Lower + MDS method remains stable.
  • Rescuing Classification Accuracy: The degradation of cMDS isn't just a theoretical curiosity; it severely impacts downstream tasks. On MNIST with missing data, a 3-layer neural network trained on standard cMDS embeddings saw its accuracy drop from ~80% to ~40% as the embedding dimension moved from 100 to 1000. By using the new algorithm, the accuracy remained stable near 80% across all dimensions.
  • Computational Efficiency: The new algorithm provides a solution that is nearly as accurate as the "optimal" (but notoriously slow) SSTRESS MDS, but at a fraction of the computational cost. This makes it highly viable for large-scale datasets where iterative methods fail.

Conclusion and Future Directions

The assumption that higher dimensions yield better representations is a fallacy when applying Classical MDS to non-Euclidean data. By decomposing the error, researchers have exposed the mathematical trap of negative eigenvalues and provided a computationally efficient workaround.

While the proposed intermediate matrix ($D_l$) provides a vastly superior input for cMDS, it is not strictly a "metric" itself (as it may violate the triangle inequality). Future research will likely explore how these insights apply to other manifold learning techniques, such as t-SNE or UMAP, which also rely on embedding data into Euclidean spaces and might suffer from similar hidden distortions when faced with non-Euclidean inputs.

Summary updated

BibTeX
@inproceedings{sonthalia2021how,
  author = {Rishi Sonthalia and Greg Van Buskirk and Benjamin Raichel and Anna C. Gilbert},
  title = {{How can classical multidimensional scaling go wrong?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=Hk1rEvSJIK},
}
Figure