Foundations to Frontier
Tests
A. Mathematical Foundations › A6 Optimization › Advanced

Recent Optimizers: Lion, Sophia and Muon

Training large models has driven a new generation of optimizers that rethink the geometry of a step. Lion (found by program search) takes sign steps from an interpolated momentum and needs half of Adam's memory. Sophia uses a cheap diagonal curvature estimate with per-coordinate clipping. Muon treats each weight matrix as a matrix, orthogonalizing its momentum by a Newton–Schulz iteration. That's steepest descent under the spectral norm. You will implement all three, understand them as steepest descent under different norms, and see exactly when per-coordinate methods win and when Muon's basis-free update does.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Different rulers for “a step of size 1”

Every optimizer answers “how far should I step, and in what direction?” The answer depends on how you measure a step.

  • Gradient descent measures ordinary straight-line length.
  • Lion gives every knob the same small nudge, up or down: only the direction of each knob counts.
  • Muon treats a whole table of weights (a matrix) as one object and nudges every “direction” of that table equally, no matter which way the table is rotated.

Different rulers suit different problems, and big models turned out to benefit from these new ones.

Per-coordinate vs per-matrix preconditioning: Adam, Lion and Muon
1e-81e-61e-41e-21e0
■ sgdm (best lr 3): 1.1e-4■ adam (best lr 1): 1.2e-3■ lion (best lr 0.1): 1.8e-3■ muon (best lr 0.3): 1.2e-5
All four use cosine decay and their best learning rate from a grid. When the bad scaling lines up with the coordinate axes, Adam's and Lion's per-coordinate normalization is exactly right and they excel. Rotate the same problem and their advantage collapses, because they aren't rotation-invariant. Muon orthogonalizes each weight matrix's momentum (all singular directions get equal step size), which doesn't depend on the basis. That's one reason it trains transformers' hidden layers so efficiently.
Why engineers care

Optimizer choice now measurably changes the cost of training perception and language models, as well as the large policies used in robotics. Lion cuts optimizer memory in half. Muon has set training-speed records on transformer benchmarks. Knowing the geometry behind them tells you when they’ll help your model and when Adam is still the right tool.

📝 Quick check (Level 0)
0/3 answered
  1. 1. Lion moves each parameter by…
  2. 2. Muon treats a weight matrix…
  3. 3. The main memory advantage of Lion over Adam is…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

Lion (Chen et al., 2023)

Δ=−η sign⁡(β1m+(1−β1)g)−ηλw,m←β2m+(1−β2)g\Delta = -\eta\,\operatorname{sign}(\beta_1m + (1 - \beta_1)g) - \eta\lambda w,\qquad m\leftarrow\beta_2m + (1 - \beta_2)g

Defaults are β1=0.9\beta_1 = 0.9, β2=0.99\beta_2 = 0.99. It keeps one state vector (momentum), versus Adam’s two. Every update has the same magnitude, so it uses a 3–10× smaller learning rate than AdamW. It was discovered by symbolic program search.

Sophia (Liu et al., 2024)

Δ=−η clip⁡ ⁣(mmax⁡(ρh,ε),1)\Delta = -\eta\,\operatorname{clip}\!\Big(\frac{m}{\max(\rho h, \varepsilon)}, 1\Big)

hh is a diagonal Hessian estimate refreshed every few steps (Hutchinson or Gauss–Newton–Bartlett). It’s a Newton-like step per coordinate, clipped for safety when curvature is tiny, negative or noisy.

Muon (Jordan et al., 2024)

For each 2-D weight matrix: M←μM+GM\leftarrow\mu M + G, then W←W−η NS⁡(μM+G)W\leftarrow W - \eta\,\operatorname{NS}(\mu M + G), where NS⁡\operatorname{NS} approximates the polar factor UV⊤UV^\top of G=UΣV⊤G = U\Sigma V^\top using a few Newton–Schulz matrix multiplications. Scalars and embeddings use AdamW.

