Compute Efficiency and Serial Runtime Tradeoffs for Stochastic Momentum Methods

Depen Morwani, Alexandru Meterez, Pranav Ajit Nair, Sham M. KakadeNeurIPS 2026

TL;DR

Everyone uses momentum when training neural networks, yet empirically its magic seems to vanish at small batch sizes and reappear at massive ones. By teasing apart total FLOPs from wall-clock steps, this paper proves why: classical momentum doesn't make each gradient query more efficient—it just lets you scale to much larger batches before hitting diminishing returns. Meanwhile, newer "accelerated" momentum schemes genuinely save compute on small batches, but inevitably spend that advantage to buy faster wall-clock times as batch sizes grow.

What Problem Does This Paper Address?

In noiseless, textbook optimization, classical momentum methods—like Polyak’s Heavy Ball (HB)—famously speed up gradient descent. Yet in the noisy, mini-batch world of deep learning, empirical studies keep finding something puzzling: at small batch sizes, momentum offers virtually zero benefit over plain Stochastic Gradient Descent (SGD).

To untangle this, we have to separate two things we care about when training big models:

  1. Serial runtime: How many sequential steps (wall-clock iterations) it takes to reach a target loss.
  2. Compute efficiency (CE): The inverse of total FLOPs (or gradient queries) spent.

Normally, doubling your batch size $B$ halves your serial steps while keeping total FLOPs constant—up to a "critical batch size" where noise issufficiently averaged out and larger batches start wasting compute. Newer multi-buffer momentum algorithms—grouped under Accelerated SGD (ASGD), which structurally includes modern optimizers like Schedule-Free and AdEMAMix—provably improve CE at $B=1$. Put simply: if we scale up to the massive batch sizes required for modern pretraining, what actually happens to the tradeoffs between wall-clock speed and total compute for HB and ASGD?

Methods

The authors tackle this theoretically using a clean, tractable testbed: online, noiseless linear regression with Gaussian inputs. Here, the "shape" of the optimization landscape is governed by the eigenvalue spectrum of the data covariance matrix $H$ (whose condition number $\kappa$ measures the ratio of flattest to steepest directions).

Instead of relying on infinite-dimensional asymptotics or continuous-time approximations, the authors prove finite-dimensional, discrete-time lower bounds that hold uniformly across all stable hyperparameter choices. They track the error covariance matrix across iterations via a linear operator $\mathcal{T}$ and bound its spectral gap $\alpha(B)$—which dictates how fast the error shrinks per step. From this single quantity, serial runtime scales as $1/\alpha(B)$ and compute efficiency scales as $\alpha(B)/B$. They analyze HB across arbitrary data spectra, and compare it against ASGD (which adds a direct gradient path weighted by $\zeta$ alongside the momentum buffer) on power-law spectra ($\lambda_i \asymp i^{-a}$).

Datasets

The paper uses synthetic consistent linear regression datasets generated online from Gaussian covariates $x_i \sim \mathcal{N}(0, H)$ with noiseless targets. For empirical verification, the authors set the feature dimension to $D = 50,000$ and train for $N = 500,000$ samples across batch sizes $B \in [1, 1024]$, testing both slowly decaying ($a = 0.9$) and rapidly decaying ($a = 2.0$) power-law eigenvalue spectra. No external benchmarks are used or introduced.

Key Insights and Ideas

Theoretical scaling regimes for compute cost and serial steps across batch sizes.

Figure 2: Illustration of the batch-size regimes implied by our bounds for power-law spectra (Table 2). (Left) Compute cost B/α(B) required to reach a fixed accuracy. HB stays at the SGD level da up to B ≍da/2. ASGD starts lower, at da2/(2a−1), grows as B(a−1)/(2a−1) up to d(a+1)/2 at B ≍d1/2, and then grows linearly. (Right) Serial steps 1/α(B). HB decreases linearly until B ≍da/2; ASGD decreases as B−a/(2a−1) and reaches the accelerated floor da/2 already at B ≍d1/2. Beyond da/2 the two coincide (dashed).
  • Heavy Ball doesn't save FLOPs; it widens the parallelization highway. Across any data spectrum, HB cannot beat the compute efficiency ceiling of plain SGD. Its superpower is extending the critical batch size by a factor of $\sqrt{\kappa}$. Beyond where SGD stalls out, HB keeps converting larger batches linearly into fewer serial steps without wasting FLOPs.
  • ASGD trades its small-batch genius for wall-clock speed. When eigenvalues decay quickly ($a > 1$), ASGD beats HB and SGD on compute efficiency at $B=1$. However, as you increase $B$, ASGD experiences sublinear returns—effectively "spending" its FLOP advantage to buy fewer serial steps.
  • ASGD hits the speed limit much earlier. Under power-law spectra, ASGD reaches the ultimate deterministic floor of $d^{a/2}$ serial steps at a critical batch size of just $d^{1/2}$, whereas HB needs a much larger batch size of $d^{a/2}$ to hit that same wall-clock speed.
  • The data spectrum dictates whether fancy momentum matters. When the spectrum decays slowly, ASGD’s small-batch advantage evaporates, making it behave almost identically to classical Heavy Ball.

