Distributed estimation of principal eigenspaces

Jianqing Fan, Dong Wang, Kaizheng Wang, Ziwei Zhu

Abstract

Principal component analysis (PCA) is fundamental to statistical machine learning, extracting latent principal factors that contribute to the most variation in data. When data are stored across multiple machines, however, communication costs can prohibit the computation of PCA in a central location. This paper proposes and studies a distributed PCA algorithm where each node machine computes its top $K$ eigenvectors and transmits them to a central server. The server then aggregates this information to conduct a global PCA. We investigate the bias and variance for the resulting distributed estimator, showing that for distributions with symmetric innovation, the empirical top eigenspaces are unbiased. We derive convergence rates that depend on the effective rank of covariance, the eigen-gap, and the number of machines. Our results demonstrate that when the number of machines is not unreasonably large, distributed PCA performs as well as whole-sample PCA, even without full access to the entire dataset.

Introduction

Principal Component Analysis (PCA) serves as the "Swiss Army knife" of dimensionality reduction, yet it faces significant scalability challenges in the era of big data. Modern datasets are frequently distributed across disparate servers due to storage limits, network bandwidth constraints, or privacy concerns—such as medical records housed in different hospitals. Moving raw data to a single central server for standard PCA is often logistically impossible or prohibited by policy.

While various distributed algorithms have been proposed, many lack the rigorous theoretical guarantees required for high-stakes statistical inference. This research addresses two critical questions: How much accuracy is sacrificed by relying on local summaries? And what is the maximum number of machines a dataset can be split across before the global estimate degrades?

The One-Shot Distributed PCA Algorithm

The paper introduces a communication-efficient, "one-shot" distributed algorithm designed to minimize the data transfer overhead. The process follows four distinct stages:

  1. Local Computation: Each of the $m$ node machines processes its local subset of $n$ samples to compute the top $K$ eigenvectors.
  2. Communication: Each machine transmits only these $K$ eigenvectors (represented as a $d \times K$ matrix) to the central server.
  3. Aggregation: The central server averages the projection matrices formed by these local eigenvectors, rather than averaging the eigenvectors themselves (which are only defined up to a sign/rotation).
  4. Final Decomposition: The server performs a final eigendecomposition on the averaged projection matrix to produce the global top $K$ eigenvectors.

This approach is computationally elegant and provides a rigorous "bias-variance" decomposition for the eigenspace. The aggregation step is shown to be essentially a "rounding" step of a Semidefinite Programming (SDP) relaxation of the centralized PCA problem.

Theoretical Insights and Convergence

The Unbiased Property

A significant finding of this work is the "unbiased" nature of the distributed estimator. For many common distributions—specifically those with "symmetric innovation," such as Gaussian distributions—the local eigenspace estimators are unbiased. This implies that aggregating results from more machines directly reduces the variance of the estimate without introducing systematic error.

Statistical Rates and the "Critical Mass" Requirement

The authors derive a convergence rate of $O(\kappa \sqrt{Kr/N})$, where $N$ is the total sample size across all machines. This matches the optimal rate for centralized PCA, suggesting that distributed processing does not inherently lead to a loss in statistical power.

However, this performance is contingent on a "not too many machines" rule. Theorem 5 identifies a sharp phase transition: if the local sample size $n$ is too small relative to the dimension and the eigengap, the aggregation fails entirely. Specifically, each machine requires a "critical mass" of data ($n \gtrsim \kappa^2 \sqrt{Kr}$) to ensure its local eigenvectors are sufficiently aligned with the truth to contribute meaningfully to the global average.

Handling Heterogeneity

The analysis extends to heterogeneous environments where different machines may have different population covariance matrices. As long as these machines share the same underlying top $K$ principal eigenspace—a common scenario in distributed factor models—the algorithm remains robust and accurate.

Empirical Validation

The theoretical results were verified through extensive Monte Carlo simulations using synthetic spiked covariance models. These simulations tested the algorithm across varying dimensions ($d$), numbers of machines ($m$), local sample sizes ($n$), and eigengaps ($\delta$). The numerical results perfectly aligned with the theory, demonstrating that the log-error scales linearly with the log of the parameters, confirming the derived convergence rates.

Limitations and Future Directions

While the one-shot algorithm is highly efficient, it relies on the assumption that data is "sub-Gaussian" (tails decaying at least as fast as a Gaussian). For heavy-tailed data, local estimators may become unstable, potentially requiring data shrinkage or robust estimation techniques. Additionally, in extremely high-dimensional settings where the one-shot estimate remains noisy, iterative refinement—involving multiple rounds of communication—could be explored to further sharpen the results. Future work may also investigate cases where the local eigenspaces are "close" but not identical, expanding the algorithm's utility in highly non-stationary environments.

Summary updated

BibTeX
@article{fan2019distributed,
  author = {Jianqing Fan and Dong Wang and Kaizheng Wang and Ziwei Zhu},
  title = {{Distributed estimation of principal eigenspaces}},
  journal = {The Annals of Statistics},
  year = {2019},
  doi = {10.1214/18-aos1713},
}
Figure