A quasi-polynomial time algorithm for Multi-Dimensional Scaling via LP hierarchies

Ainesh Bakshi, Vincent Cohen-Addad, Samuel B. Hopkins, Rajesh Jayaram, Silvio Lattanzi · OpenReview

Abstract

Multi-dimensional Scaling (MDS) is a cornerstone of data visualization and metric embedding, yet its theoretical foundations have long been constrained by high computational complexity. We present the first approximation algorithm for the Kamada-Kawai formulation of MDS that achieves a quasi-polynomial dependency on the aspect ratio $\Delta$. By leveraging a novel geometry-aware analysis of the Sherali-Adams Linear Programming (LP) hierarchy, we bypass the exponential bottlenecks of previous methods, providing a robust theoretical framework for non-linear metric embeddings in low-dimensional Euclidean space.

Introduction

In data science and machine learning, the goal of metric embedding is to map high-dimensional or abstract data points into a low-dimensional Euclidean space (typically $\mathbb{R}^2$ or $\mathbb{R}^3$) while preserving the underlying structure. While theoretical computer science has traditionally focused on bi-Lipschitz distortion—a rigid "yardstick" requiring every pair of points to maintain distance within a tight multiplicative factor—practitioners often prefer Multi-dimensional Scaling (MDS).

Specifically, the Kamada-Kawai (KK) objective minimizes the mean-squared error of multiplicative distortion across all pairs. This approach is more flexible than bi-Lipschitz measures and often yields more intuitive visualizations in fields like biology and social science. However, the KK objective is non-convex and notoriously difficult to optimize with provable guarantees.

The Aspect Ratio Bottleneck

The primary hurdle in MDS optimization has been the aspect ratio ($\Delta$), defined as the ratio between the largest and smallest distances in the input dataset. Previous state-of-the-art algorithms scaled exponentially with $\Delta$ (specifically $2^{\text{poly}(\Delta/\epsilon)}$). In real-world datasets, where distances can span several orders of magnitude, this exponential dependency renders provable methods computationally infeasible for all but the smallest or most uniform datasets.

Methodology: Geometry-Aware LP Hierarchies

The core of this work is a novel application of the Sherali-Adams LP Hierarchy. The algorithm proceeds through three main stages:

  1. Discretization: The authors demonstrate that the continuous search space of Euclidean embeddings can be restricted to a discrete "net" of points without significant loss in accuracy.
  2. Sherali-Adams Hierarchy: The problem is lifted into a higher-dimensional LP hierarchy. This creates a system of "pseudo-expectations"—local distributions over point locations that are forced to be globally consistent.
  3. Conditioning-Based Rounding: To extract a valid embedding from the LP solution, the algorithm uses a conditioning technique. A small set of "landmark" points is selected and fixed based on the LP's suggestions. The remaining points are then placed at their expected locations relative to these landmarks.

The "Secret Sauce": Geometry-Aware Analysis

The breakthrough lies in the analysis of the rounding step. Standard Sherali-Adams analysis typically results in an exponential dependence on the metric's scale. The authors developed a geometry-aware treatment, proving that in low-dimensional Euclidean space, the positions of a few well-chosen landmarks are sufficient to "localize" the entire metric. By showing that uncertainty (pseudo-deviation) is bounded by the distance to the nearest landmark, they prove that the algorithm's complexity depends only on the logarithm of the aspect ratio.

Key Results and Insights

The primary contribution is a dramatic improvement in runtime complexity. The new algorithm achieves:

  • Runtime: $n^{O(1)} \cdot 2^{\text{poly}(\log \Delta / \epsilon)}$
  • Cost: $\tilde{O}(\log \Delta) \cdot \text{OPT}^{1/k} + \epsilon$ (for target dimension $k$)

This transition from $\Delta$ to $\log \Delta$ in the exponent is the difference between an algorithm that is purely theoretical and one that approaches practical relevance for large-scale data. Furthermore, the algorithm is universal, working even if the input dissimilarities do not satisfy the triangle inequality.

MDS vs. PCA

The paper also provides formal intuition for why MDS often outperforms linear methods like Principal Component Analysis (PCA). Because MDS is non-linear, it can "bend" the embedding to capture structures (like clusters or manifolds) that a linear projection would collapse. The authors illustrate this using synthetic "Perturbed Line Metrics" and specific cluster structures where PCA fails to preserve the separation that MDS successfully recovers.

Conclusion and Future Directions

This work represents a significant step forward in the theoretical understanding of metric optimization. By breaking the aspect ratio bottleneck, it opens the door for applying high-level optimization hierarchies to practical data science problems.

Future research remains focused on two fronts:

  1. Constant-Factor Approximation: Reducing the $\log \Delta$ factor in the cost to a constant.
  2. Broadening the Scope: Extending this geometry-aware LP framework to other popular MDS variants, such as Kruskal’s Stress-1 or Sammon mapping, which are widely used in software packages like scikit-learn but currently lack strong theoretical guarantees.

Summary updated

BibTeX
@misc{bakshi2023quasi,
  author = {Ainesh Bakshi and Vincent Cohen-Addad and Samuel B. Hopkins and Rajesh Jayaram and Silvio Lattanzi},
  title = {{A quasi-polynomial time algorithm for Multi-Dimensional Scaling via LP hierarchies}},
  year = {2023},
  eprint = {2311.17840},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.17840},
}
Figure