Towards Understanding Momentum Acceleration in River-Valley Loss Landscape

Miao Lu, Zeyu Bian, Kaiyue Wen, Beining Wu, Siyu Chen, Tianhao Wang, Zhiyuan LiNeurIPS 2026

TL;DR

Everyone uses momentum to train neural networks, yet classical math only explains why it works on simple, bowl-shaped problems—not the jagged, non-convex landscapes of modern deep learning. By modeling the loss landscape as a winding "river" at the bottom of a steep "valley," the authors prove that momentum doesn't actually push the optimizer faster down the river on its own. Instead, momentum acts as a shock absorber against the steep valley walls, allowing you to crank up the learning rate without diverging—and that larger learning rate is what actually accelerates training.

What Problem Does This Paper Address?

If you open any deep learning codebase, you will find momentum baked into the optimizer, whether it's SGD-M, Adam, or Muon. Yet, our theoretical grasp of why heavy-ball momentum speeds up training is stuck in the 1960s: classical theory proves acceleration for quadratic or convex bowls, which look nothing like neural network loss landscapes.

Recently, researchers noticed that Large Language Model (LLM) loss landscapes look less like bowls and more like a river-valley: a narrow, flat, winding path of low loss (the river) flanked by steep, high-curvature walls (the mountains). Long-term training progress depends on how fast you travel down the river. If you use vanilla Gradient Descent (GD) with a high learning rate, you move down the river quickly, but you also violently ricochet off the steep valley walls until training explodes. How does momentum change this picture, and how does it interact with the learning rate in a curved, non-convex canyon?

Figure 1: GD-M stabilizes a river-valley trajectory. At η = 0.4, GD-M (β = 0.9, red) damps transverse oscillations and moves along the black river, whereas GD (β = 0, blue) keeps oscillating. Opacity increases with iteration.

Methods

The authors build a rigorous mathematical analysis of Gradient Descent with Heavy-Ball Momentum (GD-M) navigating a non-convex river-valley landscape, paired with empirical checks.

  • What is standard: They analyze the classic Polyak heavy-ball momentum update rule ($m_{k+1} = \beta m_k + (1-\beta)\nabla L(w_k)$) and adopt the geometric "river-valley" assumptions introduced in recent literature (a 1D flat manifold surrounded by sharp orthogonal directions, where the river twists slowly).
  • What is new: Because the river curves ("spins"), the flat river directions and sharp mountain directions constantly rotate into one another, causing gradients and momentum to interfere. The authors introduce a novel induction argument that separately tracks gradient and momentum projections in both flat and sharp subspaces, alongside a continuous-time linear interpolation that maps discrete optimizer steps onto an idealized Riemannian flow along the riverbed. (As a bonus, their tighter math also substantially improves the known maximum learning rate bound for vanilla GD in this setting.)

Datasets

  • Synthetic 2D Landscape: A non-convex toy function, $L(x_1, x_2) = 2(x_2 - \sin(x_1))^2 - 0.1x_1$, used as a clean geometric testbed.
  • TinyStories: An existing benchmark of ~0.5 billion tokens (~2.2M training and 22,000 validation examples) used to pretrain a ~20M-parameter GPT-Neo language model for one epoch using a Warmup-Stable-Decay (WSD) learning rate schedule. No new datasets are introduced.

Key Insights and Ideas

  • Acceleration via Stabilization, Not Direct Speed: Here is the biggest "aha" moment: if you hold a stable learning rate $\eta$ fixed on a flat, slow-turning river, changing the momentum parameter $\beta$ barely changes your speed. Momentum itself isn't pressing the gas pedal. Rather, it cancels out the back-and-forth oscillations across the valley walls, raising the maximum tolerable learning rate by a factor of $\frac{1+\beta}{1-\beta}$. You go faster only because momentum lets you survive a much larger $\eta$.
  • Classical Ratios Survive Non-Convex Twists: That $\frac{1+\beta}{1-\beta}$ stability multiplier is famous in simple quadratic optimization. Proving that it still governs the leading stability threshold when flat and sharp eigenspaces are actively rotating along a non-convex trajectory is a major theoretical bridge.
  • Too Much Momentum Breaks Tracking on Sharp Bends: When $\beta$ gets too close to $1$ (e.g., $0.999$), error terms tied to the river's curvature and spinning speed blow up. Like a heavy bobsled taking a tight corner too fast, excessive momentum causes the trajectory to lose track of the river entirely.
