Dimensionality reduction: theoretical perspective on practical measures

Yair Bartal, Nova Fandina, Ofer NeimanNeurIPS 2019

This paper addresses a long-standing "theory-practice gap" in how we evaluate dimensionality reduction. While practitioners have long relied on average-case measures like Stress and Energy to evaluate embeddings, theoretical researchers have historically focused on worst-case distortion. This paper provides the first rigorous theoretical framework for these practical measures.

TL;DR

The authors bridge the gap between theoretical metric embedding and practical dimensionality reduction by providing the first rigorous analysis of average-case distortion measures (like Stress and Energy). They demonstrate that the Johnson-Lindenstrauss (JL) transform is near-optimal for these measures and identify a sharp "phase transition" that dictates how many dimensions are needed to keep distortion low.

What Problem Does This Paper Address?

Dimensionality reduction is a cornerstone of modern machine learning, used to make high-dimensional data manageable for algorithms. However, there has been a disconnect between how theorists and practitioners measure success:

  1. The Theoretical View: Focuses on worst-case distortion. It asks: "What is the maximum amount any pair of points is stretched or shrunk?" This often leads to very pessimistic lower bounds that don't reflect real-world performance.
  2. The Practical View: Focuses on average-case measures like Stress (used in Multi-Dimensional Scaling), Energy, and Relative Error. These measures care about how the "typical" pair of points behaves.

Because there was no rigorous theory for these average-case measures, practitioners often relied on heuristics (like PCA or Isomap) without knowing their theoretical limits, and theorists lacked the tools to analyze the metrics that actually matter in applied ML.

Methods

The authors employ a mix of probabilistic analysis and optimization theory:

  • Moment Analysis: They analyze the $q$-moments of distortion. By studying how these moments behave, they can provide bounds for a wide variety of measures, including the recently proposed $\sigma$-distortion.
  • JL Transform Analysis: They specifically study the performance of the Gaussian Johnson-Lindenstrauss transform. While JL is famous for preserving distances, this paper proves exactly how well it performs under average-case criteria.
  • Convex Programming: To move beyond just analyzing existing transforms, the authors develop new approximation algorithms. They show that for many of these measures, you can formulate a convex optimization problem to find a high-dimensional embedding and then use JL to project it down to the target dimension $k$ with provable guarantees.

Datasets

The paper validates its theoretical findings using synthetic datasets designed to test metric properties:

  • Random Euclidean Metrics: Points sampled from high-dimensional Normal distributions.
  • Non-Euclidean Metrics: Created by taking Euclidean points and injecting controlled noise into the inter-point distances. This ensures the data follows the triangle inequality but cannot be perfectly represented in any Euclidean space, providing a harder test for the algorithms.

Key Insights and Ideas

  • The Phase Transition: One of the most striking findings is a "phase transition" in distortion. When the target dimension $k$ is significantly larger than the "moment" $q$ being measured, distortion is low and independent of the number of points ($n$). However, as $q$ approaches $k$, the distortion begins to grow, and once $q > k$, it explodes, becoming dependent on $n$.
  • JL > PCA/Isomap: For the purpose of preserving metric structure (as measured by Stress or Energy), the random JL transform consistently outperforms popular heuristics like PCA and Isomap.
Comparison of $l_q$ distortion across target dimensions for PCA, Isomap, and JL.
  • Dimension Independence: In the "good" regime ($q < k$), the bounds for the JL transform do not depend on the original dimension $d$. This counters some previous intuitions that suggested the original dimensionality might hinder average-case performance.
Distortion vs. input space dimension $d$, showing JL's dimension independence.

Key Results

  • Tight Bounds: The authors provide nearly tight upper and lower bounds for $q$-distortion. For example, when $q < \sqrt{k}$, the distortion is roughly $1 + O(1/\sqrt{k})$.
  • Algorithmic Guarantees: They present the first polynomial-time approximation algorithms for embedding general metrics into $k$ dimensions with provable bounds for Stress, Energy, and REM (Relative Error Measure).
  • Empirical Validation: Their experiments clearly show the predicted phase transition, providing a practical "rule of thumb": to keep average distortion low, your target dimension $k$ should be comfortably larger than the moment $q$ you care about.

Limitations and Future Work

  • Metric Preservation vs. Structure Preservation: The paper focuses strictly on measures that attempt to preserve the underlying metric (distances). It does not address "local structure" heuristics like t-SNE or UMAP, which prioritize cluster preservation over global distance accuracy.
  • Implementation Sensitivity: The authors note that while the Gaussian JL transform performs excellently, other versions (like sparse or fast JL) can actually result in unbounded average distortion in certain cases.
  • Scale Invariance: While the authors mention that their measures can be adapted to be scale-invariant, the primary analysis focuses on the non-scale-invariant versions for simplicity. Exploring the nuances of scale-invariant optimization remains a potential area for deeper study.

Summary updated

BibTeX
@inproceedings{bartal2019dimensionality,
  author = {Yair Bartal and Nova Fandina and Ofer Neiman},
  title = {{Dimensionality reduction: theoretical perspective on practical measures}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure