Riemannian Lyapunov Framework: Optimization as Closed-Loop Control on Riemannian Manifolds

Yixuan Wang, Omkar Sudhir Patil, Warren DixonNeurIPS 2026

TL;DR

Deep learning optimizers—from SGD and Adam to Lion and Shampoo—often look like a zoo of clever, disconnected heuristics. This paper reveals they are actually variations of a single physical process: a closed-loop feedback controller steering a dynamical system on a curved geometric manifold. By framing optimization as controller synthesis, the authors provide a mathematical "blueprint" that explains why existing optimizers work and lets us systematically engineer new ones with provable stability guarantees.

What Problem Does This Paper Address?

If you train neural networks, you rely on an ever-growing menu of optimization algorithms. Some scale gradients by running averages (Adam, RMSProp), others use only the sign of the momentum (Lion), and some estimate full second-order curvature (Shampoo). While empirically effective, our theoretical understanding of why they all work is fragmented.

Existing attempts to unify them—like taking continuous-time limits—often oversimplify internal memory states or ignore the reality of noisy, discrete-time updates. Without a single, cohesive foundation explaining how auxiliary states (like momentum and preconditioning) interact with noisy gradients, designing a new optimizer remains more of an alchemy of trial-and-error than principled engineering.

Methods

The authors introduce the Riemannian Lyapunov Framework (RLF), recasting an optimizer not just as a parameter-update rule, but as an extended dynamical system tracking position (parameters $\theta$), physical velocity/momentum ($v$), and internal memory ($y$) on a curved space (a Riemannian manifold $\mathcal{M}$).