📝 Quick check (Level 1)
0/3 answered
  1. 1. Lion's update for each coordinate has magnitude…
  2. 2. Sophia clips the step to guard against…
  3. 3. Muon replaces the momentum matrix by its…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.

Steepest descent under different norms

The direction arg⁡min⁡∥d∥≤1g⊤d\arg\min_{\|d\|\le1}g^\top d depends on the norm:

Norm on the step Steepest direction Optimizer
Euclidean ‖d‖₂ −g/‖g‖ (normalized) GD
max-norm ‖d‖∞ −sign(g) signSGD, Lion, early Adam
spectral ‖D‖₂ (matrices) −UVᵀ Muon
Hessian-scaled −H⁻¹g Newton; Sophia (diagonal)

Adam behaves like sign descent with a smoothed, per-coordinate normalization (Bernstein and Newhouse, 2024). Its preconditioning is diagonal, so it fixes bad scaling only when that scaling lines up with the coordinate axes. Muon’s spectral-norm step is equivariant to rotations of the input and output spaces of each layer. The quality of its update doesn’t depend on the basis.

Newton–Schulz orthogonalization

Normalize X0=G/∥G∥FX_0 = G/\|G\|_F so its singular values lie in (0, 1], then iterate X←aX+(bXX⊤+c(XX⊤)2)XX\leftarrow aX + (bXX^\top + c(XX^\top)^2)X. Each step applies the odd polynomial p(σ)=aσ+bσ3+cσ5p(\sigma) = a\sigma + b\sigma^3 + c\sigma^5 to every singular value. Muon’s coefficients (3.4445, −4.7750, 2.0315) push all singular values into roughly [0.7, 1.1] in 5 steps. That’s good enough, uses only matrix multiplications, and is GPU-friendly.

Practical notes

  • Muon is for hidden-layer matrices. Keep AdamW for embeddings, output heads, biases and gains.
  • Lion and Muon need smaller learning rates and benefit from decay, since fixed-magnitude updates otherwise hover around the optimum.
  • Benchmarks must tune each optimizer fairly. Many claimed speed-ups shrink under careful tuning (Dahl et al., 2023; Wen et al., 2025).
🐍 Exercise 1: the three update rules
Implement Muon's quintic Newton–Schulz orthogonalization, the Lion update and Sophia's clipped Newton step. Check the singular values after orthogonalization, alignment with the exact polar factor, Lion's fixed step magnitude and Sophia's clipping.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Steepest descent under the max-norm gives…
  2. 2. Muon's update quality is unaffected by…
  3. 3. Newton–Schulz needs only…

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Sign descent is steepest descent in the max-norm

min⁡∥d∥∞≤ηg⊤d=∑imin⁡∣di∣≤ηgidi\min_{\|d\|_\infty\le\eta}g^\top d = \sum_i\min_{|d_i|\le\eta}g_id_i. Each term is minimized by di=−ηsign⁡(gi)d_i = -\eta\operatorname{sign}(g_i), giving −η∥g∥1-\eta\|g\|_1. ∎

The polar factor is steepest descent in the spectral norm

For ∥D∥2≤1\|D\|_2\le1, von Neumann’s trace inequality gives tr⁡(G⊤D)≤∑σi(G)σi(D)≤∑σi(G)=∥G∥∗\operatorname{tr}(G^\top D)\le\sum\sigma_i(G)\sigma_i(D)\le\sum\sigma_i(G) = \|G\|_*. Equality holds at D=UV⊤D = UV^\top. So −UV⊤-UV^\top minimizes ⟨G,D⟩\langle G, D\rangle over the spectral-norm ball. ∎ The polar factor is also the closest orthogonal (semi-)orthogonal matrix to GG in Frobenius norm.

Why Adam isn’t rotation-invariant

