A Randomized Algorithm for Sparse PCA based on the Basic SDP Relaxation

Alberto Del Pia, Dekun ZhouarXiv 2025 · DOI

Introduction

Principal Component Analysis (PCA) is a fundamental tool in dimensionality reduction and data analysis. However, a significant drawback of standard PCA is that the resulting principal components are typically linear combinations of all input variables. In domains such as genomics, finance, and social science, this lack of sparsity makes the results difficult to interpret.

Sparse PCA (SPCA) addresses this by constraining the principal components to involve only a subset of $k$ features. While this improves interpretability, it transforms a simple eigenvalue problem into an NP-hard combinatorial optimization challenge. Historically, researchers have struggled to find polynomial-time algorithms that offer tight approximation guarantees. Prior to this work, the best-known approximation ratio for SPCA was roughly $\min\{\sqrt{k}, d^{1/3}\}$, which often proves too loose for high-dimensional datasets.

The Proposed Framework: SDP Relaxation and Randomized Rounding

This paper introduces a randomized algorithm that bridges the gap between theoretical guarantees and practical performance. The approach consists of two primary stages:

  1. Semidefinite Programming (SDP) Relaxation: The authors utilize the standard convex relaxation of the SPCA problem, known as SPCA-SDP. This transforms the discrete, non-convex search for a sparse vector into a continuous optimization problem over the space of positive semidefinite matrices. While the resulting matrix $W^*$ is "fuzzy" (not necessarily sparse or rank-one), it provides a globally optimal starting point in polynomial time.
  2. Randomized Rounding: The core innovation lies in the rounding scheme used to extract a sparse vector from the SDP solution. The algorithm treats the diagonal entries of the SDP solution $W^*$ and the input matrix $A$ as probability masses to sample a support set $S$. By solving a localized PCA problem on this restricted subset of features, the algorithm identifies a high-quality sparse principal component.

To ensure the method scales to modern datasets, the authors implement the Conditional Gradient Augmented Lagrangian (CGAL) framework. This allows the SDP to be solved using GPU acceleration, bypassing the memory and computational bottlenecks of traditional interior-point solvers.

Theoretical Contributions

The authors provide a rigorous analysis of the algorithm's performance, yielding several key insights:

  • The $O(\log d)$ Approximation: Under a mild technical condition called the Sum of Square Roots (SSR)—which relates to the decay of eigenvalues in the SDP solution—the algorithm achieves an average approximation ratio of $O(\log d)$. This represents a significant theoretical improvement over the previous $\sqrt{k}$ benchmarks.
  • Adversarial Robustness: The algorithm is shown to be robust against adversarial noise. The authors prove that the method can recover the underlying sparse signal even when the input matrix is subjected to perturbations, generalizing the standard "spiked Wishart" model used in statistical analysis.
  • Efficiency of Multi-run Sampling: By iterating the randomized rounding process, the probability of failing to capture the optimal support set decreases exponentially, making the algorithm highly reliable in practice.

Experimental Evaluation

The algorithm was benchmarked against seven real-world datasets, including gene expression data (Eisen1, Eisen2, CovColon, LymphomaCov), text data (News), and social media data (Reddit1500, Reddit2000). Dimensions ranged from $d=79$ to $d=2,000$.

Key Results:

  • Accuracy: Across 41 benchmark instances, the randomized algorithm (RA) achieved the highest objective value in 75% of the cases, outperforming or matching established techniques like the Greedy algorithm and Local Search.
  • Computational Speed: The RA approach demonstrated remarkable efficiency, running approximately 312 times faster than Branch-and-Bound (an exact solver) and 15 times faster than other competitive low-rank approximation methods.
  • Scalability: Utilizing GPU-accelerated CGAL, the authors solved SDPs for $d=2,000$ in under six seconds, a significant milestone for SDP-based sparse PCA.

Conclusion and Future Directions

This research provides a powerful new tool for Sparse PCA that combines the theoretical rigor of SDP relaxations with the speed of randomized algorithms. While the $O(\log d)$ guarantee is near-optimal for this class of algorithms, the authors identify future avenues for research, including the application of this rounding scheme to even tighter (though more computationally expensive) SDP relaxations and the development of first-order methods to handle datasets where $d > 5,000$.

Summary updated

BibTeX
@misc{pia2025randomized,
  author = {Alberto Del Pia and Dekun Zhou},
  title = {{A Randomized Algorithm for Sparse PCA based on the Basic SDP Relaxation}},
  year = {2025},
  eprint = {2507.09148},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.09148},
}
Figure