Introduction
High-dimensional data, such as million-pixel images, is ubiquitous in modern machine learning. Dimensionality reduction (DR) is essential to manage computational and storage costs. While Principal Component Analysis (PCA) is the standard approach, it optimizes for the sum of squared distances, making it highly sensitive to outliers. A single anomalous point can disproportionately skew the resulting subspace.
A more robust alternative is the sum-of-distances metric, which minimizes the sum of un-squared distances ($\sum \|a_i - s\|_2$). However, finding an efficient DR procedure for this metric has historically been challenging. Previous methods either required exponential time relative to the subspace dimension $k$ or lacked strong approximation guarantees for general "shapes" (like $k$-median centers or $k$-subspaces).
This paper introduces the first polynomial-time dimensionality reduction algorithm for the sum-of-distances metric. It allows high-dimensional data to be projected into a much smaller subspace while preserving the cost of fitting the data to any $k$-dimensional shape within a $(1 \pm \epsilon)$ factor.
Methodology
The authors propose a near-linear time algorithm that takes an $n \times d$ matrix $A$ and outputs a subspace $P$ of dimension $O(k^3/\epsilon^6)$. This is achieved through several key technical innovations:
- Iterative Adaptive Sampling: Instead of a one-shot projection, the algorithm builds the subspace adaptively. It repeatedly finds "bicriteria" solutions—subspaces slightly larger than $k$ that provide a good initial approximation—and uses residual sampling to select poorly represented points to refine the subspace.
- Lopsided Embeddings & Lewis Weights: To accelerate the process, the authors employ sketching techniques like Lewis weight sampling and lopsided embeddings. These allow for quick approximate solutions without processing the entire high-dimensional matrix in every iteration.
- Fast Dense Matrix Handling: For dense matrices, a novel block-partitioning sampling scheme is introduced. This estimates sampling probabilities in $\tilde{O}(nd)$ time by leveraging fast rectangular matrix multiplication.
Key Insights
- Robustness by Design: Targeting the sum-of-distances inherently stabilizes the resulting subspace against noisy data and outliers.
- Shape-Fitting Generality: The target "shape" $S$ can be any set of points in a $k$-dimensional subspace, making this DR procedure highly versatile for problems like $k$-median clustering and $k$-subspace approximation.
- Breaking the Exponential Barrier: The algorithm achieves a running time polynomial in $k$ and $1/\epsilon$, a significant theoretical leap over prior state-of-the-art methods that were exponential.
- Adaptive vs. Oblivious: Unlike the Johnson-Lindenstrauss transform, which is "oblivious" to the data, this method is data-dependent, allowing it to find much lower-dimensional representations tuned to the dataset's specific structure.
Results & Evaluation
The algorithm's theoretical efficiency is notable, running in $\tilde{O}(\text{nnz}(A)/\epsilon^2 + (n+d)\text{poly}(k/\epsilon))$ time—nearly linear with respect to the input's non-zero entries. It successfully reduces the ambient dimension $d$ to a target dimension $r \approx O(k^3/\epsilon^6)$.
Empirically, the authors evaluated their approach on synthetic data (10,000 points in 10,000 dimensions with heavy-tailed Cauchy noise) and real-world data (a 10,000-sample subset of the CoverType dataset).
In these experiments, the proposed subspace consistently outperformed random projections and PCA (Singular Value Decomposition) when measuring the sum-of-distances objective. This advantage was particularly pronounced at lower target dimensions, demonstrating significantly higher accuracy than PCA on the noisy synthetic dataset.
Limitations and Future Work
While the complexity is polynomial, the target dimension $O(k^3/\epsilon^6)$ remains theoretically large. Future work could aim to reduce these exponents for even smaller representations. Additionally, practical performance may be influenced by large constant factors hidden in the polynomial terms. Finally, extending these efficient DR techniques to general $L_p$ metrics (where $p \neq 1, 2$) remains an open challenge.
Summary updated