Momentum Smooths the Path to Gradient Equilibrium

João Vitor Romano, Margaux Zaffran, Ryan TibshiraniNeurIPS 2026

TL;DR

When adjusting black-box machine learning predictions on the fly, standard online gradient descent faces a painful trade-off: converge quickly with erratic, jittery updates, or smooth things out and suffer slow convergence. This paper proves—and shows on real-world financial and hydrological data—that a properly parameterized Heavy Ball momentum method breaks this trade-off. You get smooth, stable parameter updates without sacrificing convergence speed.

What Problem Does This Paper Address?

Imagine deploying a black-box model to forecast stock volatility or reservoir water levels. Over time, the real world drifts, and your model’s predictions become biased or miscalibrated. Recently, researchers formalized a handy property of online gradient descent (GD) called gradient equilibrium (GEQ): as time goes on, the running average of the loss gradients converges to zero ($\frac{1}{T}\sum_{t=1}^T g_t(\theta_t) \to 0$). By picking the right loss function (like squared loss or quantile loss), achieving GEQ automatically debiases predictions or calibrates uncertainty intervals on the fly, even under adversarial data shifts.

There’s just one catch: to get fast GEQ convergence, GD needs a relatively large step size $\eta$. Large step sizes make the adjustment parameter $\theta_t$ bounce around violently from step to step. In high-stakes settings—like automated trading, where jittery forecasts trigger constant portfolio rebalancing and massive transaction fees, or dam management—you want stability. Shrinking $\eta$ calms the jitter, but ruins your GEQ convergence speed. How do we smooth the path without losing the destination?

Figure 1: Top row shows the iterates, bottom row the gradient equilibrium (GEQ) error for quantile (1a) and squared (1b) losses. Gradient descent (GD) with step size η = 0.005 (black) converges quickly to GEQ, but produces jagged iterates. Heavy ball (HB) with the same step size and momentum β = 0.95 (orange) smooths out these oscillations while leaving the GEQ error intact (the orange and black curves largely overlap in the bottom row). GD with η = 0.001 (blue) converges more slowly.

Methods

The authors introduce a framework of Generalized Momentum Methods (GMM) for online learning, focusing heavily on a specific moving-average parameterization of Polyak’s Heavy Ball (HB) method and Nesterov momentum.

In traditional batch optimization, Heavy Ball adds $\beta(\theta_t - \theta_{t-1})$ to the update without touching the gradient term. Here, the authors scale the current gradient by $(1 - \beta)$: $$\theta_{t+1} = \theta_t + \beta(\theta_t - \theta_{t-1}) - \eta_t(1 - \beta)g_t(\theta_t)$$ With a constant step size, this acts as an exponential moving average of past gradients.

To analyze this, they introduce two neat theoretical tools:

  1. Auxiliary Iterate Tracking: Because $\theta_t$ carries the baggage of all past gradients, bounding it directly is messy. For Lipschitz losses that are restorative (meaning gradients point back toward the origin if $\theta$ wanders too far), they track a simpler auxiliary sequence that weights each gradient by its total asymptotic contribution over all future steps. For non-Lipschitz squared loss, they model HB directly as a linear dynamical system.
  2. Discrete Second-Order Smoothness: They measure path jaggedness using the average norm of discrete second derivatives, $\|\theta_{t+1} - 2\theta_t + \theta_{t-1}\|_2$, inspired by trend filtering in nonparametric statistics.

Datasets

No new benchmarks are introduced; the authors evaluate their algorithms on two real-world sequential forecasting tasks:

  • BlackBerry Stock Volatility (Calibration): Daily stock returns used to test online conformal calibration of prediction intervals generated by a GARCH(1,1) baseline model (following prior online conformal literature).
  • Shasta Reservoir Inflow (Debiasing): Hourly water inflow observations from February–June (2017–2025) from the California Data Exchange Center, paired with deterministic hourly river forecasts from NOAA’s California-Nevada River Forecast Center.

