Ensemble Principal Component Analysis

Olga Dorabiala, Aleksandr Y. Aravkin, J. Nathan Kutz

Principal Component Analysis (PCA) is the undisputed workhorse of dimensionality reduction. Whether you are visualizing high-dimensional clusters or compressing images, PCA is likely your first stop. However, it has two Achilles' heels: it is notoriously sensitive to outliers, and it provides a "point estimate" without any measure of uncertainty.

In a recent paper, researchers from the University of Washington introduce Ensemble Principal Component Analysis (EPCA), a scalable framework that makes PCA robust to noise while providing built-in "error bars" for your features.

TL;DR

EPCA combines bootstrapped PCA with k-means clustering to create a dimensionality reduction method that is resistant to outliers and provides natural uncertainty quantification. It offers orders of magnitude speedup over Robust PCA (RPCA) while outperforming both classical PCA and RPCA on datasets contaminated with outliers.

What Problem Does This Paper Address?

Standard PCA works by finding the directions of maximum variance in a dataset. Unfortunately, because it relies on squared distances, a single extreme outlier can "tug" the principal components (PCs) far away from the true underlying structure of the data.

While Robust PCA (RPCA) was developed to handle this by decomposing data into low-rank and sparse (noise) components, it suffers from two major drawbacks:

  1. Computational Cost: RPCA involves complex optimization that doesn't scale well to "big data."
  2. Lack of Uncertainty: Neither PCA nor RPCA tells you how confident you should be in the resulting components. If you re-sampled your data, would you get the same result?

The authors set out to create a method that is as scalable as classical PCA but as robust as RPCA, with the added benefit of Uncertainty Quantification (UQ).

Methods

The core innovation of EPCA is how it aggregates multiple PCA models. The workflow follows these steps:

  1. Bootstrapping: The algorithm takes $B$ random "bags" (subsamples) from the original data.
  2. Individual PCAs: It runs a standard PCA on each bag.
  3. The Aggregation Challenge: You can't just average the results. PCA has "sign ambiguity" (a vector and its negative represent the same axis) and "reordering" issues (noise might cause the 1st and 2nd components to swap places between bags).
  4. K-Means Clustering: To solve this, EPCA stacks all the components from all bags along with their reflections (negative versions). It then uses k-means clustering to find $2d$ clusters.
  5. Consensus: The cluster centers represent the final, stable principal components. Because we have a distribution of components across different bags, we can calculate confidence intervals (CIs) for each feature.

Datasets

The authors evaluated EPCA across seven datasets ranging from small classical benchmarks to large-scale climate data:

  • Small: Iris, Wine, and Breast Cancer Wisconsin (WBC).
  • Medium: A synthetic wave dataset and MNIST handwritten digits (0 and 1).
  • Large: Sea Surface Temperature (SST) data ($1726 \times 64800$ matrix).

They tested these against four types of noise: sparse noise, Gaussian white noise, uniform white noise, and gross outliers.

Key Insights and Ideas

  • K-Means as a Consensus Mechanism: Using k-means to aggregate bootstrapped models is a clever way to bypass the sign-flip and reordering problems that usually plague ensemble manifold learning.
  • The "Muting" Effect: By choosing smaller bag sizes for outlier-heavy data, the algorithm effectively "mutes" the outliers. The probability of an outlier dominating a small random bag is much lower than its impact on the full dataset.
  • Scalability is Inherited: Since EPCA uses standard PCA as its inner loop, it scales linearly with the number of bags. This makes it feasible for massive datasets where RPCA simply times out.
  • Visualizing Uncertainty: The paper demonstrates that on clean data, the confidence intervals for PCs are tight. On corrupted data, the intervals widen, giving practitioners a clear visual signal of how much to trust their dimensionality reduction.

Key Results

  • Speed: On the large SST dataset, RPCA failed to produce a result within a 120-second timeout. EPCA, however, ran in roughly the same order of magnitude as classical PCA.
  • Outlier Performance: In scenarios with up to 15% outliers, EPCA consistently achieved the lowest relative error compared to both PCA and RPCA.
  • Robustness Trade-offs: While RPCA remains the gold standard for sparse noise (where many individual entries are slightly corrupted), EPCA is the clear winner for outliers (where entire rows/observations are corrupted).
  • UQ Accuracy: The 95% confidence intervals generated by EPCA successfully captured the "true" principal components even when the data was significantly noisier.

Limitations and Future Work

The authors note a few areas for improvement:

  • Breakdown Point: If the percentage of outliers exceeds ~15-20%, the bootstrapping process is likely to include outliers in too many bags, causing the consensus to drift.
  • Parameter Tuning: The bag size $n$ needs to be adjusted based on the expected noise type (larger for white noise, smaller for outliers), which requires some prior knowledge of the data's corruption.
  • Parallelization: Because each "bag" in the ensemble is independent, the authors suggest that EPCA is a prime candidate for massive parallelization on GPUs or distributed clusters, which could further widen its lead over optimization-heavy methods like RPCA.

Check out the code: https://github.com/OlgaD400/EPCA

Summary updated

BibTeX
@inproceedings{dorabiala2024ensemble,
  author = {Olga Dorabiala and Aleksandr Y. Aravkin and J. Nathan Kutz},
  title = {{Ensemble Principal Component Analysis}},
  booktitle = {IEEE Access},
  year = {2024},
  doi = {10.1109/access.2024.3350984},
}
Figure