Key Results

Empirical steps to target loss across batch sizes on synthetic power-law data.

Figure 1: Batch-size tradeoffs for stochastic momentum methods in synthetic linear regression with power-law spectra. Plots show the number of serial steps needed to reach a fixed target loss as the batch size varies, after tuning hyperparameters for each method. (Left) For slow decaying power law spectra, HB and ASGD do not yield better CE, but they decrease the serial runtime. (Right) For fast decaying spectra, ASGD has better CE than HB, but begins trading off CE for serial runtime.

Theoretical bounds and synthetic experiments (sweeping learning rates $\eta$, momentum $\beta$, and ASGD weight $\zeta$ over 50 seeds) align cleanly:

  • Arbitrary Spectra (HB vs. SGD): Both share the exact same maximum CE scale of $\lambda_{\min}/\text{Tr}(H)$. However, SGD’s linear-scaling window ends at $B \asymp \text{Tr}(H)/\lambda_{\max}$ (saturating at $\kappa$ serial steps), while HB's window extends to $B_{\text{HB}}^{\text{crit}} \asymp (\text{Tr}(H)/\lambda_{\max})\sqrt{\kappa}$, cutting the serial step floor down to $\sqrt{\kappa}$.
  • Power-Law Spectra ($a > 1$): At $B=1$, HB requires $d^a$ compute, while ASGD requires strictly less: $d^{a^2/(2a-1)}$. Between $1 \lesssim B \lesssim d^{1/2}$, ASGD’s serial steps drop sublinearly as $B^{-a/(2a-1)}$ while its compute cost creeps up as $B^{(a-1)/(2a-1)}$.
  • Empirical Verification: In synthetic runs (see Figure above), for slow decay ($a=0.9$), HB and ASGD curves nearly overlap, tracking the ideal $1/B$ iso-compute line far past where SGD flattens out around $B=2^5$. For fast decay ($a=2.0$), ASGD needs roughly $4\times$ fewer steps than HB/SGD at $B=1$ ($\sim 3 \times 10^3$ vs. $>10^4$ steps to reach $0.0071$ loss), before bending away from the $1/B$ line and converging with HB’s serial runtime floor around $B = 2^7$.

Limitations and Future Work

  • Lower bounds only: The authors prove what these algorithms cannot beat; proving matching upper bounds with these techniques is left as an open problem.
  • Spectral vs. Risk bounds: The proofs bound the spectral gap of the covariance operator rather than formally writing out end-to-end excess risk bounds (though the former governs the latter in consistent linear systems).
  • Simplified setting: The theory assumes noiseless linear regression with Gaussian inputs and constant hyperparameters, leaving non-quadratic deep learning landscapes, label noise, and learning-rate schedules for future exploration.

Summary updated

Abstract

Stochastic momentum methods such as heavy ball (HB), Nesterov momentum, and variants of Accelerated SGD (ASGD) [Kidambi et al., 2018] are widely used in modern training, but their stochastic benefits depend on two distinct quantities: serial runtime, the number of iterations needed to reach a target accuracy, and compute efficiency (CE), the inverse total gradient-query or FLOP cost. Larger batches reduce serial runtime without hurting CE only when the contraction gap grows linearly with batch size. We study stochastic HB and ASGD for consistent linear regression with Gaussian covariates and prove finite-dimensional, discrete-time lower bounds on their batch-size tradeoffs. Our first result shows that HB does not improve the CE frontier over SGD for arbitrary spectra; rather, it preserves SGD-level CE over a larger batch-size window, allowing larger batches to reduce serial runtime until HB reaches its deterministic accelerated scale. This window can be a factor $\sqrt{\kappa}$ larger than the SGD critical batch size. For ASGD, the picture is more spectrum-dependent: for rapidly decaying power-law spectra, ASGD improves small-batch CE over HB/SGD, but as batch size grows it trades this CE advantage for improved serial runtime. Synthetic linear-regression experiments verify these qualitative regimes, including near-overlap of ASGD and HB for slowly decaying spectra and the predicted CE–serial tradeoff for rapidly decaying spectra.
BibTeX
@inproceedings{morwani2026compute,
  author = {Depen Morwani and Alexandru Meterez and Pranav Ajit Nair and Sham M. Kakade},
  title = {{Compute Efficiency and Serial Runtime Tradeoffs for Stochastic Momentum Methods}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vZu4zXa0PZ},
}
Figure