(Correction: let's make sure the figure ID matches Figure 1) -> Let's pause and ensure exact artifact ID: art_cd249697f6ad4bb8b25ac9d46286713e.

Figure 1: Geometric intuition of the NAIM Lyapunov framework. The orange surface represents the NAIM embedded in the extended state space θ, v. Blue streamlines illustrate the fast dynamics: the velocity state v rapidly contracts onto Λ at a rate governed by the lifting parameter η, regardless of initial conditions. Orange arrows show the slow dynamics: once the trajectory reaches Λ , the system evolves along the direction field Φ toward the target optimum at the center.

The secret sauce organizing this system is a geometric surface called the Normally Attracting Invariant Manifold (NAIM). It splits training into two distinct timescales:

  1. Fast dynamics: Velocity rapidly snaps onto the target surface.
  2. Slow dynamics: Once on the surface, parameters glide smoothly down toward minimum loss.

To force the system onto this surface despite noisy stochastic gradients, the authors borrow backstepping from nonlinear control theory. They construct a strict Lyapunov function (an energy-like measure combining loss value and distance from the manifold) and synthesize an acceleration control law guaranteed to drain this energy over time.

Discretizing this continuous controller yields a universal algorithm template—the Riemannian Lyapunov Optimizer (RLO)—governed by four modular knobs:

  • Metric ($g$): Defines the local geometry (e.g., adaptive preconditioning).
  • Memory transition ($\Psi$): Updates internal statistics like moving averages.
  • Direction field ($\Phi$): Shapes the target update direction (e.g., linear, $\text{sign}$, or $\tanh$).
  • Lifting parameter ($\eta$): Controls how fast velocity snaps onto the manifold.

Datasets

The authors evaluate their theoretical diagnostics and synthesized RLO variants across standard benchmarks (no new datasets are introduced):

  • CIFAR-10 (trained with ResNet-18 for mechanism diagnostics, ablations, and baselines).
  • ImageNet (trained from scratch with ResNet-50, ViT-S/16, and ViT-B/16).
  • OpenWebText (language modeling with GPT-2 Small, 124M parameters).

Key Insights and Ideas

  • Preconditioning is geometry: Adaptive scaling in Adam or RMSProp isn't just an ad-hoc learning-rate tweak; it is mathematically equivalent to choosing a time-varying Riemannian metric that warps space according to local curvature.
  • The "Thick Tube" of stochasticity: Because mini-batch gradients are noisy and the target manifold shifts at every step, an optimizer never sits perfectly on the manifold. Instead, RLF proves trajectories are confined to a "thick tube" around it (Uniform Ultimate Boundedness).
  • Smoothness shrinks the tube: A discontinuous direction field like Lion’s $\text{sign}(y)$ jolts the target manifold abruptly, widening the tracking tube and increasing variance. Replacing $\text{sign}$ with a smooth, bounded $\tanh(\gamma c)$ field shrinks this tube, yielding tighter stability and lower steady-state loss.

Key Results

  • Isolating geometry matters: Holding all other RLO knobs fixed on CIFAR-10, swapping only the Riemannian metric accounts for a 12.66 percentage point jump—from 81.72% (flat Euclidean identity) to 94.38% (diagonal RMSProp metric). Collapsing coordinate-level curvature into single per-layer scalars drops accuracy to 91.57%.
Table 2: Metric ablation on CIFAR-10 with ResNet-18, all framework components held fixed except the Riemannian metric. Each variant is evaluated at its individually selected peak learning rate. Best Acc and Final Acc are reported as mean ± standard deviation across three seeds.
  • Theory matches variance in practice: On CIFAR-10 baselines, the smooth RLO-Λ ($\tanh$) variant achieves an across-seed standard deviation of just 0.02%, over $4.5\times$ tighter than AdamW (0.13%), Lion (0.13%), and Adan (0.09%), directly confirming the "thick tube" prediction.
  • Competitive large-scale scaling: On ImageNet, RLO-Λ achieves the highest Top-1 accuracy across all three tested architectures, notably hitting 76.47% on ViT-B/16 (beating AdamW by 5.05 points and Lion by 0.20 points).
  • Language modeling: On GPT-2 Small, RLO-Λ reaches a validation perplexity of 21.56, a 7.42% relative improvement over AdamW (23.29) and outperforming Lion (24.53), driven by finding a genuinely lower training-loss basin rather than mere regularization.

Limitations and Future Work

The authors emphasize that their goal here is establishing the foundational link between control theory and optimization—not claiming a new universal state-of-the-art optimizer. Currently, RLF focuses on stability and manifold tracking via Lyapunov backstepping. Looking ahead, casting optimization as control opens the door to optimal control theory: future work could define explicit cost functionals that mathematically trade off loss reduction, tracking precision, and parameter update effort to automatically derive optimal learning schedules and update rules.

Summary updated

Abstract

We introduce the Riemannian Lyapunov Framework (RLF), a unified framework that represents first order optimization as a closed loop controlled dynamical system on a Riemannian parameter manifold. Within this framework, optimizers are specified by a quadruple $(M, g, \Phi, \eta)$ consisting of a Riemannian metric, an internal state transition map, a direction field generator, and a lifting parameter. Classical and modern methods including SGD, Adam, AdamW, Lion and Shampoo are recovered as specific instantiations of this quadruple. The central structural object of the framework is a time indexed family of target submanifolds in the extended state space of parameters, velocities, and internal memory, which we call the Normally Attracting Invariant Manifold (NAIM) family. These submanifolds organize training dynamics into two timescales: a fast contraction of the velocity state onto the current target submanifold, followed by a slow descent along it. Using Riemannian backstepping, we construct a strict Lyapunov function on the extended state space and prove Uniform Ultimate Boundedness (UUB) of the optimization trajectory under a descent alignment assumption and bounded stochastic disturbances. Under the additional Polyak-Lojasiewicz (PL) condition, the Lyapunov function converges linearly to a bounded neighborhood of the optimum, defined as the drift of the target direction field between consecutive iterates after parallel transport. To validate the framework's generativity, we derive three concrete instantiations of the quadruple, each exercising a distinct design axis, and show on geometric diagnostics, image classification benchmarks, and language modeling that their empirical behavior matches the theoretical predictions. The framework casts optimizer design as controller synthesis, complementing heuristic perspectives by providing a constructive template with provable guarantees.
BibTeX
@inproceedings{wang2026riemannian,
  author = {Yixuan Wang and Omkar Sudhir Patil and Warren Dixon},
  title = {{Riemannian Lyapunov Framework: Optimization as Closed-Loop Control on Riemannian Manifolds}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=548NwQAdhQ},
}
Figure