Interactive note · October 2026
Speed, robustness and risk
How much does a momentum method amplify the noise in its gradients? Three precise answers — average case, worst case, and risk-sensitive — all read off one curve, with a playground that computes them live. Skip to the playground ↓
Accelerated gradient methods with biased gradient estimates: risk sensitivity, high-probability guarantees, and large deviation bounds (J. Nonlinear Var. Anal., 2026)
Robustly stable accelerated momentum methods with a near-optimal L₂ gain and H∞ performance (Math. Oper. Res., 2025)
Entropic risk-averse generalized momentum methods (Optim. Methods Softw., 2025)
Momentum methods converge faster than gradient descent. When the gradients are noisy, they also amplify the noise more. How much more depends on two choices: how the noise is modelled, and what is measured. This note gives three precise answers for the simplest problem where everything has a closed form, a quadratic:
- an average-case answer, the norm;
- a worst-case answer, the norm;
- a risk-sensitive answer that sits between the two.
The playground further down lets you move a tuning around and watch all three change.
There are two punchlines. The first is an identity: the risk-sensitive measure is finite exactly up to a threshold , which is set by the worst-case gain. The second is a tuning: RS-HB, a heavy-ball method I introduced in Gürbüzbalaban, Math. Oper. Res. 2025. It converges faster than Nesterov's method and is exactly as robust to worst-case noise as any method in the family can be.
1. The problem and the methods
We minimize the quadratic
where is symmetric with eigenvalues , , and is the condition number. The minimizer is , and the suboptimality is .
The generalized momentum method (GMM) has three parameters: a stepsize and two momentum parameters . It uses the gradient only through a noisy estimate :
The vector is the gradient error at step . The family contains the classical methods as special cases:
- is gradient descent (GD);
- is Polyak's heavy ball (HB);
- is Nesterov's accelerated gradient (NAG);
- a particular choice with is the triple momentum method (TMM).
The playground uses , and . Little is lost by this simplification. The worst-case gain and the threshold depend only on the two extreme eigenvalues, whatever is. For the average-case and risk measures, each interior eigenvalue only adds one more term of the same form.
2. Speed
Without noise (), the iterates converge to linearly. In the eigenbasis of , each coordinate follows its own scalar recursion. For the coordinate along eigenvalue , that recursion has the characteristic polynomial
The rate is the largest modulus of a root of these polynomials, taken over the eigenvalues of . The error then behaves like , up to a polynomial factor when two roots coincide. The tuning is stable when .
Rates close to are hard to compare by eye, so I measure speed instead by
which is roughly the number of iterations needed to cut the error by a factor of (since ). The fastest tunings of each classical method are as follows:
| Tuning | Iterations per -fold, | At |
|---|---|---|
| GD with | 50.5 | |
| NAG with | 10 | |
| Polyak's HB | 5.5 |
3. How noise enters: one curve per direction
Now switch the noise back on. Along an eigenvector of with eigenvalue , the coordinate obeys
This is a linear, time-invariant filter, so it is natural to look at it frequency by frequency. I take the output to be , because this choice gives
The transfer function from the noise to the output is then
Its modulus has a concrete meaning. Feed in the error . Once the transients have died out, is a cosine of the same frequency with amplitude . So is the factor by which the algorithm multiplies the power of the noise at frequency along that direction. Panel A of the playground plots this gain curve for and over ; the curve is symmetric in , so the other half adds nothing.
Two frequencies have a plain meaning:
- is a constant error, that is, a bias;
- is an error that flips sign at every step.
At the gain does not depend on the tuning at all. Since ,
There is a reason that needs no algebra. A constant error moves the fixed point of every such method to the point where , which is the minimizer of the perturbed problem. The suboptimality there is , and no choice of parameters can change it. Keep the number in mind: it will come back as a floor.
4. Three ways to measure noise amplification
Each of the three measures below is a norm of the same gain curves. They differ in what they assume about .
Average case: the norm
Suppose the errors are i.i.d. Gaussian, , so that . Then the iterates do not converge. Instead they settle into a stationary distribution around . White noise has the same power at every frequency, so the output power is the average of the gain curve:
The playground reports , the area under the gain curves. Up to normalization, this is the noise amplification studied in Aybat, Fallah, Gürbüzbalaban and Ozdaglar, SIAM J. Optim. 2020.
Worst case: the norm
Now let the errors be deterministic and chosen by an adversary who knows the tuning. The only constraint is finite energy, . Start the method at the optimum, , so that all of the suboptimality is caused by the noise. The robustness of the tuning is the worst ratio of total damage to the energy spent:
is the induced gain of the system from the noise to the output . By Parseval's identity it equals the peak of the gain curves:
Gürbüzbalaban, Math. Oper. Res. 2025 gives this maximum in closed form for every GMM tuning, and shows that only the two extreme eigenvalues and can attain it. There is an equivalent reading that does not mention frequencies. is the smallest constant such that
holds for every horizon and every sequence of errors, where depends only on the initialization. Dividing by turns this into a bound for the averaged iterate, with the contributions of the initialization and of the noise kept separate.
What does the worst noise look like? The supremum is not attained, but it is approached by a decaying cosine,
where is the eigenvector and the frequency at which the peak occurs. In other words, the adversary puts all of its energy where the filter resonates. For the named tunings on this page, the peak sits at one of the two ends of the frequency range:
- For the robust tunings, the peak is at along the flattest direction (). The worst error is a slowly fading bias.
- For Polyak's heavy ball and the fastest GD, the peak is at along the steepest direction (). The worst error flips sign at every step. For these tunings, the roots for that mode lie on the negative real axis, so the mode itself alternates in sign and resonates with such an error.
Interior peaks also occur. For example, heavy ball with and peaks at ; try it.
The floor. Since for every tuning, the peak can never be lower than that:
Several tunings attain this floor: GD with , Nesterov's method, RS-GD and RS-HB. Polyak's heavy ball and the fastest GD have , which is times the floor. In panel B, the "Worst case" axis shows divided by the floor, so the floor is .
In between: the risk-sensitive index
Go back to random noise, but now care about rare bad runs, not only about the mean. Let
be the suboptimality accumulated up to step . For a risk-aversion parameter , the risk-sensitive index is
Two remarks explain this definition.
- It is an entropic risk. The quantity is the entropic risk of a random cost at aversion . Because of the exponential, large values of weigh more than their probability alone would suggest. As increases, the entropic risk moves from the mean of (as ) toward its essential supremum (as ). Here it is applied to the accumulated cost and normalized per step.
- The normalization by makes independent of the noise level. scales like , so the place where becomes infinite does not depend on .
Expanding shows what adds to the mean:
So is the average-case answer from the subsection, and the first correction is the long-run variance of the accumulated cost. I call the risk premium.
For quadratics with Gaussian noise, Gürbüzbalaban, Syed and Aybat, J. Nonlinear Var. Anal. 2026 compute exactly. The original characterization is a Riccati equation. The paper decouples it into equations of size , each solvable by hand, and gives an equivalent integral form over frequencies:
where
The wall. The integral form shows why breaks down at . The logarithm requires at every frequency; in words, the gain curves must stay below the horizontal line at height . Raising lowers that line. The moment the line touches the peak , the integral diverges and the risk becomes infinite. So the worst-case gain sets the budget of risk aversion a tuning can afford. Panel A draws the line , and panel C draws up to the wall.
What the wall means for tails. The same paper proves a large-deviation principle for the time-averaged suboptimality:
Because is finite exactly up to , the ratio tends to as . Large values of the averaged suboptimality are therefore exponentially unlikely, and is their decay rate. In this sense, a smaller means lighter tails. On the test problem (, , ), the floor is . Every tuning at the floor has , while Polyak's heavy ball and the fastest GD have .
5. RS-HB: fast and optimally robust
The table in section 2 suggests a trade-off: Polyak's heavy ball is the fastest, but it is also the most fragile. RS-HB, from Gürbüzbalaban, Math. Oper. Res. 2025 (Proposition 4.3), shows that much of this speed can be kept at the robustness floor. It is a heavy-ball method () with
The name stands for robustly stable heavy ball, after the paper's title. The paper proves two things about this tuning:
- , the floor;
- its rate is .
Nesterov's rate is , so for large , RS-HB needs about as many iterations at the same worst-case robustness. At , and RS-HB needs 7.55 iterations per -fold, against Nesterov's 10. For comparison, the family , gives at , and Polyak's tuning is close to .
RS-HB does not win on every measure. Two caveats are worth stating:
- It is not the fastest tuning at the floor. A numerical search over all three parameters finds tunings at the floor with about 6.1 iterations per -fold. Those tunings have no closed form; RS-HB is the explicit one. Panel B shows the whole frontier.
- Its average-case cost is higher than Nesterov's. At the two have the same , but RS-HB's is larger, 0.053 against 0.018. Its risk at is also larger, 0.030 against 0.011. The two measures rank these tunings differently, which is the reason for having more than one.
For , outside the range of the proposition, the playground uses .
6. The playground
At the top of the playground you choose the condition number and a named tuning. Below that, sliders set , and , with a choice of family: (heavy ball), (Nesterov-type), or free . Further sliders set the noise level and the risk aversion . The red stop on the slider marks the current tuning's wall . The readouts underneath are the quantities defined above.
- Panel A plots the gain curves and on a log scale.
- Their mean over frequency is , and their peak is .
- The dashed curves are the tilted gains . Their mean over frequency, summed over the two modes and multiplied by , is .
- The tilted curves blow up where the solid curves meet the line .
- The inset shows the roots of the two characteristic polynomials inside the unit circle. A root close to the circle produces a sharp peak.
- Panel B is the speed–risk map. The horizontal axis is speed, . The vertical axis is one of three measures: divided by the floor ("Worst case"), ("Average"), or ("Risk, θ = 2"). Each curve is a frontier: the smallest value of the measure that one family (GD, heavy ball, Nesterov-type, or all of GMM) can reach at a given speed. The frontiers were computed with the paper's solver. You can drag the ring along a frontier, and the sliders follow.
- Panel C is the risk budget: from small up to the wall, with the risk-neutral level marked.
Momentum under noise · the quadratic f = (μx₁² + Lx₂²)/2, μ = 1, d = 2
- rate ρ
- 0.8676
- iterations / e-fold
- 7.55
- H∞
- 0.707
- J = H₂²
- 0.0533
- R(0)
- 0.0266
- R(θ)
- 0.0299
- wall θ* = d/H∞²
- 4.00
λ = μ λ = L solid: the gain |G|². Its mean over ω, summed over the two modes, is J = H₂²; the higher of the two peaks is H∞². Dashed: the risk-tilted curve −(d/θ)·log(1 − (θ/d)|G|²); its mean, summed over the modes and multiplied by σ²/d, is R(θ). It sits above |G|² and blows up where |G|² reaches d/θ, so the risk is infinite once the peak H∞² touches that line: that is the wall θ* = d/H∞².
all GMMheavy ball (ν = 0)Nesterov-type (ν = β)gradient descentEach curve is the smallest risk a family can reach at a given speed (computed with the paper’s solver; the worst-case axis is H∞² divided by its floor 1/(2μ)). The ringed dot is your tuning. Drag along a curve to take that frontier tuning.
At θ = 2.00 the risk premium is R(θ) − R(0) = 0.00324 (12% over the risk-neutral level). It grows slowly at first and without bound as θ approaches the wall.
7. What to try
- RS-HB against Nesterov. The page opens on RS-HB at ; now press Nesterov. In panel A, both curves peak on the floor at , so both tunings have the wall . The difference is the curve. RS-HB's has a bump near , about half as high as the floor, and Nesterov's does not; that bump accounts for most of RS-HB's larger . In exchange, RS-HB needs 7.6 iterations per -fold, against Nesterov's 10.
- Polyak's heavy ball. Press HB (fastest). It needs 5.5 iterations per -fold, but the curve now peaks at , at 100 times the floor. The wall drops to , and at the default the risk is infinite.
- Walk along a frontier. In panel B, switch between Worst case, Average and Risk, θ = 2, and drag the ring along a frontier. The all GMM frontier stays at the floor down to about 6 iterations per -fold, then rises steeply: the last bit of speed costs a factor of in worst-case damage.
- Find the wall. Raise until its slider reaches the red stop. In panel A, the line comes down to meet the peak, and the dashed curves blow up there.
- An interior resonance. Choose ν = 0, set and . The peak moves to an interior frequency, and the roots in the inset approach the unit circle.
What this page does not show
Everything above is exact, but only for quadratics with Gaussian noise. The papers go further:
- For smooth, strongly convex functions, the closed forms become bounds certified by small matrix inequalities.
- The JNVA paper treats biased noise and gives finite-time, high-probability guarantees.
- Can and Gürbüzbalaban design risk-averse tunings based on entropic risk and the entropic value at risk.
Speed is bought with peak gain, and the peak gain is the risk budget: a tuning can afford risk aversion θ exactly when H∞² < d/θ. RS-HB shows that a good part of the speed of momentum can be had at the robustness floor.
The closed forms in the playground are ported from the code behind the papers’ figures and agree with it to nine digits; the frontiers were computed with the paper’s solver for κ = 10, 30, 100, 300 and 1000. Comments and corrections are welcome by email.