Key Insights and Ideas

  • Momentum as a stabilizer, not an accelerator: In batch optimization, momentum is famous for speeding up convergence—and notorious for causing oscillations ("Nesterov ripples"). In this online post-processing setting, multiplying the gradient by $(1-\beta)$ flips the script: momentum acts as a low-pass filter that dampens local noise while preserving global trajectory dynamics.
  • Total gradient weight is conserved: Why doesn't scaling the gradient by $(1-\beta)$ slow down GEQ? Because every gradient $g_t(\theta_t)$ continues to echo through future steps via $\beta^{u-t}$. Summing that geometric series from $t$ to $\infty$ reveals its total asymptotic weight is $\eta_t(1-\beta) \sum_{k=0}^\infty \beta^k = \eta_t$—identical to standard GD!
  • A strictly better Pareto frontier: For a target smoothness budget $s$, optimizing $\beta$ improves the theoretical GEQ error bound rate from GD's $O(1/s)$ to $O(1/\sqrt{s})$.
Theoretical Pareto frontiers showing Heavy Ball strictly dominating Gradient Descent

Key Results

  • Theoretical Convergence: Under standard restorative assumptions on Lipschitz losses, GMM/HB matches GD’s GEQ convergence rates: $O(1/T)$ in 1D (e.g., quantile and logistic losses) and $O(1/\sqrt{T})$ in multiple dimensions (improving to $O(1/T)$ under positive curvature). For 1D squared loss, HB also achieves $O(1/T)$ GEQ error provided $\eta < 2(1+\beta)/(1-\beta)$.
  • Smoothness Reduction: The smoothness penalty upper bound scales primarily with $\frac{2(1-\beta)}{1+\beta}$. As $\beta$ approaches $1$, step-to-step jaggedness drops dramatically.
  • Empirical Dominance: On both the BlackBerry volatility ($\alpha = 0.1$ quantile loss) and Shasta Reservoir inflow (squared loss) tasks, HB ($\eta = 0.005, \beta = 0.95$) produces visibly smoother trajectories than GD ($\eta = 0.005$) while their GEQ error curves almost completely overlap. Sweeping across $\eta$ and $\beta$ confirms that no choice of step size allows standard GD to match HB's empirical smoothness-to-GEQ trade-off.

Limitations and Future Work

  • General Locally Lipschitz Losses: While standard GD has GEQ guarantees for a broad class of locally Lipschitz losses with "quadratic curvature," this theory breaks down for momentum. Accumulating unbounded past gradients can cause iterates to diverge rapidly from initialization—forcing the authors to craft a specialized dynamical-systems proof specifically for 1D squared loss.
  • Over-smoothing Trap: Setting $\beta$ too close to 1 without care can backfire, inflating GEQ error and even causing erratic trajectories if curvature conditions on $\eta$ and $\beta$ are violated.
  • (Note: Detailed open directions are deferred by the authors to Appendix A, which is beyond the provided main text.)

Summary updated

Abstract

Online gradient descent has recently been shown to satisfy a property called gradient equilibrium for a broad class of loss functions. This means that the average of the gradients of the losses along the sequence converges to zero. With appropriate choices of losses, we can leverage this property in order to debias predictions or calibrate prediction sets, among other applications. Meanwhile, optimizing gradient descent for gradient equilibrium can produce a highly jagged path of iterates, which may be undesirable in certain problem settings. In this work, we show that a class of momentum methods can be applied to attenuate such volatility, while maintaining gradient equilibrium at essentially the same rate and under essentially the same assumptions as ordinary gradient descent. We complement this theory by providing experiments on real data, which clearly show that momentum provides greater smoothness at nearly equivalent gradient equilibrium error.
BibTeX
@inproceedings{romano2026momentum,
  author = {João Vitor Romano and Margaux Zaffran and Ryan Tibshirani},
  title = {{Momentum Smooths the Path to Gradient Equilibrium}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BtK0caAJ21},
}
Figure