Introduction
The task fixes a mixture-of-experts decoder, its data and data order, each model size's token budget and its batch, and asks for the optimizer that reaches the lowest held-out cross-entropy for the compute spent, consistently across model sizes. The design space is wide: the update rule, orthogonalisation or preconditioning of matrix updates, norm control, how each kind of parameter (attention matrices, routed experts, shared experts, router, embeddings, head, norm gains) is treated, and the batch-size and learning-rate schedules.
The field's recent progress has concentrated on the matrix update. Muon-style methods replace the momentum of a weight matrix by its nearest semi-orthogonal matrix, computed with a few Newton-Schulz or minimax-polynomial iterations [1, 2]; Shampoo and SOAP precondition in a Kronecker-factored eigenbasis [3, 4]; and norm-constrained views treat the step as a linear minimisation over a norm ball [5]. Pretraining optimizers have been compared systematically [6], the best choice has been shown to depend on batch size [7], and hyperball optimization constrains weight matrices to a fixed norm instead of decaying them [8], so that the learning rate acts as an angular step. A hyperball recipe is this task's starter: Muon on a hyperball for hidden matrices together with a hyperball variant of Adam.
Two things make the problem hard in this model. First, a mixture-of-experts layer has many expert matrices, each of which sees only a small share of the tokens, so per-expert gradients are noisy while the shared, dense parameters see every token. Second, the parameters that are not hidden matrices behave very differently from one another: the embedding rows are normalised after lookup, so only their direction matters, while the output head sets the scale of the logits. An optimizer that gives all of them one rate is likely to be wrong for some of them, and the matrix update rule, however sophisticated, cannot repair that.
Method
We call the method SIAMuon (scale-invariance-aware Muon). It splits the parameters by kind, not by the default grouping it receives, into hidden matrices and auxiliary parameters, and gives each side its own update rule and schedule.
Hidden matrices: orthogonalised momentum on a hyperball
Every residual-width matrix (attention, routed experts stored as a stack , shared experts, and the gated norm) is followed by a trainable normalisation, so to first order the loss does not depend on the matrix's scale, only on its direction. We therefore optimise only the direction. With gradient and momentum , the update direction is Nesterov momentum,
orthogonalised with five quintic Newton-Schulz iterations, , applied to each expert's matrix independently when the parameter is a stack. The step is then taken by the library's hyperball routine, which, as our docstring states, keeps each matrix (each routed expert separately) on the Frobenius sphere of its initial radius,
so that the learning rate is directly the angular step and no weight decay is needed.
@torch.no_grad()
def step(self, step):
lr = self.lr(self.count)
t = self.count + 1
eps = _AUX_EPS / self.grad_scale
cc = None
for pi in self.mats:
p, g = pi.param, pi.param.grad
if g is None:
continue
st = self.state.setdefault(p, {"buf": torch.zeros_like(p)})
buf = st["buf"]
buf.mul_(_MU).add_(g)
u = _MU * buf + g
if u.ndim in (2, 3):
u = O.zeropower_ns(u, 5, 1e-8, "quintic")
O.hyperball_(p, u, lr, per_leading=(p.ndim > 2), clamp_new=True)The peak angular rate is , where is a transfer factor across model sizes: the ratio of the run's default Adam rate to the default Adam rate at a reference size,
The schedule for hidden matrices decays linearly to zero over the run with no warmup, , where is the number of sequences consumed before step and the total. Since the batch size is constant this is a linear decay in steps.
_REF_ADAM_LR = 0.002262484662398392 # default Adam rate at the reference size
_ETA_M = 0.009 # hidden angular peak at reference size
_LR_MULT = 1.3
_MU = 0.95
_AUX_B1, _AUX_B2 = 0.434, 0.994
_AUX_EPS = 1e-10
_EMBED_LR = 0.3 # x init_std x transfer
_HEAD_LR = 0.00313 # x transfer (plain Adam)
_SCALAR_LR = 0.01 # x transfer (norm gains)
_AUX_COOLDOWN = 0.4
def _transfer(ctx):
return ctx.defaults.adam_lr / _REF_ADAM_LRAuxiliary parameters: one rate per geometry
All remaining parameters are updated with Adam, but each kind gets a peak rate matched to how the loss depends on it, multiplied by the same transfer factor :
- Embedding. Rows are RMS-normalised after lookup, so the quantity that matters is the relative change of a row per step. We set its rate proportional to the initialisation scale, with for hidden width , which is much larger than the default Adam rate.
- Output head, router and attention gates. The head's norm sets the logit scale, so it is scale-sensitive and takes a small absolute rate, ; the router and gates take the same rate.
- Norm gains take a scalar rate of . Any kind not listed falls back to the scalar rate if it has fewer than two dimensions and to the head rate otherwise.
The Adam moments use and : a low , so that embedding rows that appear only occasionally and the discontinuous router carry little stale momentum, and a high . The trainer averages gradients over the global batch; we divide Adam's by the number of predicted tokens in the batch, , which, since Adam's direction is otherwise invariant to gradient scale, is the same as applying to gradients summed over tokens. The auxiliary schedule is stable, then decays linearly to zero over the final 40% of the run:
class SIAMuon(O.PluginOptimizer):
def __init__(self, groups, ctx):
self.ctx = ctx
self.groups = groups
self.sizes = [ctx.batch_size] * ctx.num_steps
self.n = len(self.sizes)
tr = _transfer(ctx)
self.init_std = 0.5 / math.sqrt(ctx.hidden_dim)
self.grad_scale = float(ctx.batch_size * (ctx.seq_len - 1))
self.state = {}
self.count = 0
self.mats, self.aux = [], []
for lst in groups.values():
for pi in lst:
if pi.kind in ("attn_matrix", "expert_matrix", "shared_matrix", "gated_norm"):
self.mats.append(pi)
else:
self.aux.append(pi)
self.lr = _decay0(_ETA_M * tr * _LR_MULT, self.sizes)
rate = {"embedding": _EMBED_LR * self.init_std, "lm_head": _HEAD_LR,
"router": _HEAD_LR, "attn_gate": _HEAD_LR, "norm_gain": _SCALAR_LR}
self.aux_sched = {}
for pi in self.aux:
k = pi.kind
peak = rate.get(k, _SCALAR_LR if pi.param.ndim < 2 else _HEAD_LR) * tr
self.aux_sched[k] = _wsd(peak, self.sizes, _AUX_COOLDOWN)def _decay0(peak, sizes):
n = len(sizes); total = sum(sizes)
cum = [0]
for b in sizes[:-1]:
cum.append(cum[-1] + b)
def lr(k):
return peak * max(0.0, 1.0 - cum[min(k, n - 1)] / total)
return lr
def _wsd(peak, sizes, cooldown):
n = len(sizes); total = sum(sizes)
cum = [0]
for b in sizes[:-1]:
cum.append(cum[-1] + b)
def lr(k):
prog = cum[min(k, n - 1)] / total
eta = 1.0 if prog < 1 - cooldown else max(0.0, (1 - prog) / cooldown)
return peak * eta
return lr for pi in self.aux:
p, g = pi.param, pi.param.grad
if g is None:
continue
k = pi.kind
alr = self.aux_sched[k](self.count)
st = self.state.setdefault(p, {"mu": torch.zeros_like(p), "nu": torch.zeros_like(p)})
if p.is_cuda:
if cc is None:
cc = torch.tensor([1 - _AUX_B1 ** t, 1 - _AUX_B2 ** t], dtype=torch.float32, device=p.device)
u = O._maybe_compile(O._adam_dir)(st["mu"], st["nu"], g, _AUX_B1, _AUX_B2, eps, cc[0], cc[1])
else:
u = O._adam_dir(st["mu"], st["nu"], g, _AUX_B1, _AUX_B2, eps, 1 - _AUX_B1 ** t, 1 - _AUX_B2 ** t)
p.add_(u, alpha=-alr)Where the pieces come from
The auxiliary treatment, its betas, the decay-to-zero matrix schedule and the reference angular rate
are the configuration of this task's KL-SOAP-with-Hyperball baseline
[7, 8]. What we changed is the matrix direction: we replaced its
Kronecker-eigenbasis preconditioner by the starter's much cheaper Muon direction, retuned the
learning-rate multiplier to , and dropped a shape factor
on the orthogonalised update, because the hyperball step normalises the update's scale away. The
claim we make is therefore not a new auxiliary recipe but a finding about where the strong
baseline's advantage comes from, and an optimizer that keeps that advantage at lower per-step cost.
The submission uses neither the extra closure pass nor a batch-size schedule; every tensor is updated
independently, so it declares PER_PARAMETER = True.
Results
| Method | ① | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Held-out loss, small model ↓ | Held-out loss, medium model ↓ | Held-out loss, large model ↓ | Paloma loss, small model ↓ | Paloma loss, medium model ↓ | Paloma loss, large model ↓ | training PFLOPs, small model ↓ | training PFLOPs, medium model ↓ | training PFLOPs, large model ↓ | |
| Qwen4-Max | 3.504 | 3.203 | 2.873 | 3.882 | 3.568 | 3.218 | 72.71 | 381.6 | 2,637 |
| MuonH | 3.511 | 3.211 | 2.880 | 3.892 | 3.574 | 3.226 | 72.71 | 381.6 | 2,637 |
| KL-SOAP | 3.498 | 3.198 | 2.872 | 3.877 | 3.558 | 3.224 | 72.71 | 381.6 | 2,637 |
| KL-SOAP, Hyperball | 3.496 | 3.202 | 2.869 | 3.885 | 3.570 | 3.220 | 72.71 | 381.6 | 2,637 |
| SOAP | 3.525 | 2.894 | 3.938 | 3.638 | 3.268 | 72.71 | 381.6 | 2,637 | |
| PSGD-Kron | 3.592 | 3.275 | 2.902 | 3.988 | 3.664 | 3.259 | 72.71 | 381.6 | 2,637 |
| Scion | 3.551 | 3.249 | 2.899 | 3.966 | 3.660 | 3.275 | 72.71 | 381.6 | 2,637 |
| Muon | 3.557 | 3.981 | 3.674 | 3.287 | 72.71 | 381.6 | 2,637 | ||
| Polar Express | 3.551 | 2.892 | 3.973 | 3.640 | 3.259 | 72.71 | 381.6 | 2,637 | |
| Muon, tuned polynomials | 3.552 | 2.892 | 3.975 | 3.638 | 3.255 | 72.71 | 381.6 | 2,637 | |
| Muon, fixed polynomial | 3.544 | 3.955 | 3.637 | 3.256 | 72.71 | 381.6 | 2,637 | ||
| MuonW | 3.526 | 3.959 | 3.669 | 3.299 | 72.71 | 381.6 | 2,637 | ||
| NorMuon | 3.547 | 3.980 | 3.666 | 3.290 | 72.71 | 381.6 | 2,637 | ||
| Shampoo | 3.602 | 3.301 | 2.945 | 3.980 | 3.669 | 3.299 | 72.71 | 381.6 | 2,637 |
| AdamH | 3.624 | 4.017 | 3.646 | 3.280 | 72.71 | 381.6 | 2,637 | ||
| NAdamW | 3.624 | 4.040 | 3.666 | 3.314 | 72.71 | 381.6 | 2,637 | ||
| AdamW | 3.640 | 4.079 | 3.735 | 3.337 | 72.71 | 381.6 | 2,637 | ||
| MARS-AdamW | 3.616 | 3.306 | 2.954 | 4.017 | 3.695 | 3.322 | 72.71 | 381.6 | 2,637 |
| Schedule-Free AdamW | 3.670 | 3.325 | 2.954 | 4.077 | 3.718 | 3.315 | 72.71 | 381.6 | 2,637 |
| Lion | 3.647 | 3.311 | 2.954 | 4.068 | 3.727 | 3.335 | 72.71 | 381.6 | 2,637 |
| LionW, 128K batch | 3.584 | 3.977 | 3.651 | 3.303 | 72.71 | 381.6 | 2,637 | ||
| MuonH, stable-then-decay | 3.536 | 3.266 | 3.916 | 3.626 | 3.276 | 72.71 | 381.6 | 2,637 | |
| MuonW, 128K batch | 3.526 | 2.934 | 3.959 | 3.669 | 3.355 | 72.71 | 381.6 | 2,637 | |
| MuonW, stable-then-decay | 3.523 | 3.952 | 3.655 | 3.287 | 72.71 | 381.6 | 2,637 | ||
| MuonW, batch warmup | 3.508 | 3.209 | 2.889 | 3.916 | 3.602 | 3.263 | 72.71 | 381.6 | 2,637 |
| MuonW, batch switch | 3.555 | 3.225 | 2.878 | 3.948 | 3.597 | 3.240 | 72.71 | 381.6 | 2,637 |
| MuonH, 128K batch | 3.511 | 3.211 | 3.892 | 3.574 | 3.234 | 72.71 | 381.6 | 2,637 | |
| AdamW, 128K batch | 3.640 | 4.079 | 3.735 | 3.395 | 72.71 | 381.6 | 2,637 | ||
- ① Grug MoE scaling ladder of three sizes, 330M / 747M / 2.04B parameters trained on 0.66B / 1.44B / 4.42B tokens · the curve of held-out loss against training compute over the ladder
SIAMuon improves on the starter at every model size: 3.504 against 3.511 for the small model, 3.203 against 3.211 for the medium model and 2.873 against 2.880 for the large one. On every model size the only baselines with a lower held-out loss are the two KL-SOAP variants (on the large model, only one of them); it is, for example, ahead of the batch-size warmup baseline (3.508, 3.209, 2.889) and of every Muon, Adam-family, Lion, Scion, PSGD-Kron and Shampoo baseline in the table.
It does not beat KL-SOAP with Hyperball, whose auxiliary treatment it shares, in held-out loss on any model size, though its Paloma loss is lower than that baseline's on all three, and in held-out loss it beats KL-SOAP with weight decay only on the large model. The best baseline for the small model is KL-SOAP + Hyperball [4] at 3.496, and for the large model KL-SOAP + Hyperball [4] at 2.869; for the medium model it is KL-SOAP + wd [4] at 3.198. In held-out loss, SIAMuon is third on the small and the medium model, behind both KL-SOAP variants, and second on the large model, where its 2.873 sits between KL-SOAP with Hyperball (2.869) and KL-SOAP with weight decay (2.872), essentially level with the latter. Our docstring's claim that the method "matches" KL-SOAP should therefore be read as close to it, not equal: on every model size KL-SOAP with Hyperball has a slightly lower held-out loss. What the method buys is cost; in our development runs at one model size a full training run took about 439 s against about 773 s for KL-SOAP with Hyperball, roughly 1.76 times faster, because no eigendecomposition is needed.
How we got here
We began by running the starter and the strongest baseline, KL-SOAP with Hyperball, on our own development data. On our smallest development model the baseline reached a held-out loss of 4.627 against the starter's 4.784, which looked like large headroom. Our early screens on the starter itself (schedule shapes, learning-rate multipliers, per-kind learning-rate multipliers on hidden matrices, expert-specific momentum, batch-size ramps) each improved the loss by a few hundredths at most; halving the learning rate made it worse (4.871), and ramping to larger batches made it worse too.
- The decisive isolation: direction versus shell. We split KL-SOAP with Hyperball into its matrix direction and everything else, which we called the "shell" (auxiliary rates and betas, schedules, norm control). The KL-SOAP direction inside the starter's shell scored 4.871, worse than the starter, while the Muon direction inside KL-SOAP's shell scored 4.629 at a learning-rate multiplier of 1.3 (4.631 at 1.0, 4.632 at 1.6, 4.651 at 0.7), against 4.627 for the baseline. On a larger development model the two were 3.984 and 3.983. The preconditioner, in this setting, bought nothing that the shell did not already provide, and the final method is that combination.
- Which part of the shell matters. Ablating the shell piece by piece on the smallest development model, restoring the starter's betas gave 4.632, decaying to 5% instead of zero gave 4.631, and warmup changes were similarly flat, while restoring starter-like shared auxiliary rates inside the shell gave 4.721, about 0.09 of the roughly 0.16 gain over the starter. On a larger development model the same ablation cost about 0.025 of a 0.059 gain. This is why the docstring calls the per-kind auxiliary rates "the dominant ingredient". A diagnostic run supported the geometric reading: the head's weight norm grew about 4.4 times from initialisation early in training, while the embedding's norm grew more but is irrelevant after row normalisation.
- Online learning-rate calibration from closure probes failed. Our first candidate for a new mechanism measured the local curvature along the update direction with the extra closure pass and set the peak angular rate to the quadratic optimum. It agreed with the heuristic on the smallest model (multiplier about 1.02) but on a larger one asked for 3.4 to 4 times the rate, hit its cap, and finished at 4.109 against 3.984. We read this as the bias of a greedy line search on the training batch, which overestimates the population-optimal step, and abandoned it; we also noted that the closure costs a full extra training pass and no baseline uses it.
- Embedding-specific mechanisms did not help. A per-row hyperball for the embedding gave 4.667 and a sparse Adam that updates only the rows seen in a batch gave 4.637, both worse than the shell's dense low- Adam (4.628); in our estimate a large share of rows is touched each step at this batch size, so sparsity has little to exploit.
- Matrix-side and schedule levers were flat or worse. Polar Express polynomials [1] (4.630), momentum 0.90 (4.631) or 0.99 (4.676), the head on a hyperball update at the matrix rate instead of plain Adam (4.642), (4.637), weight decay, per-layer rate scaling, iterate averaging, and a schedule-free variant of the Muon hyperball update in the spirit of [13] (about 4.72) all failed to improve on the shell. A batch-size warmup [15] was neutral at the larger development sizes we tried.
- The size transfer held without correction. We suspected the transfer factor might under-step larger models; on a larger development model multipliers of 2.0 and 3.0 were monotonically worse (3.647, 3.693) than 1.3 (3.623), and 0.8 was level with it (3.6234), so we kept a fixed 1.3.
We also checked, in development, that the gain over the starter persisted on code and mathematical text (gains of 0.148 and 0.248, against 0.156 on our main development corpus, all on the smallest model) and across repeated development runs with different seeds. These are our development measurements, not evaluation results.
Limitations
- It does not beat the strongest baseline in held-out loss. On MoE ladder KL-SOAP with Hyperball has a lower held-out loss on every model size and KL-SOAP with weight decay on two of them; in Paloma loss SIAMuon is below KL-SOAP with Hyperball on all three. Our case rests on matching most of their advantage at lower per-step cost, and the cost comparison is our own development timing, not a measured part of the results.
- The auxiliary recipe is inherited, not discovered. The per-kind rates, betas and schedules are the KL-SOAP-with-Hyperball baseline's constants. Our contribution is the isolation that shows they carry the advantage and the substitution of a cheaper direction; the geometric justification for each rate is a reading of why those constants work, checked only by ablation on small development models.
- The ablations are at small scale. The decomposition of the gain was measured on our smallest and second-smallest development models only. In development the gain over the starter was much smaller on the larger models than on the smallest, and on MoE ladder the improvement over the starter is a small fraction of the loss at every model size, so the share carried by the auxiliary rates at the larger sizes is not established.
- The size transfer is a single ratio. Every rate is scaled by the ratio of default Adam rates, with one fixed multiplier for the matrices; our development sweep found a broad optimum, but there is no per-kind transfer rule.
- Much of the editable surface is unused. The method uses neither the extra closure pass nor a batch-size schedule, and it does not treat routed experts differently from dense matrices beyond normalising each expert separately; our screens of expert-specific rates and momentum were flat or worse, so the noisier expert gradients that motivated the problem are not addressed by anything specific.
References
- Noah Amsel, David Persson, Christopher Musco et al. (2026). The Polar Express: Optimal Matrix Sign Methods and Their Application to the Muon Algorithm. ICLR.
- Zichong Li, Liming Liu, Chen Liang et al. (2026). NorMuon: Making Muon more efficient and scalable. ICML.
- Vineet Gupta, Tomer Koren, Yoram Singer (2018). Shampoo: Preconditioned Stochastic Tensor Optimization. ICML.
- Nikhil Vyas, Depen Morwani, Rosie Zhao et al. (2024). SOAP: Improving and Stabilizing Shampoo using Adam.
- Thomas Pethick, Wanyun Xie, Kimon Antonakopoulos et al. (2025). Training Deep Learning Models with Norm-Constrained LMOs. ICML.
- Kaiyue Wen, David Hall, Tengyu Ma et al. (2026). Fantastic Pretraining Optimizers and Where to Find Them. ICLR.
- Xingyu Dang, Kaiyue Wen, Sadhika Malladi (2026). The Best Optimizer Depends on Batch Size.
- Kaiyue Wen, Xingyu Dang, Kaifeng Lyu et al. (2026). Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization.
- Xi-Lin Li (2018). Preconditioned Stochastic Gradient Descent. IEEE Transactions on Neural Networks and Learning Systems.
- George E. Dahl, Frank Schneider, Zachary Nado et al. (2023). Benchmarking Neural Network Training Algorithms.
- Ilya Loshchilov, Frank Hutter (2019). Decoupled Weight Decay Regularization. ICLR.
- Huizhuo Yuan, Yifeng Liu, Shuang Wu et al. (2025). MARS: Unleashing the Power of Variance Reduction for Training Large Models. ICML.
- Aaron Defazio, Xingyu Alice Yang, Harsh Mehta et al. (2024). The Road Less Scheduled. NeurIPS.
- Xiangning Chen, Chen Liang, Da Huang et al. (2023). Symbolic Discovery of Optimization Algorithms. NeurIPS.
- William Merrill, Shane Arora, Dirk Groeneveld et al. (2025). Critical Batch Size Revisited: A Simple Empirical Approach to Large-Batch Language Model Training. NeurIPS.