← All entries
Code#1396

Muon formula grid (vukrosic)

Summary

Standard Muon orthogonalizes every gradient with a fixed 5 rounds of a degree-5 Newton-Schulz/Polar Express polynomial. This repo asks: for a given target, what is the cheapest formula? A grid over three settings — how weak the weakest singular direction is (0.0001–0.01 of the longest), closeness-to-equal tolerance (±0.02 to ±0.4), and matrix shape (square or wide 1:4 like most LLM layers) — searches 1,104 mixes of degree-3/5/9/13/17 rounds per cell (Polar Express fitting) and keeps the cheapest hitting the target. Examples: 9+9+9 matches-or-beats standard Muon at 33% fewer wide-matrix FLOPs; 13+13+13 matches Polar Express at 27% fewer; 13+13 on short-band-only settings at 51% fewer. Since Muon's orthogonalization is ~0.5–2% of training compute (4096-wide, 1–4M-token batches), a 25–50% cut on the step saves ~0.1–0.5% of a training run. Usage: pick settings in picker.html, copy coefficients from grid.json, or use formulas.py's `orthogonalize(G, coefs)` as a drop-in for the Newton-Schulz call. Caveats (author-stated): degree-9+ rounds need the small (rows×rows) part in float32 (all-bf16 overflows); cost is matmul work, not wall-clock — the float32 part shrinks the real saving; not timed on a GPU; whether directions outside the target band hurt training is untested.

Venue
GitHub repo + X post (Day 5 of a series)
Source
x
Access
free
Language
en
Added
Oct 18, 2026
Verified
Oct 18, 2026
Found via
#VukRosic99

Research notes

  • Discovery: Hudson shared Vuk Rosić's (@VukRosic99) "Day 5" post 2026-10-18 2:25 PM ET (~477 views; post https://x.com/VukRosic99/status/2111886424157176045); post claims verified against the README — the "~0.5%" headline matches the README's own upper-end math, and 9+9+9 = −33% matches the table; the "17+17+17 = 39%" figure isn't in the README's headline table (presumably a grid.json cell). Relevance: (1) his own LLM training — Muon is in queued #43's reusable recipe list (MAI-Base-2); this is a concrete, immediately-applicable micro-optimization: log singular values of a few hundred real Muon updates in his model, pick a tolerance, read grid.json, drop in the coefficients; (2) the coding-agent framing ("tell your coding agent to measure and pick") is an agentic-RL/automation angle for his agent app; (3) this is Muon's orthogonalization cost specifically — complements the catalog's optimizer line without overlapping it. Repo MIT, 1 commit, released today (2026-10-18). Cluster: optimizers (Muon), training efficiency, numerical precision (float32-vs-bf16 theme — cf. TF-OPD #59's precision gotcha).
  • License: MIT (verified on the repo page + README, 2026-10-18)

Similar entries