Streaming principal component analysis (PCA) keeps a running estimate of the few directions along which incoming data varies most, without ever storing the full covariance matrix. In real streams the underlying directions drift, so the tracker must forget old data. Every existing tracker then makes two choices that the theory treats as fixed and known: how much to forget, and how many directions to track. The difficulty is that these choices interact. The tracker can tell two directions apart only if the variance gap between them, the "spectral gap," is large compared to the noise in its estimate, and that noise depends on how much data it remembers. Forgetting faster lets the tracker follow drift, but it also blurs nearby eigenvalues into a cluster it can no longer separate. If the tracked rank cuts through such a cluster, the estimate rotates unpredictably and the error stops shrinking, no matter how well the forgetting rate is tuned.
We propose a streaming tracker that chooses, at every moment, the pair (memory length, rank boundary) that the current data can support. It keeps a small set of trackers with different forgetting rates, all sharing one oversampled basis. It places the rank boundary only at a spectral gap that is statistically resolvable at the chosen memory. It picks the memory by comparing the trackers' subspace estimates directly with one another, not by comparing their reconstruction errors on new data. The claim is that under drift, the right target is the subspace spanned by a whole eigenvalue cluster, whose boundary gap is resolvable at the chosen memory. The error should then depend only on that boundary gap, not on the near-zero gaps inside the cluster that cause existing guarantees to blow up.
Core Claim
Current non-stationary theory treats memory as the only knob. Non-Stationary Streaming PCA analyzes the noisy power method and Oja's algorithm (the standard one-sample-at-a-time update for tracking the top eigenvector) under a drifting spiked covariance. It proves a minimax error floor of order $p^{1/3}\Gamma^{1/3}$, where $p$ is the dimension and $\Gamma$ is the total drift, and it shows the optimal block size scales as $\Gamma^{-2/3}$. That analysis is for a single eigenvector, assumes a fixed gap $\lambda_1-\lambda_2>0$, and assumes $\Gamma$ is known. This paper motivates our work: it shows memory must be matched to drift, and its S&P 500 experiments show a sharp U-shaped error curve as the memory window varies.
The stationary guarantees constrain the design. They make clear that the inverse gap is the enemy. Matching Matrix Bernstein with Little Memory proves an Oja error of order $\mathcal{V}/((\lambda_1-\lambda_2)^2 n)$, where $\mathcal{V}$ is a variance parameter and $n$ the number of samples. The Fast Convergence of Incremental PCA shows the step-size constant must exceed $1/(2\Delta)$, with $\Delta$ the gap. Both break when eigenvalues cluster.
The eigenvalue-clustering literature supplies the key reframing. Krylov solvers converge in a number of steps tied to the number of clusters, not to individual eigenvalues. Correspondingly, a cluster's joint subspace is stable under perturbation even when its individual eigenvectors are not. Our claim is that the identifiable object at memory $W$ is the projector onto all eigenvalues above a boundary $j$ whose gap $\Delta_j=\lambda_j-\lambda_{j+1}$ satisfies roughly $\Delta_j \gtrsim c\sqrt{\lambda_j\lambda_{j+1}/W}$. This resolution threshold comes from the $1/\sqrt{W}$ fluctuation of an exponentially weighted covariance with effective sample size $W$.
We hypothesize that the achievable tracking error under drift depends on the boundary gap $\Delta_b$ alone. Balancing a variance term proportional to $p/(\Delta_b^2 W)$ against a drift-bias term that grows with $W$ gives an optimal memory that is a power of $\Delta_b$ and the drift rate. This reduces to the Bienstock et al. scaling when the cluster is a single eigenvalue.
Research Program
The shared basis. We maintain an oversampled basis of width $k_{\max}+s$, updated by an exponentially weighted block power step, as in the block-stochastic method of Memory Limited, Streaming PCA but with geometric forgetting. In parallel we keep a geometric grid of $m$ forgetting factors $\gamma_1>\dots>\gamma_m$. For each factor, we store only the small $(k_{\max}+s)\times(k_{\max}+s)$ matrix of weighted covariances projected onto the shared basis. The cost is therefore $O(pk)$ per sample plus $O(mk^2)$, not $m$ full trackers.
Gap estimates. Rayleigh–Ritz eigenvalues of each small matrix give per-memory gap estimates. We do not need the large-matrix eigendecomposition that streaming is meant to avoid.
Rank boundary. For each memory, the boundary is the largest index in $[k_{\min},k_{\max}]$ whose estimated gap passes the resolution test.
Memory selection. Memory is chosen by an intersection-of-confidence-intervals rule over the grid. We accept the longest memory whose cluster projector agrees with every shorter-memory projector to within that shorter memory's noise level. Agreement is measured by $\|P_W-P_{W'}\|$, computable from small matrices.
Theory. We will prove an oracle inequality for this selection in the spiked model with clustered spikes. The target is that the selected tracker's projector error is within a constant and a log factor of the best fixed (memory, boundary) pair chosen with knowledge of $\Gamma$, with no dependence on gaps inside the cluster. We will also test whether the Oja-versus-power-method dimension discrepancy that Bienstock et al. leave open persists for the resolution-adaptive target.
Baselines
The naive reference is Oja's algorithm with a $1/t$ step and no forgetting, run at a fixed rank $k$. It shows what happens when neither knob responds to drift.
The strongest existing method is the noisy block power method with block size set by the Bienstock et al. rule $B\propto\Gamma^{-2/3}$. We give it the true $\Gamma$ on synthetic data. On real data we give it the best block size found by grid search over the full stream in hindsight, which is more information than our method receives. Bienstock et al. report the scaling and the U-shaped curves but no scalar errors, so there is no reported result on Lacuna for the noisy power method's subspace error on S&P 500 or synthetic streams. We will regenerate both curves with their protocol.
We also run PETRELS/PAST with discount $\beta$ tuned in hindsight, following the formulation in Streaming PCA and Subspace Tracking: The Missing Data Case, and Fast Similarity Matching from Efficient Principal Subspace Projection of Streaming Data Through Fast Similarity Matching at its reported $\gamma=0.6$ and at a tuned value.
All methods see the same streams, use the same $O(pk_{\max})$ memory budget, and get the same hyperparameter-search budget (one grid of the same size). Beating the oracle-tuned power method means matching its error within 20% when its rank happens to land on a resolvable gap. It also means strictly lower error, by at least a factor of two, when the fixed rank cuts a cluster or the drift rate changes mid-stream.
Three ablations isolate the ingredients. The first uses adaptive memory with a fixed rank. The second uses adaptive rank with a fixed, tuned memory. The third replaces projector-agreement selection with prequential selection by next-block reconstruction error.
Why not just…?
Why not just tune Oja's step size or the forgetting factor by grid search? On a stationary-drift stream this works. That is why the hindsight-tuned power method is our main baseline. It fails in two ways our experiments target. First, the best window shifts when the drift rate changes, and the U-curve on S&P 500 reported by Bienstock et al. shows how costly a slightly wrong window is. Second, no window rescues a rank boundary placed inside a cluster: the within-cluster rotation is a statistical non-identifiability, not a tuning problem. We test both with piecewise-drift streams and cluster-cutting ranks.
Why not just run several trackers and pick the one with the lowest reconstruction error on incoming data? This is the most serious threat. Next-block reconstruction error equals the residual variance, so it includes a noise floor of order $p\sigma^2$ whose fluctuation grows with dimension. The differences between good and bad windows scale like gap times squared angle, and these can be buried under that fluctuation. Projector-agreement comparisons avoid the floor. This is a prediction, not established fact. The third ablation measures selection accuracy as $p$ grows from $10^2$ to $10^5$. If prequential selection matches ours at all $p$, we will report that the selection rule is not the contribution and narrow the claim to resolution-adaptive rank.
Why not just use a gap-free solver, such as Chebyshev filtering or shift-and-invert? Faster Principal Component Regression and Stable Matrix Chebyshev Approximation projects onto a principal subspace without any gap assumption, but only offline with repeated passes. Robust Shift-and-Invert Preconditioning streams but assumes a static distribution and shift. Both remove the computational cost of small gaps, not the statistical one: with a finite effective sample size, no solver can identify directions inside an unresolved cluster. Moreover, a thresholded spectral filter still needs a threshold, which is exactly the boundary choice we make adaptively.
Why not just oversample the rank? Tracking $k+s$ directions does protect against a cut at the top. But downstream users need a stated rank, and oversampling still cuts somewhere. We report error at the user-requested rank and at the resolved boundary separately.
Proposed Experiments
Synthetic streams. We use the drifting spiked model $\Sigma_t=A_tA_t^\top+\sigma^2I$ with spikes arranged in controlled clusters. Internal gaps range from zero to large, and boundary gaps are swept. Drift is constant, piecewise, or abruptly switching. Metrics are projector distance to the true cluster subspace, rank-boundary accuracy, and recovery delay after a switch.
The decisive check has two parts. Error should be flat as internal gaps go to zero and should scale with the boundary gap as predicted, while fixed-rank baselines degrade with $1/\Delta^2$ as the Oja bounds imply.
S&P 500. On the daily returns of 133 companies from 1980 to 2022, the metric is next-month explained variance and agreement with a trailing batch PCA. The check is whether our method lands near the bottom of the U-curve without tuning, and whether its selected rank changes around known market regime shifts.
Images and text. On CMU PIE, and on MNIST and YALE streamed class by class to induce drift, we compare against IPCA-style and FSM baselines at matched cost. On PubMed ($p\approx 1.4\times10^5$) we test the third ablation at scale. There the Block-Stochastic Power Method is reported to extract the top 7 components in a few hours on a desktop, and we report wall-clock time against that.
Interpretation of outcomes. Failing to beat the hindsight-tuned power method on piecewise drift would falsify the memory-adaptation claim. Failing to stay flat as internal gaps vanish would falsify the cluster-target claim.
References
- Non-Stationary Streaming PCA
- Matching Matrix Bernstein with Little Memory: Near-Optimal Finite Sample Guarantees for Oja's Algorithm
- The Fast Convergence of Incremental PCA
- Memory Limited, Streaming PCA
- Streaming PCA and Subspace Tracking: The Missing Data Case
- Efficient Principal Subspace Projection of Streaming Data Through Fast Similarity Matching
- Faster Principal Component Regression and Stable Matrix Chebyshev Approximation
- Robust Shift-and-Invert Preconditioning: Faster and More Sample Efficient Algorithms for Eigenvector Computation.