Adam’s per-coordinate denominator vi\sqrt{v_i} depends on the basis. Under a rotation w↦Qww\mapsto Qw, the gradient’s coordinates mix, the second moments change, and the effective preconditioner diag⁡(v)−1/2\operatorname{diag}(v)^{-1/2} no longer matches the problem’s principal axes. Muon’s update satisfies polar⁡(Q1GQ2)=Q1polar⁡(G)Q2\operatorname{polar}(Q_1GQ_2) = Q_1\operatorname{polar}(G)Q_2 for orthogonal Q1,Q2Q_1, Q_2, so it rotates along with the problem. ∎

Exercise 3.1: Steepest-descent value for g = (3, −1) under the max-norm with η = 1

d=−sign⁡(g)=(−1,1)d = -\operatorname{sign}(g) = (-1, 1), so g⊤d=−3−1=−4=−∥g∥1g^\top d = -3 - 1 = -4 = -\|g\|_1.

📝 Quick check (Level 3)
0/3 answered
  1. 1. min over ‖d‖∞ ≤ 1 of gᵀd equals…
  2. 2. The polar factor maximizes ⟨G, D⟩ over…
  3. 3. polar(Q₁GQ₂) =

Level 4: Expert

★★★★★ Expert⏱ 40 minResearchers: original papers and open problems.

When does each optimizer win?

Fit a 8×16 weight matrix with inputs whose scales span two decades, giving each optimizer its best learning rate from the same grid and the same cosine schedule.

  • Axis-aligned scaling: Adam is the best of all (≈ 3e-9 excess loss), because its diagonal preconditioner is exactly right. Lion is next.
  • The same problem with randomly rotated inputs: Adam and Lion degrade by orders of magnitude (≈ 3e-3 and 1e-2), while Muon is essentially unchanged (≈ 1e-5) and now wins clearly.

In real networks, hidden-layer gradient matrices have dominant singular directions that aren’t axis-aligned. That’s the regime where Muon’s orthogonalized updates help.

🐍 Exercise 2 (research): a fair optimizer comparison
Train a matrix regression with SGD + momentum, Adam, Lion and Muon (each with its best LR from a grid, cosine decay). Compare axis-aligned and rotated ill-conditioning, and test rotation (in)variance.

Recent optimizers in AI, robotics and aerospace

  • Large-model training: Muon set NanoGPT and CIFAR-10 speed records and has been scaled to multi-billion-parameter LLMs (Jordan et al., 2024; Liu et al., 2025, “Muon is scalable for LLM training”).
  • Memory-constrained training: Lion’s single state vector matters for training large perception or policy models on limited GPUs and for on-board fine-tuning.
  • Second-order revival: Sophia, Shampoo, SOAP and Muon show that structured curvature or geometry pays off at scale (A6.3-6).
  • Benchmarking discipline: AlgoPerf and follow-up studies stress fair tuning budgets before claiming speed-ups (Dahl et al., 2023).

References

  1. X. Chen et al. (2023). “Symbolic discovery of optimization algorithms.” NeurIPS (Lion).
  2. H. Liu, Z. Li, D. Hall, P. Liang, T. Ma (2024). “Sophia: a scalable stochastic second-order optimizer for language model pre-training.” ICLR.
  3. K. Jordan et al. (2024). “Muon: an optimizer for hidden layers in neural networks.” Blog post and code, kellerjordan.github.io/posts/muon.
  4. J. Liu et al. (2025). “Muon is scalable for LLM training.” arXiv:2502.16982.
  5. J. Bernstein, L. Newhouse (2024). “Old optimizer, new norm: an anthology.” arXiv:2409.20325.
  6. J. Bernstein, Y.-X. Wang, K. Azizzadenesheli, A. Anandkumar (2018). “signSGD: compressed optimisation for non-convex problems.” ICML.
  7. N. Higham (2008). Functions of Matrices: Theory and Computation. SIAM (Newton–Schulz, polar decomposition).
  8. G. Dahl et al. (2023). “Benchmarking neural network training algorithms.” arXiv:2306.07179.
  9. K. Wen et al. (2025). “Fantastic pretraining optimizers and where to find them.” arXiv:2509.02046.
  10. N. Vyas et al. (2024). “SOAP: improving and stabilizing Shampoo using Adam.” arXiv:2409.11321.