{
  "id": 1396,
  "kind": "code",
  "title": "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.",
  "body": "",
  "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)",
  "url": "https://github.com/vukrosic/muon-formula-grid",
  "links": [],
  "authors": [
    "Vuk Rosić (@VukRosic99)"
  ],
  "tags": [],
  "topics": "",
  "venue": "GitHub repo + X post (Day 5 of a series)",
  "publisher": "",
  "source": "x",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": null,
  "added_at": "2026-10-18T00:00:00.000Z",
  "verified_at": "2026-10-18T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "VukRosic99",
    "legacy_paper_id": "1703"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-11-01T12:54:34.863Z",
  "updated_at": "2026-11-01T12:54:34.863Z",
  "page": "https://papers.projxon.ai/entries/1396",
  "markdown": "https://papers.projxon.ai/entries/1396.md",
  "api": "https://papers.projxon.ai/api/entries/1396",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 1511,
      "kind": "paper",
      "title": "Phases of Muon: When Muon Eclipses SignSGD",
      "summary": "An exactly solvable theory of when Muon beats its Adam-like baseline - with a phase diagram, not a blanket verdict. Setup: stochastic Muon (orthogonalize an EMA of minibatch gradients via Newton-Schulz) vs stochastic SignSGD on a high-dimensional matrix-valued least-squares problem whose per-sample gradients are rank-one outer products, mimicking a linear layer under backprop; as dimension and batch grow the loss dynamics become deterministic and the derived theory tracks simulations. Two data knobs organize everything: the covariance spectrum decays as a power law with exponent alpha (large alpha = steep spectrum, effectively low-rank data), and the target's loss in direction i decays with exponent zeta (large zeta = easy target, little loss in the hard small-eigenvalue directions). PHASES: Muon is favored for steep spectra with rich/hard targets (alpha > 2 and zeta < alpha + 1); SignSGD is favored for flat spectra (alpha < 1) and for easy targets generally; in the middle region the winner flips with the accuracy demanded - SignSGD reaches mediocre solutions first, Muon wins late at low loss; elsewhere the winner depends on how target loss scales with dimension. MECHANISM: Muon performs only a SQUARE-ROOT preconditioning in the data spectrum, not a full inverse - small directions get boosted by roughly sqrt(N/B_eff), and that half-strength boost is exactly right when the target loads loss onto hard directions, but over-boosts them for easy targets, where SignSGD's no-preconditioning wins. BATCH: everything runs through the effective batch B_eff = B(1+beta)/(1-beta) - momentum multiplies the effective batch - because Muon can only whiten directions the batch actually spans (batch rank ~ B_eff); with exact whitening and small B_eff it fails to resolve small eigenmodes and slows down, a transition SignSGD does not have. Muon's optimal learning rates are larger than SignSGD's and are derived exactly in the isotropic case, with a sqrt(N) gap at beta = 0.9 unless the batch grows. A practically relevant bonus: finite Newton-Schulz (NS-5) acts as a RIDGE on small singular values, which can help - Muon's speedup over SignSGD peaks around 1.13x at small B_eff/N and 1.46x at large B_eff/N, and in the large-batch regime the inexact NS-5 iteration BEATS the exact polar decomposition. In the isotropic setting the two optimizers' convergence rates match up to a constant factor once each uses its own optimal LR. Scope: this is a least-squares surrogate with rank-one gradients - a theory of the optimization geometry, not an LM experiment; the SignSGD baseline stands in for Adam (no second-moment adaptivity), and the data spectrum of real gradient covariances is an empirical question the paper does not measure. Proofs are accompanied by a Lean 4 formalization (project page: mlexpos.github.io/phases-of-muon). In the catalog's Muon thread this is the theoretical member, complementary to ID 1809's empirical fine-tuning reversal: 1809 says the Muon-vs-AdamW ranking flips with pretraining data scale AFTER fine-tuning; this says the ranking during optimization itself is a function of data spectrum and target hardness - both argue 'Muon vs Adam' has no data-free answer, and this one names the data property that decides it.",
      "url": "https://arxiv.org/abs/2605.09552",
      "authors": [
        "Elliot Paquette",
        "Noah Marshall",
        "Lucas Benigni",
        "Guangyuan Wang",
        "Atish Agarwala",
        "Courtney Paquette"
      ],
      "tags": [],
      "venue": "arXiv preprint (NeurIPS 2026)",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-11-03T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1511",
      "markdown": "https://papers.projxon.ai/entries/1511.md",
      "api": "https://papers.projxon.ai/api/entries/1511"
    },
    {
      "id": 511,
      "kind": "paper",
      "title": "AMUSE: Anytime Muon with Stable Gradient Evaluation",
      "summary": "River-valley analysis: Muon orthogonalization enlarges bulk (river) steps but also amplifies dominant-direction noise and valley-wall oscillations. AMUSE interpolates gradient evaluation from the fast Muon sequence toward the averaged sequence via a time-varying coefficient, enabling anytime training without LR schedules. Improves the performance-iteration Pareto frontier over (Schedule-Free) AdamW and Muon on vision tasks and Llama-style FineWeb pretraining (124M/720M/1.3B). Code https://github.com/kjeiun/amuse.",
      "url": "https://arxiv.org/abs/2605.22432",
      "authors": [
        "Jueun Kim",
        "Baekrok Shin",
        "Jihun Yun",
        "Beomhan Baek",
        "Minhak Song",
        "Chulhee Yun"
      ],
      "tags": [
        "amuse",
        "muon",
        "schedule-free",
        "river-valley",
        "kaist",
        "krafton",
        "fineweb",
        "anytime-training"
      ],
      "venue": "arXiv / KAIST / KRAFTON / Seoul National University",
      "source": "",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T16:45:04.296Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 3,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/511",
      "markdown": "https://papers.projxon.ai/entries/511.md",
      "api": "https://papers.projxon.ai/api/entries/511"
    },
    {
      "id": 491,
      "kind": "paper",
      "title": "Spectral Scaling Laws of Muon",
      "summary": "Tracks Frobenius-normalized momentum singular-value quantiles across GPT-2-style models 77M–2.8B trained with Muon on FineWeb. After a short burn-in, quantiles stabilize by layer type and follow power laws in model size M with exponents from about M^{-0.25} (mid-depth) to M^{-0.96} (final MLP). Rank-p ablations show orthonormalizing the top ~50% of directions nearly matches full Muon, while top 10% is ~50% less token-efficient. Extrapolating to 300B, standard 5-step NanoGPT NS still covers mid-late Q, but final O falls into the failure regime and wants a 10-step DeepSeek-V4-style map. No official code repo on the abs page.",
      "url": "https://arxiv.org/abs/2606.04058",
      "authors": [
        "Gagik Magakyan",
        "Pablo Parrilo",
        "Asuman Ozdaglar"
      ],
      "tags": [
        "muon",
        "newton-schulz",
        "spectral-scaling",
        "orthonormalization",
        "mit",
        "fineweb"
      ],
      "venue": "arXiv / MIT",
      "source": "",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T16:45:04.296Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 3,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/491",
      "markdown": "https://papers.projxon.ai/entries/491.md",
      "api": "https://papers.projxon.ai/api/entries/491"
    },
    {
      "id": 1510,
      "kind": "paper",
      "title": "Pretraining Data Scale Reverses the Muon-AdamW Fine-Tuning Gap",
      "summary": "Muon's pretraining-loss advantage over AdamW does not survive fine-tuning at scale - and the crossover is predictable. Empirically: at small pretraining data budgets, Muon-pretrained models also fine-tune better, but beyond a sufficiently large pretraining token budget the ranking flips and AdamW-pretrained models fine-tune to better downstream performance, despite Muon's better pretraining loss. The crossover point is not fixed: as model size increases, AdamW overtakes Muon at progressively SMALLER pretraining token-to-parameter ratios, so larger models cross over earlier in their training-token budget. To explain the reversal the authors model fine-tuning as a perturbation of the model's outputs and introduce the margin-to-spread ratio: how far the correct logit lies above the wrong logits, normalized by how widely the wrong logits are spread. A model with a high ratio has its predictions robustly separated relative to the noise floor of its incorrect alternatives, which is what a fine-tuning perturbation has to overcome or preserve. Measured in language models, the ratio tracks the empirical reversal exactly - Muon's margin-to-spread is larger at small data budgets and AdamW's is larger at large ones. Theory backing: in a linear associative memory model they prove that after a single update, gradient descent's margin-to-spread ratio gains on Muon's as the data budget grows, and simulations show the trend persists after extended training - i.e., the reversal is a structural property of the optimizers' update geometry interacting with data scale, not a tuning artifact. Caveats: abstract-level research - the specific model scales, token budgets, downstream tasks, and crossover magnitudes are in the full text, not the abstract; the proof is for a linear associative-memory surrogate after one update, with the LM claim resting on the empirical correlation between the ratio and fine-tuning outcomes; code was not linked from the arXiv page at catalog time. Practical read for anyone running a pretrain-then-finetune pipeline with Muon (the catalog's Muon thread already covers its weight growth, looped-model LR scaling, and orthogonalization cost): optimizer selection by pretraining loss alone can pick the wrong optimizer for the artifact you actually ship, and the risk grows with model size and token budget. The margin-to-spread ratio is also a candidate pretraining-time observable - a geometry statistic of the base model that predicts post-fine-tuning behavior, in the same family as the logit-margin signals tracked elsewhere in the catalog.",
      "url": "https://arxiv.org/abs/2611.03633",
      "authors": [
        "Catherine Li",
        "Jingchu Gai",
        "Andrej Risteski",
        "Jacob Mitchell Springer",
        "Aditi Raghunathan"
      ],
      "tags": [],
      "venue": "arXiv preprint",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-11-03T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1510",
      "markdown": "https://papers.projxon.ai/entries/1510.md",
      "api": "https://papers.projxon.ai/api/entries/1510"
    },
    {
      "id": 623,
      "kind": "paper",
      "title": "Towards Compositional Steepest Descent",
      "summary": "Compositional Muon (CM) treats W_Q W_K^T and W_O W_V as the objects of spectral steepest descent, deriving partner-whitened half-split (QK) and hybrid (OV) updates plus an isotropic approximation and a Frobenius gauge correction for momentum. Consistent pretraining gains vs Muon at 340M and 1B; nanoGPT Track 3 PR #311 clears the loss target ~15 steps earlier (2875 vs 2890). Downstream 340M evals mixed. Same lab as Aurora (papers_local 633).",
      "url": "https://blog.tilderesearch.com/blog/compositional-muon",
      "authors": [
        "Ben Keigwin",
        "Li Yang",
        "Yunzhe Zhang",
        "Dhruv Pai",
        "Alec DeWulf"
      ],
      "tags": [
        "compositional-muon",
        "muon",
        "optimizer",
        "qk",
        "ov",
        "nanogpt",
        "tilde",
        "blog"
      ],
      "venue": "Tilde Research",
      "source": "web",
      "license": "Apache-2.0",
      "published_year": null,
      "added_at": "2026-08-14T19:06:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/623",
      "markdown": "https://papers.projxon.ai/entries/623.md",
      "api": "https://papers.projxon.ai/api/entries/623"
    },
    {
      "id": 1597,
      "kind": "paper",
      "title": "Factorized Context Attention: From Emulated to Native Grid Probing",
      "summary": "Eltahir et al., 'Factorized Context Attention: From Emulated to Native Grid Probing' (arXiv 2611.32423, Nov 24 2026; license and code status NOT confirmed from the arXiv record at cataloging). Grid probing, a recent training-free method, recovers the accuracy a single forward pass loses on long inputs and extends reach past the context window by asking a frozen model the same question about short local and strided spans of the input - but every probe re-encodes its span, repeating the whole computation. The paper's insight: grid probing is emulated attention, an attention pattern reproduced from outside the model through prompts, since each probe only restricts which part of the input the question can see. Factorized Context Attention (FCA) runs the same pattern natively, as the model's own attention: a training-free block-sparse attention that encodes the input once into a KV cache, reads all spans as masked sequences in one batched forward, and uses a stair position schedule to keep every span inside the trained position range. Across long video understanding, long-context text inference and image grounding, FCA matches grid probing's accuracy and reach at a fraction of its cost: about +10 points over the single pass on long video and +9 to +14 points on long novels, needles found in videos of over a thousand frames and in texts four times the window length, and a later question about the same input answered in as little as a tenth of grid probing's time - all with existing frozen language and vision-language models. Flags, as entered: abstract-level at cataloging, authors' own numbers; the grid-probing baseline is itself recent, so the comparison chain is young. For the user: inference-time and training-free, so it touches the agent app's long-context reading rather than the pretraining stack; the durable idea is the emulated-to-native move - a prompt-level probing pattern recognized as an attention pattern and then implemented as one. Cross-references: Latent Sparse Attention (ID 1801) and the long-context/compaction entry (ID 1812).",
      "url": "https://arxiv.org/abs/2611.32423",
      "authors": [
        "Mohamed Eltahir",
        "Manar Eyad",
        "Yara Alzahrani",
        "Fatimah Albesher",
        "Duaa M. Tahir",
        "Tanveer Hussain",
        "Naeemullah Khan"
      ],
      "tags": [],
      "venue": "arXiv 2611.32423, Nov 24 2026",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-11-25T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1597",
      "markdown": "https://papers.projxon.ai/entries/1597.md",
      "api": "https://papers.projxon.ai/api/entries/1597"
    }
  ]
}
