When Momentum Helps Polyak--Ruppert Averaging

Alexandra Suvroikova, Darina Dvinskikh, Yuriy Dorn, Alexander GasnikovarXiv 2026

TL;DR

While Polyak–Ruppert averaging ensures that SGD and momentum methods eventually share the same optimal statistical properties, this paper reveals that momentum significantly accelerates the "burn-in" phase. Specifically, momentum methods like Nesterov's can reach the asymptotic regime in far fewer iterations and support much larger batch sizes than standard SGD, especially in ill-conditioned problems.

What Problem Does This Paper Address?

In stochastic optimization, Polyak–Ruppert averaging is a classic technique where you average the trajectory of an algorithm (like SGD) to achieve the best possible asymptotic variance. Theoretically, whether you use SGD, Heavy Ball (HB), or Nesterov’s Accelerated Gradient (NAG), they all converge to the same "optimal" distribution.

However, theory often ignores the finite-sample reality. In practice, we have a fixed budget of observations ($N$). If we process these in large batches to exploit parallelism, we perform fewer total updates ($m$). The core question is: How many updates are actually needed before the averaged output is statistically "good" (i.e., its distribution matches the theoretical limit)? This is crucial for building reliable confidence intervals in large-scale machine learning.

Methods

The authors develop a theoretical framework called the online–offline bridge. For strongly convex quadratic problems, they prove that the averaged output of an online method is exactly one "Newton step" away from the Empirical Risk Minimizer (ERM)—the gold-standard offline estimator.

They decompose the gap between the algorithm's output and the ERM into three distinct error types:

  1. Center Error: The bias remaining from the starting point (initialization bias).
  2. Covariance Error: How much the finite-sample variance deviates from the ideal asymptotic variance.
  3. Shape Error: How far the distribution is from being Gaussian (measured via Berry–Esseen bounds).

By analyzing these errors for SGD, HB, and NAG, they derive sharp thresholds for when these methods become "statistically efficient."

Table 1: Calibration thresholds on the least-curved direction for full averages from a deterministic start.

Datasets

The paper validates its theoretical findings using a controlled finite-population study based on the UCI Adult (Census Income) dataset. They reconstruct a population of ~50,000 individuals and use it to build a "prediction-powered" linear ridge regression oracle. This allows them to compare predicted coverage of confidence intervals against actual Monte Carlo simulations across different batch sizes and methods.

Key Insights and Ideas

  • Momentum Slashes Burn-in Time: For the "slowest" (least curved) direction in a problem with condition number $\kappa$, SGD requires $m \gg \kappa^2$ iterations to clear its initialization bias. Momentum methods (HB and NAG) only need $m \gg \kappa$. This is a massive win for ill-conditioned problems.
  • Larger Batches are Possible: Because momentum clears bias faster, it allows for much larger batch sizes. The "critical batch size" for valid inference grows from $\Theta(\sqrt{N}/\kappa)$ for SGD to $\Theta(\sqrt{N/\kappa})$ for momentum.
  • NAG vs. Heavy Ball: While both use momentum, they aren't equal. Heavy Ball can suffer from "variance inflation" in highly curved (stiff) directions. Nesterov’s method (NAG) is more robust, maintaining low covariance error across the entire spectrum of the problem.
  • Universal Shape: Interestingly, the "Shape Error" (how quickly the distribution becomes a bell curve) is largely independent of the specific algorithm or the problem's condition number. The bottleneck is almost always the center or covariance error.

Key Results

  • Thresholds for Calibration: The paper provides explicit scales (see Table 1 above) showing that momentum reduces the required iterations by a factor of $\kappa$.
  • Spectral Robustness: NAG's relative variance error is bounded by $O(\sqrt{\kappa}/m)$ in every direction, whereas HB's error can explode to $\Theta(\kappa^{3/2}/m)$ in stiff directions.
  • Heavy-Tailed Noise: The authors show that momentum's benefits persist even with heavy-tailed noise, though the specific scaling laws change.
Extracted table from page 7 of When Momentum Helps Polyak--Ruppert Averaging

Limitations and Future Work

The primary analysis focuses on strongly convex quadratics. While the authors provide a "first-order comparison" for nonlinear objectives, the results there are less exhaustive. The study of nonlinearities requires careful "burn-in" and batch-growth conditions to maintain the online-offline bridge.

Future work could explore more complex noise structures (like multiplicative noise) or non-convex landscapes, where the dynamics of momentum and averaging might interact in even more complex ways. Additionally, while the paper discusses "clipping" for robustness, a full non-asymptotic theory for robust averaged momentum remains an open challenge.

Summary updated

Abstract

Polyak--Ruppert averaging gives SGD and momentum methods the same asymptotic covariance. We characterize how fast finite runs reach it and how far they can be parallelized. For strongly convex quadratics with additive noise, we prove an online--offline bridge: the empirical risk minimizer on the samples of a tail average is one Newton step from the tail-averaged query point of any online procedure. For SGD, heavy ball, and Nesterov's method with constant momentum, this step is a boundary term at the two ends of the tail and splits the gap to the offline estimator into center, covariance, and shape errors. Necessary and sufficient conditions show that, on the least curved direction, the center error sets the pace: SGD needs $m\ggκ^2$ rounds but momentum only $m\ggκ$, where $κ$ is the condition number, so at sample size $N$ the critical batch size grows from $Θ(\sqrt{N}/κ)$ to $Θ(\sqrt{N/κ})$. The covariance error separates the momentum methods: heavy ball has relative variance excess $Θ(κ^{3/2}/m)$ along the stiffest direction, whereas Nesterov has relative error $O(\sqrtκ/m)$ in every direction. The shape error is method-independent by a Berry--Esseen bound uniform in $κ$ and batch size, so confidence intervals are valid when the other two errors vanish. We further examine how the conclusions change under heavy-tailed or state-dependent noise and clipping, and establish a first-order comparison with ERM for nonlinear Nesterov averaging under explicit conditions.
BibTeX
@misc{suvroikova2026when,
  author = {Alexandra Suvroikova and Darina Dvinskikh and Yuriy Dorn and Alexander Gasnikov},
  title = {{When Momentum Helps Polyak--Ruppert Averaging}},
  year = {2026},
  eprint = {2610.27990},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.27990},
}

Loading related content...

Figure