Numerical verification showing trajectories, linear loss improvement with learning rate independent of beta, and the empirical stability threshold matching theoretical scaling.

Key Results

  • Synthetic Validation: On the 2D sine-valley function at $\eta = 0.4$, vanilla GD ($\beta = 0$) gets trapped oscillating between the walls, while GD-M ($\beta = 0.9$) damps the bounce and glides down the river. Across 1,000 steps, empirical max learning rates closely hug the theoretical curve, climbing from $0.3$ (at $\beta = 0$) to $4.1$ (at $\beta = 0.9$). At any fixed tolerable $\eta$, final losses across different $\beta$ values lie almost right on top of each other.
  • LLM Pretraining with SGD-M: Training GPT-Neo on TinyStories directly mirrors the theory. As $\beta$ increases from $0$ to $0.95$, the max non-divergent learning rate rises from $0.63$ to $2.98$. At a safe learning rate ($\eta = 0.1$), $\beta = 0.9$ and $\beta = 0.95$ reach nearly identical validation losses ($2.065$ vs. $2.073$). Crank $\eta$ to $1.0$, however, and vanilla SGD ($\beta = 0$) diverges, while $\beta = 0.9$ thrives and drops validation loss to $1.781$.
  • LLM Pretraining with Adam: Sweeping Adam's $\beta_1$ reveals the same mechanism: the max stable learning rate climbs from $1.47 \times 10^{-3}$ ($\beta_1 = 0$) to $1.90 \times 10^{-3}$ (around $\beta_1 = 0.85$), before dipping slightly to $1.82 \times 10^{-3}$ as $\beta_1$ nears $1$—matching the predicted penalty from river curvature and spinning.

Limitations and Future Work

  • Flat and Slow-Spinning Assumptions: The theoretical guarantees rely on the river being very flat and twisting slowly ($\kappa \ll 1$), and require $\beta$ not to be arbitrarily close to $1$ (bounded at $\le 0.99$ in the theorem). Quantifying exact dynamics when the river bends sharply remains an open problem.
  • Deterministic Theory vs. Stochastic Practice: The proofs analyze deterministic, full-batch GD-M initialized on the river, whereas real LLM pretraining involves mini-batch gradient noise.
  • Adaptive Preconditioning: While the authors test Adam empirically, their theorems only cover heavy-ball momentum. Extending this river-valley math to fully adaptive optimizers like Adam and Muon is highlighted as the natural next step.

Summary updated

Abstract

Momentum is a critical and ubiquitous component of modern optimizers, while the role of momentum remains unclear beyond restricted settings, especially in optimization for large-scale neural networks. Recent studies suggest that the highly non-convex loss landscape for large language models exhibits certain “river-valley” structure: a low-loss manifold (the river) bordered by sharp, high-loss directions (the valley), where the essential optimization progress is determined primarily by the progress along the river in the long run. Motivated by this structure, in this work, we investigate the role of heavy-ball momentum in such an emerging setting. Specifically, we analyze gradient descent with heavy-ball momentum and show that compared to vanilla gradient descent, momentum can accelerate the progress along the river by enabling use of a substantially larger learning rate. In fact, momentum acts as a stabilizer in the presence of oscillations caused by an aggressive choice of learning rate, which the vanilla gradient descent cannot tolerate. We validate the insights with experiments on synthetic functions and language model training, offering practical guidance for tuning learning rate and momentum parameters.
BibTeX
@inproceedings{lu2026towards,
  author = {Miao Lu and Zeyu Bian and Kaiyue Wen and Beining Wu and Siyu Chen and Tianhao Wang and Zhiyuan Li},
  title = {{Towards Understanding Momentum Acceleration in River-Valley Loss Landscape}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=RhiQnfDg2m},
}
Figure