Abstract
Many machine learning systems are vulnerable to small perturbations made to inputs at either test or training time. While much research has focused on making classifiers robust, this paper addresses the more fundamental level of dimensionality reduction. We introduce a framework for Principal Component Analysis (PCA) that remains stable even under malicious data perturbations. By constraining the "analytic sparsity" of the projection matrix, we develop the first polynomial-time algorithms with provable guarantees for finding low-dimensional representations robust to both test-time attacks and training-time data poisoning.
Introduction
Standard Principal Component Analysis (PCA) is a workhorse of data science, used to find low-dimensional subspaces that capture the most signal. However, PCA is inherently brittle. A clever adversary can slightly shift data points—often measured in the $\ell_\infty$ norm—such that the resulting subspace is completely altered, or the projection of a test point changes drastically. While existing "Robust PCA" methods handle outliers or random noise, they often fail against adversarial robustness, where an attacker can perturb every point in the dataset to maximize error.
Methodology
We formulate a new optimization problem: finding a rank-$r$ projection matrix $\Pi$ that minimizes reconstruction error while satisfying a robustness constraint defined by the $q \to 2$ operator norm ($\|\Pi\|_{q \to 2} \leq \kappa$). For the common case of $q = \infty$, this constraint forces the subspace to be "analytically sparse," meaning it is spanned by vectors that do not concentrate their energy in a few coordinates.
Algorithmic Innovation
Optimizing this directly is NP-hard. Our solution involves several key technical steps:
- Convex Relaxation: We move from discrete rank constraints to a continuous semidefinite program (SDP).
- Monotone Norms: A major hurdle was that the $q \to 2$ norm is not monotone. We discovered that the dual $q \to q^*$ norm is monotone, allowing for a stable relaxation and effective rounding.
- Rounding and Denoising: We provide a rounding scheme that achieves a "bicriteria" approximation, slightly relaxing both error and robustness. To handle poisoned training data, we introduce a convex minimization preprocessing step to "clean" the data before subspace recovery.
Empirical Validation
While primarily theoretical, our framework is grounded in real-world data analysis. We demonstrate that real-world image signals, when transformed into the Discrete Cosine Transform (DCT) basis, naturally lie in subspaces that are robust according to our definition.
This suggests that our theoretical constraints match practical data distributions, such as those found in the CIFAR-10 dataset.
Key Results
- Constant-Factor Guarantees: We provide the first polynomial-time algorithm achieving a constant-factor approximation for adversarially robust PCA in the worst case.
- Robust Clustering and Classification: We design a robust version of Lloyd’s (k-means) algorithm and show how to learn an "intersection of halfspaces" classifier that remains accurate under adversarial noise.
- Accuracy-Robustness Tradeoff: We formally demonstrate that one can intentionally trade a small amount of natural accuracy for a significant gain in robust accuracy.
Conclusion
This work establishes a deep mathematical connection between robustness to $\ell_\infty$ noise and subspace sparsity. While the reliance on SDPs introduces computational overhead, the provable stability of the learned subspaces limits an adversary's ability to manipulate representations. Future work will explore non-linear extensions and tighter approximation constants.
Summary updated