Optimizer design · control theory · NeurIPS 2026

Stop discovering optimizers. Start designing them.

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.

01

Why build a framework at all?

Why compare these optimizers in the first place?

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.

Why describe this in the language of control? Is this design for design's sake?

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.

SENSOR
Measure
controla noisy measurement of the stateoptimizera stochastic gradient at the current parameters
→measurement
CONTROLLER
Decide
controla feedback law, possibly with internal stateoptimizerthe update rule, possibly with memory such as momentum
→input
DYNAMICS
Evolve
controlthe state evolves under the inputoptimizerthe parameters are updated and the loss changes
the new state is measured again

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.

What you get that a catalog cannot give you. A description tells you what an algorithm does. A construction procedure tells you what to build next. The framework does the second.
02

Four parts that determine an optimizer

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.

DYNAMICS
Where do the parameters live?
the loss \(f\), the parameter \(\theta\), and its velocity \(v\)
→\(\hat g_k\)
MEMORY\(\Psi\)
What does the controller remember between steps?
→\(y_{k+1}\)
DIRECTION FIELD\(\Phi\)
Which velocity does the controller want right now?
→\(d_k\)
CONTRACTION\(\eta\)
How fast is the real velocity pulled to the wanted one?
→\(v_{k+1}\)
STEP\(g\)
How are lengths measured when the step is taken?
\(\hat g_k\)  the measurement: a stochastic gradient at \(\theta_k\)
\(y_{k+1}\)  the memory after absorbing \(\hat g_k\)
\(d_k\)  the wanted velocity, computed from memory and measurement
\(v_{k+1}\)  the velocity actually used for the step
\(\theta_{k+1}\)  the new parameter. Indices as in Algorithm 1 of the paper: \(d_k=\Phi(y_{k+1},\hat g_k)\)

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.

