English

Streaming PCA: Matching Matrix Bernstein and Near-Optimal Finite Sample Guarantees for Oja's Algorithm

Machine Learning 2016-03-29 v2 Data Structures and Algorithms Neural and Evolutionary Computing Machine Learning

Abstract

This work provides improved guarantees for streaming principle component analysis (PCA). Given A1,,AnRd×dA_1, \ldots, A_n\in \mathbb{R}^{d\times d} sampled independently from distributions satisfying E[Ai]=Σ\mathbb{E}[A_i] = \Sigma for Σ0\Sigma \succeq \mathbf{0}, this work provides an O(d)O(d)-space linear-time single-pass streaming algorithm for estimating the top eigenvector of Σ\Sigma. The algorithm nearly matches (and in certain cases improves upon) the accuracy obtained by the standard batch method that computes top eigenvector of the empirical covariance 1ni[n]Ai\frac{1}{n} \sum_{i \in [n]} A_i as analyzed by the matrix Bernstein inequality. Moreover, to achieve constant accuracy, our algorithm improves upon the best previous known sample complexities of streaming algorithms by either a multiplicative factor of O(d)O(d) or 1/gap1/\mathrm{gap} where gap\mathrm{gap} is the relative distance between the top two eigenvalues of Σ\Sigma. These results are achieved through a novel analysis of the classic Oja's algorithm, one of the oldest and most popular algorithms for streaming PCA. In particular, this work shows that simply picking a random initial point w0w_0 and applying the update rule wi+1=wi+ηiAiwiw_{i + 1} = w_i + \eta_i A_i w_i suffices to accurately estimate the top eigenvector, with a suitable choice of ηi\eta_i. We believe our result sheds light on how to efficiently perform streaming PCA both in theory and in practice and we hope that our analysis may serve as the basis for analyzing many variants and extensions of streaming PCA.

Keywords

Cite

@article{arxiv.1602.06929,
  title  = {Streaming PCA: Matching Matrix Bernstein and Near-Optimal Finite Sample Guarantees for Oja's Algorithm},
  author = {Prateek Jain and Chi Jin and Sham M. Kakade and Praneeth Netrapalli and Aaron Sidford},
  journal= {arXiv preprint arXiv:1602.06929},
  year   = {2016}
}

Comments

Updated title

R2 v1 2026-06-22T12:55:25.462Z