# Muon formula grid (vukrosic)

- **ID:** 1396
- **Kind:** code
- **URL:** https://github.com/vukrosic/muon-formula-grid
- **Authors:** Vuk Rosić (@VukRosic99)
- **Venue:** GitHub repo + X post (Day 5 of a series)
- **Source:** x
- **Language:** en
- **Access:** free
- **Added:** 2026-10-18
- **Verified:** 2026-10-18
- **Page:** https://papers.projxon.ai/entries/1396

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

## 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

- [Phases of Muon: When Muon Eclipses SignSGD](https://papers.projxon.ai/entries/1511) (paper, #1511)
- [AMUSE: Anytime Muon with Stable Gradient Evaluation](https://papers.projxon.ai/entries/511) (paper, #511)
- [Spectral Scaling Laws of Muon](https://papers.projxon.ai/entries/491) (paper, #491)
- [Pretraining Data Scale Reverses the Muon-AdamW Fine-Tuning Gap](https://papers.projxon.ai/entries/1510) (paper, #1510)
- [Towards Compositional Steepest Descent](https://papers.projxon.ai/entries/623) (paper, #623)
- [Factorized Context Attention: From Emulated to Native Grid Probing](https://papers.projxon.ai/entries/1597) (paper, #1597)