Momentum is the contraction knob. The contraction stage is \(v_{k+1}=(1-\eta)v_k+\eta\,d_k\). With \(d_k=\hat g_k\) this is the exponential moving average that heavy ball momentum computes, with \(\eta=1-\beta\), up to a rescaling of the step size (Polyak's form \(v_{k+1}=\beta v_k+\hat g_k\) has no \(1-\beta\) factor). A momentum coefficient is not a physical analogy; it is the rate at which the real velocity is pulled onto the wanted one.

How the common optimizers fill the four parts

OPTIMIZERMETRIC \(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.

03

A one dimensional toy example

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\).

Start anywhere
The state begins off the curve: wrong position and wrong speed.
Fast: match the speed
The contraction stage pulls \(v\) onto \(\Phi(\theta)\) in a few steps. The red gap shrinks while the position moves only a little.
Slow: ride the curve
Now the speed is right and the position drifts to the minimizer at a rate set by the step size \(h\).
What can go wrong
If the curve has a jump, the speed cannot settle on it. The gap keeps reopening and the energy stops decreasing. Try the sign field.
position \(\theta\) against velocity \(v\); loss \(f(\theta)=\tfrac12\theta^2\), minimizer at \(\theta^\star=0\)
target set \(\Lambda\): wanted velocity \(\Phi(\theta)\)fast phase (off the curve)slow phase (on the curve)residual \(z_k=v_k-d_k\), \(d_k=\Phi(\hat g_k)\)
the certificate's energy, step by step (log scale)
\(V_k=\big(f(\theta_k)-f^\star\big)+z_k^2\)\(z_k^2\), the tracking part\(f(\theta_k)-f^\star\), the loss part
STEP
0
TAIL MEAN \(z_k^2\)
–
TAIL MEAN \(V_k\)
–
TAIL MEAN \(f(\theta_k)-f^\star\)
–
exact dynamics run here: \(\hat g_k=\theta_k+\sigma\xi_k\) with \(\xi_k\) uniform on \([-1,1]\), \(d_k=\Phi(\hat g_k)\), \(z_k=v_k-d_k\), \(v_{k+1}=(1-\eta)v_k+\eta d_k\), \(\theta_{k+1}=\theta_k-h\,v_{k+1}\). With \(\sigma=0\) the dashed curve is the target; with noise the target jitters around it and the red bar is drawn to the realized \(d_k\). This is the residual \(z_k=v_k-d_k\) of the paper's proof and notation table; Section 4.1 of the paper first defines \(z\) with the true gradient, and the two coincide when \(\sigma=0\). The sliders \(\eta\) and \(h\) are independent design knobs here; in the derivation they are tied by \(\eta=h/\tau\). The indicator under the step size slider evaluates the three step size conditions of Theorem 4.1 for the current field and \(\eta\), on the region \(|\theta|\le1.6\) shown; the binding one for \(\tanh(5\cdot)\) is \(h\le\eta/(\sqrt{24}\,L_\delta)\) with \(L_\delta=5\). Outside the range the theorem is silent; the loop may still converge, and \(V_k\) may rise at some steps. Blue and green mark the residual above and below \(0.12\), a display threshold, and the horizontal line is the mean of \(V_k\) over the displayed tail window, not a proven steady state. The number of steps grows as \(h\) shrinks (about \(4/h\), between 400 and 4000) so that small step sizes still reach the long run behavior.tail = last half of 400 steps

Four things to try

The two timescales
tanh · η 0.30 · h 0.01 · σ 0
Watch the blue segment: the state rises almost vertically onto the curve in a handful of steps while the position moves only a little. Then the green segment slides left along the curve for well over a hundred steps. The red curve on the right drops first; the grey loss curve follows later, and in this run \(V_k\) decreases at every step.
Instant contraction, \(\eta=1\)
tanh · η 1.00 · h 0.01 · σ 0
The velocity equals the wanted velocity at every step, so the only residual left is how much the wanted velocity moved since last step, \(z_{k+1}=-\delta_k\) with \(\delta_k=d_{k+1}-d_k\). This is what Lion and Muon do.
A jump in the curve
sign · η 0.30 · h 0.01 · σ 0
With the sign field the wanted velocity flips between \(+1\) and \(-1\) at \(\theta=0\). The state cannot settle on a jump, so it chatters across it and \(V_k\) stops at a floor instead of going to zero. The quantity responsible has a name: the forcing \(\delta_k=d_{k+1}-d_k\), which for the sign field is \(\pm2\) at every flip no matter how small \(h\) is. Move the step size slider: the residual part of the floor does not vanish as \(h\) shrinks, while the loss part keeps shrinking. This is not the \(O(h)\) band of Theorem 4.1, which needs a Lipschitz field; it is a bounded forcing floor whose size is set by the jump and by \(\eta\).
A smooth field with noisy gradients
tanh · η 0.30 · h 0.01 · σ 0.1
Now the target itself jitters, because it is computed from a noisy gradient, and \(V_k\) stops decreasing. Read the two tail statistics separately. The residual part is set by the noise and does not shrink with \(h\): a noisy target moves by \(O(\sigma)\) between steps whatever the step size. The loss part does shrink as \(h\) shrinks. This is a mechanism demonstration, not a check of Theorem 4.1: with independent noise the realized \(d_k\) can point uphill at individual steps, which breaks the stepwise alignment assumption, and the paper's deterministic drift bound does not cover a noise term without an \(h\) in front of it.
04

Muon as a case study: one knob, one algorithm

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.

momentum \(M=R_\alpha\operatorname{diag}(\sigma_1,\sigma_2)R_\beta^{\top}\)
Lion: \(\operatorname{sign}(M)\)
Muon: \(\operatorname{msign}(M)=R_\alpha R_\beta^{\top}\)
each panel is the image of the unit circle under the matrix; the half axes are its singular valuesset \(\alpha=\beta=0\): the two fields agree on a diagonal \(M\). Set \(\alpha=35,\ \beta=20\) with the default singular values: Lion's output drops to rank one

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.

Relation to "Muon is a Nuclear Lion King"

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.

05

The Lyapunov certificate and what RLF buys you

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?

RESULT 1The update rule is derived, not guessed

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.

SECTIONS 4.1 AND 4.2 OF THE PAPER
$$V=f(\theta)-f^\star+\|z\|_g^2,\qquad z=v-\Phi$$ $$u=\nabla_{\dot\theta}\Phi-\tfrac1\tau z$$ $$\dot V\le-\big(\mu_\Phi-\tfrac\alpha2\big)\|\operatorname{grad}f\|^2-\big(\tfrac2\tau-\tfrac1{2\alpha}\big)\|z\|^2$$ $$\begin{aligned}\text{discrete: }\ v_{k+1}&=(1-\eta)v_k+\eta\,d_k\\ \theta_{k+1}&=R_{\theta_k}(-h\,v_{k+1})\end{aligned}$$
RESULT 2One inequality for every row of the table

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.

THEOREM 4.1
$$\begin{aligned}V_{k+1}-V_k\le\ &-\tfrac{\mu_\Phi}{2}h_k\|\operatorname{grad}f(\theta_k)\|^2\\&-\tfrac{\eta_k}{8}\|z_k\|^2+C_3h_k^2\end{aligned}$$ $$C_3=\Big(L_g+\tfrac{6L_\delta^2}{\eta_k}\Big)D_{\max}^2$$ $$\limsup_{k\to\infty}\big(f(\theta_k)-f^\star\big)\le\frac{C_3h_k}{\mu_\Phi\mu_{PL}}$$

What the framework buys you

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.

DIAGNOSIS
You can watch your design choice behave while it trains

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).

PREDICTION
You get a bound you can design against

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).

SEPARATION
You can change one part and know what you changed

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.

The guarantee is uniform ultimate boundedness. With a moving target and a fixed step size, \(V\) is driven into a band whose width is set by the step size and the smoothness of \(\Phi\), and stays there: that is the UUB conclusion of Theorem 4.1, and under the PL condition the loss gap inside the band is \(O(h)\). The residual term \(\|z\|^2\) is what makes \(V\) a certificate for the whole state. With a velocity state the loss alone can rise for several steps while the loop is still converging, which is why momentum methods are not monotone in the loss; the energy with the tracking term is.
06

The paper

Riemannian Lyapunov Framework: Optimization as Closed Loop Control on Riemannian Manifolds. Yixuan Wang, Omkar Sudhir Patil, Warren E. Dixon. NeurIPS 2026.

arxiv.org/abs/2601.22284 · NeurIPS 2026 poster