Factor Augmented High-Dimensional SGD

Shubo Li, Yuefeng Han, Xiufan YuNeurIPS 2026

TL;DR

Training models directly on massive, high-dimensional datasets with Stochastic Gradient Descent (SGD) is computationally exhausting and mathematically fragile—much like trying to navigate a dark, thousand-room mansion when all the action is happening in just three rooms. This paper introduces Factor-Augmented SGD (FSGD), an algorithm that discovers the hidden, low-dimensional "rooms" of streaming data on the fly while simultaneously training your predictive model in a single pass. By weaving online representation learning directly into optimization, FSGD makes high-dimensional learning faster, memory-light, and theoretically grounded.

What Problem Does This Paper Address?

For decades, classical theories of SGD assumed you had a fixed, manageable number of features ($d$) while your sample size ($n$) grew toward infinity. Modern machine learning has flipped that script: features, sample sizes, and model parameters now explode simultaneously.

Applying standard SGD directly to high-dimensional predictors wastes computation on noisy directions, balloons memory costs, and triggers erratic oscillations during training. Yet, in nature and engineering, high-dimensional data rarely occupies all of its ambient space; the real signal usually lives in a much smaller set of hidden variables, known in statistics as latent factors, buried beneath feature-specific (idiosyncratic) noise.

Traditionally, researchers handle this in two stages: store the entire dataset, run offline Principal Component Analysis (PCA) to compress the features, and then train a downstream model. In the era of massive streaming data, storing and re-scanning everything is a non-starter. Furthermore, existing theories treat learned representations as fixed and noise-free, leaving us blind to how estimation errors and leftover noise ripple through SGD updates.

Methods

Instead of compressing the gradients (a common optimization trick), FSGD takes a data-side approach, modeling covariates as $x = Bf + u$ (where $f$ are low-dimensional latent factors and $u$ is idiosyncratic noise). FSGD processes streaming mini-batches in a single pass across two stages:

  1. Stage I: Online PCA Warm-up. Before training the downstream model, FSGD processes a brief stream of unlabeled mini-batches using Oja’s algorithm—a classic, lightweight method for streaming PCA—to get a rough initial estimate of the latent subspace ($Q_0$) without storing past data.
  2. Stage II: Joint Online Optimization. For each incoming mini-batch of size $m$, FSGD projects the high-dimensional inputs ($d$) down into estimated latent factors ($k \ll d$). It takes a standard mini-batch SGD step on the downstream model parameters using those factors, and then reuses the exact same mini-batch to refine the subspace via another Oja update.

Updating this projection requires only $\mathcal{O}(mdk + dk^2)$ time and $\mathcal{O}(dk)$ memory—linear in the ambient dimension $d$.

Datasets

  • Synthetic Data: Simulated high-dimensional linear factor models ($k=3$) with varying ambient dimensions ($d$ from 10 to 320) to verify theoretical convergence rates, plus nonlinear synthetic neural network tasks (detailed in the appendices).
  • MNIST: Evaluated in a strict one-pass streaming classification setup (320 unlabeled warm-up images, 54,680 training, 5,000 validation, and 10,000 test images flattened to $d = 784$, projected to $\hat{k}=64$).
  • CIFAR-10 & NCEP: Mentioned for additional image and climate/weather evaluations in the appendix. No new benchmarks are introduced.

Key Insights and Ideas

  • Chasing a Moving Target ("Minimizer Shift"): Latent factors can only be identified up to an arbitrary rotation. Because Oja's algorithm updates the factor subspace at every step, the underlying rotation—and therefore the optimal target parameters $\theta^*_t$ that SGD is chasing—constantly drifts! A major triumph of this paper is proving that this drift stays tightly bounded by Oja’s step size, preventing the optimizer from getting dizzy.
  • A Fundamental Learning-Rate Trade-off: With a decaying SGD step size $\eta_t \propto t^{-\gamma}$, there is a sweet spot at $\gamma = 2/3$. Decay too slowly (small $\gamma$), and standard SGD noise dominates; decay too quickly (large $\gamma$), and the model freezes before adapting to the drifting subspace rotation. (Alternatively, simply freezing the subspace halfway through training eliminates this drift!).
  • The Blessing of Dimensionality: Counterintuitively, increasing the ambient dimension $d$ actually helps factor estimation (scaling as $d^{-1/2}$). More features provide more independent measurements to average out the idiosyncratic noise $u$, handing cleaner inputs to SGD.

Key Results

  • Theoretical Guarantees: Under $\ell^s$-norm strong convexity (a smooth stand-in for the $\ell^\infty$ max-norm), the authors prove rigorous moment convergence bounds. Balancing optimization and drift errors yields an optimal rate of $\mathcal{O}(d^{-1/2} + t^{-1/3})$, while freezing Oja updates mid-stream restores the classic $\mathcal{O}(d^{-1/2} + m^{-1/2}t^{-\gamma/2})$ rate.
  • Synthetic Validation: Empirical tests mirror the math: parameter error drops cleanly as dimension $d$ grows from 10 to 320, and testing decay exponents from $\gamma = 0.1$ to $0.9$ confirms optimal convergence right around $\gamma \approx 2/3$.
  • One-Pass MNIST Classification: Training a ReLU network on streaming MNIST, FSGD (Factor-NN) achieves 96.24% test accuracy—outperforming training on raw pixels (95.82%), freezing the projection right after warm-up (95.71%), supervised end-to-end orthogonal projections (95.96%), and random projections (93.44%).

Limitations and Future Work

  • Linear Bottleneck: Even though FSGD allows the downstream predictor (like a neural network) to be nonlinear, the factor extraction itself is linear (PCA). It may miss predictive structures curled up on complex, nonlinear manifolds. Extending FSGD to nonlinear streaming representations is a natural next step.
  • Known Factor Dimension: The theoretical guarantees assume you already know the true number of latent factors $k$. Developing theory for misspecified $k$ and building adaptive rank-selection into the streaming pipeline remain open challenges.

Summary updated

Abstract

Stochastic gradient descent (SGD) is a fundamental optimization algorithm widely used in modern machine learning. In this paper, we propose *Factor-Augmented SGD* (FSGD), a new optimization method that leverages latent factor representations in high-dimensional learning tasks. Unlike standard two-stage dimension reduction approaches that rely on offline representation learning and full data storage, a key novelty of FSGD is that it operates in a single pass over streaming data, with an online Oja warm-up before downstream SGD begins, making it scalable to large-scale and high-dimensional problems. Furthermore, we establish a new theoretical framework that explicitly incorporates latent factor estimation error into the analysis of SGD, and provide moment convergence in $\ell^s$ norm under decaying step sizes and mini-batch updates. Our results provide a new foundation for employing SGD reliably and scalably in high-dimensional machine learning systems.
BibTeX
@inproceedings{li2026factor,
  author = {Shubo Li and Yuefeng Han and Xiufan Yu},
  title = {{Factor Augmented High-Dimensional SGD}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=wPsFSiDXLS},
}
Figure