Input Sparsity and Hardness for Robust Subspace Approximation

Kenneth L. Clarkson, David P. Woodruff

Introduction

In data science and machine learning, dimensionality reduction is a fundamental task used to find low-dimensional structures within high-dimensional datasets. The most common approach is Principal Component Analysis (PCA), which seeks a $k$-dimensional subspace $F$ that minimizes the sum of squared Euclidean distances to the data points (the $L_2$ norm). While PCA is computationally efficient via the Singular Value Decomposition (SVD), it is notoriously sensitive to outliers. Because the distances are squared, a single outlier far from the main data cluster can disproportionately influence the resulting subspace.

To address this, researchers turn to Robust Subspace Approximation. This involves minimizing the sum of the $p$-th powers of distances for $p \in [1, 2)$, or using M-estimators like the Huber or Tukey loss functions. These loss functions grow more slowly than the $L_2$ norm, making the resulting subspaces far more resilient to noise and outliers. However, this robustness comes at a significant computational cost. This paper provides a comprehensive analysis of the algorithmic complexity and hardness of these robust measures.

The Computational Gap: NP-Hardness for $p < 2$

A central contribution of this work is resolving the complexity of the $L_p$ subspace approximation problem. For decades, it has been known that the $p=2$ case is solvable in polynomial time. However, the status of the problem for $p \in [1, 2)$ remained an open question, famously posed by Kannan and Vempala.

The authors prove that for any $p \in [1, 2)$, the problem is NP-hard, even to achieve a $(1 + 1/\text{poly}(d))$-approximation. This result complements previous findings that established hardness for $p > 2$. The proof utilizes a reduction from the Maximum Clique problem, demonstrating that the geometry of the $L_p$ norm for $p < 2$ can be used to encode hard combinatorial problems. This establishes a fundamental "singularity" at $p=2$: it is the only value in the $L_p$ family for which the problem is efficiently solvable.

Algorithmic Innovations: Input-Sparsity and Sketching

Despite the hardness results, the paper provides efficient $(1+\epsilon)$-approximation algorithms that run in "input-sparsity time." This means the runtime is dominated by $O(\text{nnz}(A))$, where $\text{nnz}(A)$ is the number of non-zero entries in the input matrix $A$. This is a critical threshold for Big Data applications where the data matrix is often large but sparse.

$L_p$ Approximation

For minimizing the sum of $p$-th powers of distances ($1 \le p < 2$), the authors present an algorithm with a runtime of: $$O(\text{nnz}(A) + (n+d)\text{poly}(k/\epsilon) + \exp(\text{poly}(k/\epsilon)))$$ This is achieved through Input-Sparsity Sketching and Lopsided Embeddings. These randomized linear algebra techniques compress the $n \times d$ matrix into a much smaller representation while preserving the underlying geometry of the subspace. While the exponential dependence on $k$ (the target dimension) remains, the linear dependence on the input size $n$ and $d$ makes it viable for high-dimensional data when $k$ is small.

Handling M-Estimators

M-estimators, such as the Huber loss, present a unique challenge because they are not scale-invariant. Unlike $L_p$ norms, the behavior of an M-estimator changes depending on the magnitude of the residual. To solve this, the authors developed a Recursive Importance Sampling strategy.

Instead of a single pass of sketching, the algorithm iteratively reduces the problem size. For a wide class of M-estimators, they achieve a reduction to a problem size that depends only on $\text{poly}(\log n, k, 1/\epsilon)$. Specifically, the reduction takes $O(\text{nnz}(A) \log n + (n+d) \text{poly}(K/\epsilon))$ time, where $K$ is a logarithmic factor in $n$. This allows practitioners to shrink massive datasets down to a manageable "coreset" before applying more intensive optimization solvers.

Broader Implications: Regression and Beyond

