NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Priming PCA with EigenGame

Bálint Máté, François FleuretarXiv 2021

Abstract: We introduce primed-PCA (pPCA), a two-step algorithm for speeding up the approximation of principal components. This algorithm first runs any approximate-PCA method to get an initial estimate of the principal components (priming), and then applies an exact PCA in the subspace they span. Since this subspace is of small dimension in any practical use, the second step is extremely cheap computationally. Nonetheless, it improves accuracy significantly for a given computational budget across datasets. In this setup, the purpose of the priming is to narrow down the search space, and prepare the data for the second step, an exact calculation. We show formally that pPCA improves upon the priming algorithm under very mild conditions, and we provide experimental validation on both synthetic and real large-scale datasets showing that it systematically translates to improved performance. In our experiments we prime pPCA by several approximate algorithms and report an average speedup by a factor of 7.2 over Oja's rule, and a factor of 10.5 over EigenGame.

Introduction

Principal Component Analysis (PCA) remains a cornerstone of data science for dimensionality reduction and feature extraction. However, as modern datasets grow to millions of dimensions ($d > 10M$), traditional exact methods like Singular Value Decomposition (SVD) become computationally prohibitive.

To address this, researchers often turn to iterative, approximate algorithms such as Oja’s rule or EigenGame. While these methods scale linearly with dimensionality, they frequently suffer from slow convergence. They typically identify the general "neighborhood" of the solution quickly but require significant time to fine-tune the exact principal directions. Primed-PCA (pPCA) is designed to bridge this gap, providing high-precision accuracy without the extended computational wait.

The pPCA Framework

The core innovation of pPCA is a simple yet powerful two-step refinement process:

  1. Priming: An existing approximate PCA algorithm is run for a limited number of steps to obtain an initial estimate of the top $k$ (or $k+l$) principal components.
  2. Subspace Refinement: The original data is projected onto the small subspace spanned by these initial estimates. An exact full-PCA is then performed on this projected data.
Algorithm 1: The Primed PCA (pPCA) procedure, illustrating the two-step approach of priming followed by subspace refinement.

Because the subspace is extremely small (often fewer than 20 dimensions), the second step is computationally negligible. The intuition is that approximate algorithms are efficient at finding the correct subspace quickly, even if individual vectors within that subspace are not yet perfectly aligned. The exact PCA step then resolves these rotations instantly.

Experimental Validation

The researchers evaluated pPCA across a diverse range of scales and data types:

  • Synthetic Data: 50-dimensional datasets with exponential and linear spectra.
  • Standard Benchmarks: MNIST, CIFAR10, and the NIPS "bag of words" dataset.
  • Large-scale Challenges: Features from a pretrained ResNet-152 ($d \approx 13.1M$) and high-resolution lobster images ($d \approx 15.6M$).

Key Results

Empirical results demonstrate that pPCA provides a systematic performance boost regardless of the underlying priming method (Power Method, Oja's, or EigenGame).

  • Significant Speedups: On average, pPCA achieved a 7.2x speedup over Oja’s rule and a 10.5x speedup over EigenGame to reach equivalent accuracy levels.
  • Improved Accuracy: In large-scale tests, pPCA identified the first four principal components in the same time the base EigenGame algorithm required to find only two.
Performance benchmarks across multiple datasets. The plots show that pPCA (solid lines) consistently reaches the maximum eigenvector streak faster than the base priming algorithms (dashed lines).

Discussion and Future Work

The authors prove that pPCA is theoretically "safe": once the priming algorithm begins to converge, the refinement step is guaranteed not to degrade performance and almost always improves it. Furthermore, for massive datasets, projecting only a 10% subset of the data for the second step is often sufficient to refine the components, further reducing overhead.

While pPCA is a robust "no-brainer" add-on, its effectiveness depends on the priming algorithm reaching an "alignment threshold" where the subspace is roughly correct. Future work may involve developing new priming algorithms specifically optimized to identify subspaces quickly, rather than individual vectors, and investigating automated ways to tune the number of extra components ($l$) based on a dataset's eigen-gap.

Summary updated

BibTeX
@misc{mate2021priming,
  author = {Bálint Máté and François Fleuret},
  title = {{Priming PCA with EigenGame}},
  year = {2021},
  eprint = {2109.03709},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.03709},
}
Figure