CoLM2026Conference on Language Modeling, San Francisco

MuonQ

Enhancing Low-Bit Muon Quantization via Directional Fidelity Optimization

MuonQ keeps the Muon optimizer's momentum in 4 bits without losing the direction of its updates.

1University of California, Santa Barbara

Method

Muon keeps only the directions of its momentum. MuonQ stores that momentum in 4 bits so the directions survive.

The problem

Rounding error that the polar step amplifies

Muon updates the weights with the polar factor of its momentum. It keeps every singular direction and gives each the same strength:

๐–t=๐–tโˆ’1โˆ’ฮทpolar(๐Œt)\mat{W}_t = \mat{W}_{t-1} - \eta \, \mathrm{polar}(\mat{M}_t)

Scale drops out of the polar factor, polar(ฮฑ๐Œ)=polar(๐Œ)\mathrm{polar}(\alpha\mat{M}) = \mathrm{polar}(\mat{M}), so the part of a 4-bit error that lies along ๐Œ\mat{M} is harmless. Only the part orthogonal to ๐Œ\mat{M} reaches the update, and its size, โ€–๐Œห†โ€–F1โˆ’CS2\|\hat{\mat{M}}\|_F \sqrt{1 - \mathrm{CS}^2}, is set by the cosine similarity of the copy:

CS(๐Œ,๐Œห†)=โŸจ๐Œ,๐Œห†โŸฉFโ€–๐Œโ€–Fโ‹…โ€–๐Œห†โ€–F\mathrm{CS}(\mat{M}, \hat{\mat{M}}) = \frac{\langle \mat{M},\, \hat{\mat{M}} \rangle_F}{\|\mat{M}\|_F \cdot \|\hat{\mat{M}}\|_F}

MuonQ therefore optimizes this directional fidelity instead of the relative error (RE), which also counts the harmless part. Every CS on this page compares a 4-bit result with full precision; 1 means the same direction.