The techniques developed for subspace approximation also yield dividends in the field of robust regression. The paper provides the first $O(\text{nnz}(A) + \text{poly}(d/\epsilon))$ time algorithms for $(1+\epsilon)$-approximate regression for a wide class of convex M-estimators. This improves upon previous methods that typically had a higher dependence on the dimensionality $d$ or the number of points $n$.

Conclusion and Future Directions

This research clarifies the landscape of robust dimensionality reduction. By proving NP-hardness for $p \in [1, 2)$, it defines the theoretical limits of what can be computed exactly. Simultaneously, the input-sparsity algorithms provide a practical path forward for processing massive, noisy datasets.

Future work remains in addressing the "exponential tail" of the $L_p$ algorithm. While the current dependence on $k$ is exponential, finding a purely polynomial-time $(1+\epsilon)$-approximation—or proving that such an algorithm cannot exist—remains a significant challenge in theoretical computer science. Additionally, extending these "input-sparsity" results to non-convex M-estimators or more complex loss functions could further bridge the gap between theoretical robustness and practical data analysis.

Summary updated

Abstract

In the subspace approximation problem, we seek a k-dimensional subspace F of R <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">d</sup> that minimizes the sum of p-th powers of Euclidean distances to a given set of n points a <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">1</sub> ,⋯, a <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">n</sub> ∈ R <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">d</sup> , for p ≥ 1. More generally than minimizing Σ <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">i</sub> dist(a <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">i</sub> F) <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">p</sup> , we may wish to minimize Σ <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">i</sub> M(dist(a <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">i</sub> , F)) for some loss function M(), for example, M-Estimators, which include the Huber and Tukey loss functions. Such subspaces provide alternatives to the singular value decomposition (SVD), which is the p = 2 case, finding such an F that minimizes the sum of squares of distances. For p E [1, 2), and for typical M-Estimators, the minimizing F gives a solution that is more robust to outliers than that provided by the SVD. We give several algorithmic results for these robust subspace approximation problems. We state our results as follows, thinking of the n points as forming an n × d matrix A, and letting nnz(A) denote the number of non-zero entries of A. Our results hold for p ∈ [1, 2). We use poly(n) to denote n <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">O(1)</sup> as n → ∞. 1) For minimizing Σ <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">i</sub> dist(a <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">i</sub> , F) <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">p</sup> , we give an algorithm running in O(nnz(A) + (n + d)poly(k/ε) + exp(poly(k/ε))) 2) We show that the problem of minimizing Σ <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">i</sub> dist(a <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">i</sub> , F) <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">p</sup> is NP-hard, even to output a (1 + 1/poly(d))-approximation. This extends work of Deshpande et al. (SODA, 2011) which could only show NP-hardness or UGC-hardness for p > 2; their proofs critically rely on p > 2. Our work resolves an open question of [Kannan Vempala, NOW, 2009]. Thus, there cannot be an algorithm running in time polynomial in k and 1/ε unless P = NP. Together with prior work, this implies that the problem is NP-hard for all p ≠ 2. 3) For loss functions for a wide class of M-Estimators, we give a problem-size reduction: for a parameter K = (log n)O(log k), our reduction takes O(nnz(A) logn + (n + d)poly(K/ε)) time to reduce the problem to a constrained version involving matrices whose dimensions are poly(Kε <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">-1</sup> log n). We also give bicriteria solutions. 4) Our techniques lead to the first O(mmz(A) + poly(d/ε)) time algorithms for (1 + ε)-approximate regression for a wide class of convex M-Estimators. This improves prior results [1], which were (1 + ε)-approximation for Huber regression only, and O(1)-approximation for a general class of M-Estimators.
BibTeX
@inproceedings{clarkson2015input,
  author = {Kenneth L. Clarkson and David P. Woodruff},
  title = {{Input Sparsity and Hardness for Robust Subspace Approximation}},
  booktitle = {FOCS},
  year = {2015},
  url = {https://openreview.net/forum?id=ewaopav423n},
}
Figure