SGD, Adam, Lion, Muon: every one of them measures a gradient, decides an update, applies it, and measures again. That is a feedback controller, and control theory has spent seventy years learning how to design such loops and prove they work. The Riemannian Lyapunov Framework is what you get when those tools are brought to optimizer design: one loop with four swappable parts, one certificate whose form stays fixed when you swap them, provided the parts you swap in satisfy its assumptions, and a map on which every optimizer you know is a single point.
Every few months there is a new optimizer. Lion, Sophia, Muon, Adafactor. Each arrives with its own paper, its own experiments, and its own "beats AdamW on X". The natural question is always: is this one better than AdamW?
But that question treats optimizers as a catalog of tricks: pick the best one, throw away the rest. There is a more useful question: what do they all have in common, and where exactly does each one differ?
If you can answer that, you can do something better than compare. You can design. You can say "I want Muon's direction but AdamW's memory" and have the language to describe it. You can say "I want a smooth direction field because smooth fields have thinner tubes" and have a reason. You can look at a new optimizer and immediately place it in the space.
No, and here is the concrete reason. We already have a language for optimizers: "it uses momentum", "it normalizes by second moments", "it takes the sign". That language is descriptive. It tells you what an algorithm does. It does not tell you how to design a new one, or why a given design works.
The language of control is generative. You state what the system should do, a reference to track and a stability condition to meet, and a construction procedure such as backstepping produces a controller together with the certificate that it meets the specification.
And an optimizer is already a control loop. Look at what it does at every step.
RLF, the Riemannian Lyapunov Framework, translates the generative capability into optimizer design. It treats the optimizer as the controller of this loop, writes the "reference" as a target set \(\Lambda\) in the space of parameter and velocity, writes the "stability condition" as a Lyapunov function \(V\), and uses backstepping to derive the update rule that makes \(V\) decrease. The four knobs that come out, metric, memory, direction field and contraction rate, fall out as the places where different optimizers make different choices.
To design an optimizer you need to know which parts determine it and what each one is responsible for. RLF names four. Fixing all four fixes the controller, and the common first order optimizers are particular choices of them.
Written as a controller, an optimizer is a chain of stages between one gradient measurement and the next parameter update. The measurement enters on the left, the update leaves on the right, and in between are the four parts, each a design decision that can be made independently of the others. Pick an optimizer below and every stage fills in with that optimizer's actual rule; the highlighted stages are the ones it changes relative to plain SGD.
To understand the four parts, take them one at a time. The memory \(\Psi\) is whatever the controller carries from one step to the next; SGD carries nothing, Adam carries two moving averages. The direction field \(\Phi\) turns memory and measurement into a wanted velocity \(d_k\); this is where sign, matrix sign, or a smooth saturation enters, and the set of states where the real velocity equals the wanted one is the target set \(\Lambda\). The contraction \(\eta\) is how much of the wanted velocity is adopted in one step; \(\eta=1\) means adopt it immediately, \(\eta<1\) means relax toward it. The step uses the metric \(g\) to decide how long a unit of velocity is in each direction; Adam's division by \(\sqrt{s}\) lives here, and Appendix B of the paper shows it is exactly a choice of Riemannian metric.
| OPTIMIZER | METRIC \(g\) | MEMORY \(y_k\) | DIRECTION FIELD \(d_k\) | CONTRACTION \(\eta\) | DIRECTION GEOMETRY |
|---|
The table follows Table 7 of the paper, where each row is discussed in detail. The Muon row is this page's reading; Muon is not in the paper.
The loop above is abstract. Here it runs on the simplest possible loss, so you can watch the controller's internal state move and see how each knob changes its behavior.
Think of cruise control. A car has a position and a speed. The cruise controller decides a wanted speed and pushes the real speed toward it. Two things happen on different timescales: the speed matches the wanted speed quickly, and then, at that speed, the position drifts to where it should be slowly. If the real speed lags the wanted one, that lag is the quantity the engineer watches.
An optimizer in the control view is the same picture with the parameter \(\theta\) as position and the update velocity \(v\) as speed. The direction field \(\Phi\) is the rule for the wanted speed at each position. Plotting wanted speed against position gives a curve; this is the target set \(\Lambda\), drawn dashed below. The controller's first job is to get the state \((\theta,v)\) onto that curve, the fast motion. Its second job is to slide along the curve to the minimizer, the slow motion. The vertical gap between the state and the curve is the residual \(z=v-\Phi\), drawn in red. Everything in the certificate of Section 05 is a statement about \(z\).
Read through the four knobs, Muon changes one relative to Lion: the direction field. Lion's \(\Phi\) is the elementwise sign; Muon's is the matrix sign \(\operatorname{msign}(M)=UV^{\top}\), the polar factor of the momentum matrix. Metric, memory, contraction and weight decay are identical.
Both fields throw away magnitude. Lion throws it away in every coordinate, so each entry becomes \(\pm1\), but the result does not in general equalize the singular values and it depends on the coordinate basis. Muon throws it away in every singular direction, so each singular value becomes \(1\) and the output is an orthogonal matrix (a rotation or a reflection; a partial isometry in the rectangular or rank deficient case), equivariant under orthogonal changes of basis. In the language of Section 02 the two optimizers have different direction geometries: Lion's wanted velocities live at hypercube corners, Muon's at partial isometries, and the target set \(\Lambda\) is the graph of that wanted velocity over the parameter. What the paper says about Lion transfers to Muon unchanged: the analysis remains valid as long as the forcing \(\delta_k\) stays bounded, and Muon's output has Frobenius norm \(\sqrt{\operatorname{rank}M}\) by construction, which bounds \(D_{\max}\). What does not transfer is the \(O(h)\) band of Theorem 4.1: that needs a Lipschitz direction field, and the matrix sign, like the sign, jumps by \(O(1)\) where a singular value crosses zero.
Chen, Liu, Liang and Liu show that Muon is Lion with the sign replaced by a subgradient of the nuclear norm, and that the small step ODE in \((X,M)\) decreases a Hamiltonian \(\mathcal H(X,M)=\hat{\mathcal F}(X)+\mathcal D(M,\lambda X)\) built from convex conjugacy. RLF asks a different question with a different state. Its state is \((\theta,v,y)\) with the velocity as an explicit variable to be steered; its Lyapunov function penalizes distance to the target set instead of a conjugate pair; and its analysis is carried out in discrete time with bounded disturbances, so the conclusion is a band of width \(O(h)\) instead of asymptotic convergence of an ODE. The same concrete update, a different extended state, a different Lyapunov function, different guarantees. The two views are complementary. Lion \(\mathcal K\) tells you which direction fields are gradients of a convex potential and what constraint they impose on the weights. RLF tells you how to wrap a direction field, convex potential or not, in a loop with a metric, a memory and a contraction rate, and what certificate the wrapped loop earns, provided the field's forcing stays bounded.
Scope note: Muon does not appear in the paper. Its placement here follows Table 7 by substituting the direction field, together with the paper's remark that sign type fields keep the analysis valid as long as the forcing \(\delta_k\) stays bounded.
Two results carry the whole framework. The first derives the loop; the second certifies it. Then the practical question: what can you do with that?
Start from the dynamics alone, a parameter with a velocity and no controller: \(\dot\theta=-v\), \(\nabla_{\dot\theta}v=u\), where \(u\) is the input to be designed. Write the energy as loss gap plus squared residual. Differentiate it along the dynamics and ask which \(u\) makes the derivative negative. Backstepping gives the answer in one line: feed forward the drift of the wanted velocity, feed back the residual. Discretizing the feedback part of that \(u\) with step \(h\) gives the contraction stage of Section 02 with \(\eta=h/\tau\), while the feedforward of the target's drift is carried by recomputing \(d_k\) each step (Section 4.2 of the paper). The familiar momentum update is the output of a design procedure, not its input.
Theorem 4.1 is a single drift inequality. Its left side is the same energy for SGD, momentum, AdamW or a new combination of knobs; when the chosen parts satisfy its assumptions (descent alignment, bounded and Lipschitz direction field, small enough step), only the three constants change. The gradient term is what you gain by descending, the residual term is what you gain by tracking, and \(C_3h^2\) is the price of a target that moves between steps; stochastic gradients enter the certificate only through that motion, as a bounded disturbance. Under a Polyak Łojasiewicz condition the loss gap is driven into a band of width \(O(h)\). A new combination of knobs inherits the same template; whether the inequality applies is a check of those assumptions, which can be done before training.
The direction field enters the band through three constants: its alignment \(\mu_\Phi\), its size \(D_{\max}\), and its smoothness \(L_\delta\), which measures how far the wanted velocity can jump between consecutive steps. Of the three, \(L_\delta\) is the one that separates a smooth field from a discontinuous one, and it enters squared. That is the formal version of what the sign experiment in Section 03 shows.
Suppose you grant all of the above. The loop is real, the inequality holds. What can you actually do with it that you could not do before? Three things; the details are in the paper.
Once the optimizer is a dynamical system, its state carries two instruments: the residual \(z_k=v_k-d_k\), which says whether the velocity is tracking the target, and the energy \(V_k\), which says whether the certificate is being honored. Both can be computed cheaply from what the optimizer already holds, in practice from the stochastic gradient and a probe loss, so the effect of a design choice is visible in the traces during training, not only in the final loss (Section 6.1).
Theorem 4.1 is a quantitative statement: the energy enters a band of width \(C_3h\), and \(C_3\) grows with the square of the forcing constant \(L_\delta\). So "a smoother direction field gives a thinner band, other constants being comparable" is a design rule read off the bound, and the paper checks it by swapping \(\tanh\) for \(\operatorname{sign}\) with everything else fixed (Tables 1 and 9).
The four knobs enter the analysis separately, so they can be turned separately. Change only the metric and the other three stay fixed; if the new metric satisfies the assumptions the inequality holds with new constants, and the experiment measures the effect of that one decision. The paper does exactly this for each knob (Section 6.2 and Appendix D). A catalog of whole optimizers cannot express that experiment at all.
Riemannian Lyapunov Framework: Optimization as Closed Loop Control on Riemannian Manifolds. Yixuan Wang, Omkar Sudhir Patil, Warren E. Dixon. NeurIPS 2026.