A plain 4-bit copy of the momentum still has a CS of 0.994. But its weak directions are mostly rounding error, and the polar step lifts them to full strength.

    Directional fidelity (CS)0.994
    Relative error (RE)0.110
    • Momentum
    • 4-bit rounding error
    One real layer, layers.6.self_attn.k_proj: its 512 singular directions, strongest first, and the 4-bit rounding error, traced from Fig. 3 of the paper. Hover the plot to read single directions.
    0.994โ†’0.674CS to full precision, plain 4-bit: the momentum โ†’ its update after the polar step
    One MuonQ step

    Three changes, at the three points where error enters a step. The weight update stays Muon's.

    update๐–t=๐–tโˆ’1โˆ’ฮทpolar(๐Œยฏt)\mat{W}_t = \mat{W}_{t-1} - \eta \, \mathrm{polar}(\bar{\mat{M}}_t)from the normalized momentum, as in Muon

    next step๐Œห†t=๐”ห†๐’ห†+๐‘ห†\hat{\mat{M}}_t = \hat{\mat{U}}\,\hat{\mat{S}} + \hat{\mat{R}}dequantized from the 4-bit state

    NNormalize

    Give every step the same rounding error

    Problem. A 4-bit scale follows the largest value, so each step's error grows and shrinks with the gradient norm. Over many steps the errors add up in one direction.

    Fix. Scale the gradient and the momentum to unit norm before quantizing:

    ๐Œt=ฮฒ๐Œห†tโˆ’1+๐†tโ€–๐†tโ€–F,๐Œยฏt=๐Œtโ€–๐Œtโ€–F\mat{M}_t = \beta \hat{\mat{M}}_{t-1} + \frac{\mat{G}_t}{\|\mat{G}_t\|_F}, \quad \bar{\mat{M}}_{t} = \frac{\mat{M}_{t}}{\|\mat{M}_{t}\|_F}
    0.16โ†’0.90CS of the 4-bit momentum after 50 steps, without โ†’ with normalization

    Relative error (RE) lower is better

    Directional fidelity (CS) higher is better

    Step 50 of 50
    • Without normalization
    • With normalization (MuonQ)
    Error of the stored momentum against the full-precision trajectory, plain 4-bit storage, traced from Fig. 1 of the paper. On full-precision Muon the normalization leaves the loss unchanged (mean difference 0.003), so the gain is in how rounding error accumulates.
    DDecompose

    Give each strong direction its own scale

    Problem. With one scale for the whole matrix, the weak directions sink into rounding error, and the polar step gives them full weight.

    Fix. Split off the top-kk singular directions with one warm-started power step. ๐”\mat{U} gets a scale per column, ๐’\mat{S} per row; the small residual ๐‘\mat{R} shares one:

    ๐Œยฏt=๐”t๐’t+๐‘t,\bar{\mat{M}}_t = \mat{U}_t \, \mat{S}_t + \mat{R}_t, ๐”t=orth(๐Œยฏt๐•tโˆ’1โŠค),๐’t=๐”tโŠค๐Œยฏt\mat{U}_t = \mathrm{orth}(\bar{\mat{M}}_t \, \mat{V}_{t-1}^{\!\top}), \quad \mat{S}_t = \mat{U}_t^{\!\top}\,\bar{\mat{M}}_t
    0.674โ†’0.982CS of the update after the polar step, without โ†’ with decomposition

    k=minโก(m,n)/16k = \min(m, n)/16 for every layer: 9.4% more optimizer memory on GPT-2 Small. ๐•tโˆ’1\mat{V}_{t-1} is ๐’ห†tโˆ’1\hat{\mat{S}}_{t-1} with unit rows.

    The unit-norm momentum of one layer

    • Larger magnitude
    • One 4-bit scale
    Schematic on a 10 ร— 16 matrix with k=3k = 3. An error inside one direction's group mostly changes its strength, and the polar step resets every strength anyway.
    CCompand

    Spend the 15 levels where the values are

    Problem. Momentum values crowd around zero with a few large outliers. Evenly spaced levels stretch to cover the outliers and leave the dense center only a few codes.

    Fix. Compress with ฮผ-law before rounding and expand after, which packs the levels near zero:

    f(x)=sgn(x)lnโก(1+ฮผ|x|)lnโก(1+ฮผ),ฮผ=255f(x) = \mathrm{sgn}(x)\,\frac{\ln(1 + \mu\,|x|)}{\ln(1 + \mu)}, \quad \mu = 255
    0.879โ†’0.973CS of the 4-bit momentum on layers.0.self_attn.k_proj with one scale, even โ†’ ฮผ-law levels (Table 1)

    Per row 0.992 โ†’ 0.994, per column 0.969 โ†’ 0.988: ฮผ-law helps at every grouping.

    Values รท the largest one; one 4-bit scale for the matrix

    Rounded to zero67%
    Codes with โ‰ฅ 1%3
    RE0.49
    CS0.89
    A synthetic 512 ร— 512 momentum with heavy tails (Student-t, 6 degrees of freedom), scaled to unit norm as in MuonQ; its numbers land close to the real layer.
    Algorithm 1: one full MuonQ step

    Input: gradient ๐†t\mat{G}_t, learning rate ฮท\eta, momentum ฮฒ\beta, rank kk, weights ๐–tโˆ’1\mat{W}_{t-1}, and the 4-bit state (๐”ห†,๐’ห†,๐‘ห†)(\hat{\mat{U}}, \hat{\mat{S}}, \hat{\mat{R}}) written by the previous step.

    1read  ๐Œห†tโˆ’1โ†๐”ห†๐’ห†+๐‘ห†\hat{\mat{M}}_{t-1} \leftarrow \hat{\mat{U}}\,\hat{\mat{S}} + \hat{\mat{R}}dequantize; zero at t=1t = 1
    2๐Œtโ†ฮฒ๐Œห†tโˆ’1+๐†t/โ€–๐†tโ€–F\mat{M}_t \leftarrow \beta \, \hat{\mat{M}}_{t-1} + \mat{G}_t \,/\, \|\mat{G}_t\|_F
    3๐Œยฏtโ†๐Œt/โ€–๐Œtโ€–F\bar{\mat{M}}_t \leftarrow \mat{M}_t \,/\, \|\mat{M}_t\|_Funit-norm momentum
    4๐•โ†RowNorm(๐’ห†);๐”tโ†orth(๐Œยฏt๐•โŠค)\mat{V} \leftarrow \mathrm{RowNorm}(\hat{\mat{S}});\quad \mat{U}_t \leftarrow \mathrm{orth}(\bar{\mat{M}}_t \, \mat{V}^{\!\top})one warm-started power step
    5๐’tโ†๐”tโŠค๐Œยฏt;๐‘tโ†๐Œยฏtโˆ’๐”t๐’t\mat{S}_t \leftarrow \mat{U}_t^{\!\top}\,\bar{\mat{M}}_t;\quad \mat{R}_t \leftarrow \bar{\mat{M}}_t - \mat{U}_t \, \mat{S}_t
    6store  CQuant(๐”t)\mathrm{CQuant}(\mat{U}_t) per column, CQuant(๐’t)\mathrm{CQuant}(\mat{S}_t) per row, CQuant(๐‘t)\mathrm{CQuant}(\mat{R}_t) per tensor
    โ†’Update the weights, as in Muon
    7๐–tโ†๐–tโˆ’1โˆ’ฮทpolar(๐Œยฏt)\mat{W}_t \leftarrow \mat{W}_{t-1} - \eta \, \mathrm{polar}(\bar{\mat{M}}_t)

    Results

    GPT-2 Medium and Large and LLaMA-350M and 1.1B, pre-trained on FineWeb (5โ€“13.1B tokens) with the standard Muon recipe. Muon32 is full precision, Muon8 and Muon4 plain 8- and 4-bit storage, MuonQ4 is MuonQ.

    Memory and quality

    4-bit memory, close to 8-bit quality

    7.28ร—less optimizer-state memory than Muon32 on LLaMA-1.1B, 4.50 โ†’ 0.62 GB
    23.18โ†’12.67LLaMA-1.1B validation perplexity, plain 4-bit โ†’ MuonQ4; Muon8 reaches 12.42, Muon32 11.47
    90%of the perplexity gap between Muon4 and Muon32 closed on LLaMA-1.1B

    Perplexity against optimizer memory lower left is better

    LLaMA-1.1B from Table 3 of the paper (with GRASP, which keeps part of its state in 8 bits); the other models read from Fig. 6.
    Training

    Tracks full precision from the first steps

    MuonQ4 follows Muon32 and stays close to Muon8, which uses twice the bits. Plain Muon4 never closes its gap, and the gap grows with model size.

    Fig. 5 of the paper, in the paper's colors (Muon4 yellow, MuonQ4 red dashed). Click the plot to enlarge it.

    GPT-2 Medium training loss over 5B tokens: MuonQ4 tracks Muon32 and Muon8; Muon4 stays far above. LLaMA-350M training loss: MuonQ4 tracks Muon32 and Muon8; Muon4 stays above. LLaMA-1.1B training loss over 13B tokens: MuonQ4 tracks Muon32 and Muon8; Muon4 stays far above.
    Downstream

    About one point behind full precision

    โ‰ˆ 1ptaverage zero-shot accuracy behind Muon32 over seven tasks and four models

    MuonQ4 recovers 71โ€“88% of what plain 4-bit storage loses. Tasks: ARC-c, ARC-e, OBQA, BoolQ, HellaSwag, PIQA and WinoGrande.

    • Muon4
    • MuonQ4
    • Muon32
    Average zero-shot accuracy (Table 2). The right column is the share of the Muon4 โ†’ Muon32 gap that MuonQ4 closes.
    Ablation

    Each change earns its place

    69.9โ†’40.9GPT-2 Small perplexity, plain 4-bit โ†’ all three changes; Muon32 reaches 36.4

    Decomposition gives the largest single gain and costs 3.8 MB of extra state; normalization and companding cost nothing.

    • Plain 4-bit
    • Partial
    • MuonQ4
    • Perplexity removed
    • Muon32
    GPT-2 Small, 1B tokens (Table 4). The right column is the optimizer state.
    More results

    Against GRASP on LLaMA-1.1B

    GRASP keeps part of its state in 8 bits. Under identical settings, pure 4-bit MuonQ4 saves more memory (7.28ร— against 6.02ร—) at a perplexity 0.34 higher; both add about 10% to the step time (Table 3).

    MethodVal. PPL โ†“Opt. memoryReductionStep timeOverhead
    Muon3211.474.50 GB1.00ร—4408.5 msโ€”
    Muon812.421.13 GB4.00ร—4433.8 ms+0.58%
    Muon423.180.56 GB8.00ร—4482.3 ms+1.68%
    GRASP (8/4-bit)12.330.75 GB6.02ร—4833.4 ms+9.64%
    MuonQ4ours12.670.62 GB7.28ร—4881.2 ms+10.72%

    How many directions to split off

    MuonQ4 on GPT-2 Small with truncation rank kk as a fraction of minโก(m,n)\min(m, n). Perplexity falls quickly up to 1/16, then flattens while memory keeps rising, so 1/16 is the default.

    RankPPL โ†“Memory
    0 (no split)46.240.5 MB
    1/6442.1041.5 MB
    1/32โ‰ˆ 41.6โ‰ˆ 42.4 MB
    1/16default40.9344.3 MB
    1/8โ‰ˆ 40.3โ‰ˆ 48.1 MB
    1/439.8855.7 MB
    1/2โ‰ˆ 39.8โ‰ˆ 71.1 MB

    Tables 4 and 9 of the paper; rows marked โ‰ˆ are read off Fig. 7.

    Zero-shot accuracy, all seven tasks

    Code

    The repository has the optimizer, Hydra configs for the GPT-2 and LLaMA models in the paper, and the FineWeb preprocessing script.

    Set up and train
    git clone https://github.com/YupengSu/MuonQ && cd MuonQ
    pip install -r requirements.txt   # after installing PyTorch for your CUDA
    cp .env.example .env               # set DATA_DIR and HF_HOME
    
    # tokenize FineWeb with the LLaMA tokenizer
    python process_data.py --name fineweb100B --tokenizer llama2
    
    # GPUs, optimizer config, model recipe
    bash run.sh 0,1,2,3 muonq llama-60m
    Optimizer config hydra_conf/optimizer_params/muonq.yaml
    name: muonq
    args:
      lr: 0.001
      weight_decay: 0.1
      polar_method: Keller   # Newton-Schulz, 5 steps
      ns_steps: 5
      qbit: 4                # 4-bit state
      gran: tensor           # residual R: one scale
      compand: True          # C, ฮผ-law
      norm: True             # N, unit norm
      rank: 16               # D, k = min(m, n) / 16

    Citation

    BibTeX
    @inproceedings{su2026muonq,
      title     = {MuonQ: Enhancing Low-Bit Muon Quantization
                   via Directional Fidelity Optimization},
      author    = {Su, Yupeng and Zhang, Ruijie and Liu, Ziyue
                   and Zhao, Yequan and Zhang, Zheng},
      booktitle = {Conference on Language Modeling (CoLM)},
      year      = {2026},
      url       = {https://arxiv.org/abs/2605.11396}
    }

    Acknowledgements. This material is based upon work supported by the U.S. Department of Energy, Office of Science, Office of Advanced Scientific Computing Research, Artificial Intelligence for Science program, under contract DE-SC0025390. This research used resources of the National Energy Research Scientific Computing Center (NERSC), a DOE Office of Science User Facility, under Contract No. DE-AC02-05CH11231, using NERSC awards ASCR-ERCAP0030039 and ALCC-ERCAP0031379.