On the Convergence of Continuous-Time AdamW

Bangjie Wang, Ning NingarXiv 2026

TL;DR

Researchers have developed a new continuous-time framework to analyze AdamW, the primary optimizer used for training Large Language Models. Their findings reveal a striking geometric link: the optimizer's long-term stability depends on the "flatness" (Hessian nullity) of the loss landscape, proving that AdamW can actually enter a state of perpetual orbital motion even on simple, strictly convex functions.

What Problem Does This Paper Address?

Despite being the "workhorse" of modern AI—powering everything from GPT-4 to Stable Diffusion—the long-term mathematical behavior of AdamW remains surprisingly mysterious. Unlike standard Gradient Descent, AdamW is complex: it uses "momentum" (memory of past gradients), "adaptive scaling" (normalizing steps by squared gradients), and "decoupled weight decay."

The central question is: Does AdamW always converge to a single point (an equilibrium), or can it sustain persistent, never-ending motion? Previous studies often ignored "bias correction" or assumed the optimizer was already near a solution. This paper aims to provide a rigorous global theory for the full, bias-corrected AdamW trajectory.

Methods

The authors use a continuous-time limit approach. Instead of looking at discrete steps, they model AdamW as a system of Ordinary Differential Equations (ODEs). This "mathematical microscope" allows them to use tools from geometry and physics to track the "position" (model parameters) and "moments" (moving averages of gradients).

Key technical tools include:

  • Nonautonomous ODEs: Modeling how bias correction makes the optimizer's behavior change explicitly over time, especially near initialization.
  • Geometric Singular Perturbation Theory: Specifically using Fenichel’s theorem to identify "invariant manifolds"—surfaces in the parameter space that the optimizer gets "stuck" on.
  • Lyapunov-style Energy Estimates: To prove that the optimizer stays within a bounded region rather than flying off to infinity.

Datasets

As a theoretical mathematics and optimization paper, this work does not use standard machine learning benchmarks like ImageNet or GLUE. Instead, it utilizes:

  • Synthetic Illustrative Objectives: Specifically designed polynomial functions (e.g., a quartic objective in 3D) used to mathematically prove and numerically simulate the "persistent motion" phenomenon.
  • GPT-2/Qwen3 Comparisons: The paper references existing iteration-speed benchmarks to motivate why studying AdamW remains more practically relevant than newer, more complex optimizers like Muon or TEON.

Key Insights and Ideas

  • The Hessian Nullity Rule: The most significant insight is that the "flatness" of the objective function determines the dimension of the space where the optimizer ends up. If a critical point has $k$ "flat" directions (where the Hessian has zero eigenvalues), the optimizer approaches a $k$-dimensional manifold.
  • The "Nullity-Two" Trap: The authors prove a counter-intuitive result: if there are at least two flat directions, AdamW can enter a limit cycle (a stable orbit). It will circle the minimum forever rather than landing on it.
  • Convexity Isn't Enough: In standard optimization, "strictly convex" usually implies easy convergence. This paper shows that for AdamW, even a strictly convex function can support persistent oscillations if the second-moment field varies in a specific way.
  • Bias Correction is a "Singular" Start: The paper rigorously handles the "singular" start of AdamW (where the initial moments are zero), proving that the bias-corrected version is well-defined and stable from time zero.

Key Results

  • Manifold Convergence (Theorem 3): For a fixed, small weight decay $\lambda$, the trajectory approaches a locally invariant manifold whose dimension exactly equals the Hessian nullity.
  • Point Convergence (Theorem 4): If the loss landscape is "sharp" enough (Hessian nullity $\le 1$), AdamW is guaranteed to converge to a single equilibrium point.
  • Quantified Localization (Theorem 5): The authors provide a formula for how close the optimizer stays to the "ideal" solution as you shrink the weight decay ($\lambda \to 0$), showing that the distance scales roughly with $\lambda$ raised to a power determined by the local geometry (Łojasiewicz exponents).
  • Numerical Proof of Orbit: Simulations (Figures 3 and 4) confirm that on a nullity-two objective, the parameters trace out nearly closed loops, oscillating indefinitely.

Limitations and Future Work

  • Continuous vs. Discrete: While the ODE provides deep geometric insight, real-world training happens in discrete steps. The "discretization gap" could introduce behaviors not captured here.
  • Stochasticity: This paper focuses on the "mean" behavior (deterministic). In practice, "gradient noise" from mini-batches plays a huge role, which the authors address in a separate companion paper.
  • Vanishing Second Moments: The theory requires the second-moment field to be strictly positive ($S_i > 0$). If gradients vanish entirely in some directions, the "adaptive" part of AdamW involves dividing by zero, which requires different mathematical treatment.
  • Large Weight Decay: The results are most robust for "sufficiently small" weight decay. The behavior under the very large weight decay sometimes used in specific regularization regimes remains an open question.

Summary updated

Abstract

Continuous-time AdamW provides a framework for understanding whether an optimizer widely used to train large-scale neural networks settles to an equilibrium or sustains persistent motion. We study this long-time behavior while retaining bias correction and fixed positive weight decay. Under suitable assumptions, we establish that the dynamics are well defined for all time and remain bounded when the decay is sufficiently small. Our main result connects their limiting behavior to the geometry of the objective: trajectories approach a locally invariant manifold whose dimension equals the Hessian nullity along the associated critical component. When critical points are isolated and have at most one such direction, the trajectory converges to a single equilibrium. With two degenerate directions, however, bounded persistent motion can occur even for a smooth, strictly convex objective with a unique minimum. We also quantify how close the long-time trajectory remains to the critical set as weight decay decreases, without assuming convergence to a point. These results identify objective geometry as a key to understanding when continuous-time AdamW converges and when persistent motion is possible.
BibTeX
@misc{wang2026convergence,
  author = {Bangjie Wang and Ning Ning},
  title = {{On the Convergence of Continuous-Time AdamW}},
  year = {2026},
  eprint = {2611.20437},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20437},
}
Figure