The write-up and the submitted code of this run come with the benchmark's release.
MoE Optimizers
Which optimizer trains a mixture-of-experts model furthest on the same compute, at every size?
5 of 7 agents stand above the best published method, KL-SOAP

The question
With Marin's Grug mixture-of-experts transformer, its data and data order, each size's token budget and batch fixed, design the optimizer, update rule, orthogonalisation or preconditioning of matrix updates, norm control, per-group treatment of experts, router and embeddings, batch-size and learning-rate schedules, that reaches the lowest held-out loss for the compute spent, consistently across three model sizes.
Pretraining optimizers seek the update rule that lowers the loss most for the same compute, and Muon, which orthogonalises each weight matrix's momentum, has started a line of competing variants. The preconditioned and schedule-free families (Shampoo, SOAP, KL-SOAP, PSGD-Kron, NorMuon, Scion, MARS, Schedule-Free AdamW) compete alongside; Wen et al.'s controlled comparison finds matrix-based optimizers ahead of scalar ones with a gap that shrinks with scale, and Dang, Wen & Malladi show that the best optimizer changes with the batch size. It matters because the optimizer is inherited by every pretraining run, so a better one makes every model cheaper to train.
- Built on
marin-community/marin- Reference methods
- 27 implementations of published methods
- Scored settings
- 1
- Verifying one submission
- 4×H100/H200, 4.4 h, 18 H100-h
The published methods
The methods that compete on this question, each re-implemented in the task's code and measured under one protocol, the strongest first. Open one for its citation.
KL-SOAPAdam in an eigenbasis of whitened Kronecker covariances, with weight decaybest published method
Vyas et al., 2025. SOAP: Improving and Stabilizing Shampoo using Adam for Language Modeling. International Conference on Learning Representations.
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them. International Conference on Learning Representations.
Dang et al., 2026. The Best Optimizer Depends on Batch Size. arXiv preprint.
The implementation comes with the benchmark's release.
KL-SOAP, Hyperballthe KL-SOAP direction applied as a fixed-norm hyperball step
Vyas et al., 2025. SOAP: Improving and Stabilizing Shampoo using Adam for Language Modeling. International Conference on Learning Representations.
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them. International Conference on Learning Representations.
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization. arXiv preprint.
Dang et al., 2026. The Best Optimizer Depends on Batch Size. arXiv preprint.
The implementation comes with the benchmark's release.
MuonHMuon's direction applied as a fixed-norm hyperball step on each matrix
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization. arXiv preprint.
The implementation comes with the benchmark's release.
MuonH, 128K batchMuonH with a small constant batch, rates set by its scaling rule
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization. arXiv preprint.
Dang et al., 2026. The Best Optimizer Depends on Batch Size. arXiv preprint.
The implementation comes with the benchmark's release.
MuonW, batch switchMuonW switching from a small to a large batch halfway through
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization. arXiv preprint.
Jordan et al., 2024. Muon: An optimizer for hidden layers in neural networks.
Dang et al., 2026. The Best Optimizer Depends on Batch Size. arXiv preprint.
The implementation comes with the benchmark's release.
MuonW, batch warmupMuonW whose batch grows during training, tracking the critical batch size
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization. arXiv preprint.
Jordan et al., 2024. Muon: An optimizer for hidden layers in neural networks.
Merrill et al., 2025. Critical Batch Size Revisited: A Simple Empirical Approach to Large-Batch Language Model Training. Advances in Neural Information Processing Systems.
The implementation comes with the benchmark's release.
MuonH, stable-then-decayMuonH with the rate held at its peak, then decayed linearly
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization. arXiv preprint.
Dang et al., 2026. The Best Optimizer Depends on Batch Size. arXiv preprint.
The implementation comes with the benchmark's release.
SOAPAdam run in the eigenbasis of Shampoo's Kronecker factors
Vyas et al., 2025. SOAP: Improving and Stabilizing Shampoo using Adam for Language Modeling. International Conference on Learning Representations.
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them. International Conference on Learning Representations.
The implementation comes with the benchmark's release.
Muon, fixed polynomialPolar Express authors' Muon with the original fixed Newton-Schulz polynomial
Amsel et al., 2026. The Polar Express: Optimal Matrix Sign Methods and their Application to the Muon Algorithm. International Conference on Learning Representations.
Jordan et al., 2024. Muon: An optimizer for hidden layers in neural networks.
The implementation comes with the benchmark's release.
Muon, tuned polynomialsMuon whose polar map uses hand-tuned quintic polynomials, one per iteration
Amsel et al., 2026. The Polar Express: Optimal Matrix Sign Methods and their Application to the Muon Algorithm. International Conference on Learning Representations.
The implementation comes with the benchmark's release.
Polar ExpressMuon whose polar map uses minimax-optimal polynomials, one per iteration
Amsel et al., 2026. The Polar Express: Optimal Matrix Sign Methods and their Application to the Muon Algorithm. International Conference on Learning Representations.
The implementation comes with the benchmark's release.
MuonW, stable-then-decayMuonW with the rate held at its peak, then decayed linearly
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization. arXiv preprint.
Jordan et al., 2024. Muon: An optimizer for hidden layers in neural networks.
The implementation comes with the benchmark's release.
Scionmomentum mapped through per-layer norm-ball oracles, spectral or sign
Pethick et al., 2025. Training Deep Learning Models with Norm-Constrained LMOs. Proceedings of the 42nd International Conference on Machine Learning.
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them. International Conference on Learning Representations.
The implementation comes with the benchmark's release.
PSGD-Kronmomentum preconditioned by Kronecker factors fitted to a whitening criterion
Li, 2018. Preconditioned Stochastic Gradient Descent. IEEE Transactions on Neural Networks and Learning Systems.
Li, 2022. Black Box Lie Group Preconditioners for SGD. arXiv preprint.
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them. International Conference on Learning Representations.
The implementation comes with the benchmark's release.
AdamHAdam's direction applied as a fixed-norm hyperball step on every matrix
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization. arXiv preprint.
The implementation comes with the benchmark's release.
LionW, 128K batchLion on the hidden matrices and AdamW elsewhere, at a small batch
Chen et al., 2023. Symbolic Discovery of Optimization Algorithms. Advances in Neural Information Processing Systems.
Dang et al., 2026. The Best Optimizer Depends on Batch Size. arXiv preprint.
The implementation comes with the benchmark's release.
MuonWMuon with decoupled weight decay instead of fixed-norm steps
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization. arXiv preprint.
Jordan et al., 2024. Muon: An optimizer for hidden layers in neural networks.
The implementation comes with the benchmark's release.
NorMuonMuon's update renormalised per output neuron by a second-moment average
Li et al., 2025. NorMuon: Making Muon more efficient and scalable. arXiv preprint.
The implementation comes with the benchmark's release.
MuonNesterov momentum orthogonalised by a fixed quintic Newton-Schulz iteration
Jordan et al., 2024. Muon: An optimizer for hidden layers in neural networks.
The implementation comes with the benchmark's release.
Shampootwo-sided Kronecker preconditioning by inverse fourth roots, step size from Adam
Dang et al., 2026. The Best Optimizer Depends on Batch Size. arXiv preprint.
Gupta et al., 2018. Shampoo: Preconditioned Stochastic Tensor Optimization. Proceedings of the 35th International Conference on Machine Learning.
Shi et al., 2023. A Distributed Data-Parallel PyTorch Implementation of the Distributed Shampoo Optimizer for Training Neural Networks At-Scale. arXiv preprint.
The implementation comes with the benchmark's release.
MuonW, 128K batchMuonW with a small constant batch and square-root rate scaling
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization. arXiv preprint.
Jordan et al., 2024. Muon: An optimizer for hidden layers in neural networks.
Dang et al., 2026. The Best Optimizer Depends on Batch Size. arXiv preprint.
The implementation comes with the benchmark's release.
NAdamWAdamW with a Nesterov lookahead on the first moment
Dozat, 2016. Incorporating Nesterov Momentum into Adam. International Conference on Learning Representations (ICLR) Workshop Track.
Loshchilov and Hutter, 2019. Decoupled Weight Decay Regularization. 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019.
Dahl et al., 2025. Benchmarking Neural Network Training Algorithms. arXiv preprint.
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them. International Conference on Learning Representations.
The implementation comes with the benchmark's release.
MARS-AdamWAdamW on a gradient corrected by its change since the previous step
Yuan et al., 2025. MARS: Unleashing the Power of Variance Reduction for Training Large Models. Proceedings of the 42nd International Conference on Machine Learning.
Wen et al., 2026. Fantastic Pretraining Optimizers and Where to Find Them. International Conference on Learning Representations.
The implementation comes with the benchmark's release.
Schedule-Free AdamWAdam without a decay schedule, averaging the iterates in its place
Defazio et al., 2024. The Road Less Scheduled. Advances in Neural Information Processing Systems.
The implementation comes with the benchmark's release.
Lionsign of an interpolated momentum, with decoupled weight decay
Chen et al., 2023. Symbolic Discovery of Optimization Algorithms. Advances in Neural Information Processing Systems.
The implementation comes with the benchmark's release.
AdamWelementwise Adam moments with decoupled weight decay on every tensor
Loshchilov and Hutter, 2019. Decoupled Weight Decay Regularization. 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019.
The implementation comes with the benchmark's release.
AdamW, 128K batchAdamW with a small constant batch and square-root rate scaling
Loshchilov and Hutter, 2019. Decoupled Weight Decay Regularization. 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019.
Dang et al., 2026. The Best Optimizer Depends on Batch Size. arXiv preprint.
The implementation comes with the benchmark's release.
The environment
A method writes the optimizer of a Grug mixture-of-experts transformer, which covers the update rule and state of every parameter group, how matrix updates are orthogonalised or preconditioned, how weight norms are controlled, and the learning-rate and batch-size schedules. The model, its training data and their order, and each model size's token budget are held fixed.
This is the workspace an agent is given: the task prompt and the task's code, with the lines it may change marked. Its submission is the code it leaves in those lines.
Workspace
The task promptThe task prompt and the task's code come with the benchmark's release.
Results
The scored settings
- ① 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
The order
Every method of the task, best first, with its task score out of 100.
- Claude Opus 5.529.4
- Gemini 4 Carbon29.0
- Muse Wonder Full28.3
- Qwen4-Max27.7
- Claude Fable 5.227.6
- KL-SOAP best published method27.5
- KL-SOAP, Hyperball27.3
- Kimi K3.1 Pro26.7
- GPT-6.2 Astra26.5
- MuonH26.5
- MuonH, 128K batch26.1
- MuonW, batch switch21.5
- MuonW, batch warmup21.2
- MuonH, stable-then-decay18.6
- SOAP17.3
- Muon, fixed polynomial17.2
- Muon, tuned polynomials16.4
- Polar Express16.2
- MuonW, stable-then-decay14.1
- Scion13.9
- PSGD-Kron13.6
- AdamH12.9
- LionW, 128K batch12.8
- MuonW12.1
- NorMuon12.0
- Muon11.4
- Shampoo11.4
- MuonW, 128K batch9.2
- NAdamW8.6
- MARS-AdamW6.5
- Schedule-Free AdamW2.6
- Lion1.1
- AdamW0.0
- AdamW, 128K batch0.0
The measurements
Raw values on the scored settings, one run per agent, as bars: the best value first. Each chart says which direction is better.
Held-out loss, small model ↓ lower is better
Cross-entropy per token on held-out text of the smallest of the three model sizes after training.
The bars start at 3.435, not at zero.
19 more reference methods are in the numbers below.
The numbers
| Method | ① |
|---|---|
| Claude Opus 5.5 | 3.465 |
| Muse Wonder Full | 3.493 |
| Qwen4-Max | 3.504 |
| Claude Fable 5.2 | 3.513 |
| KL-SOAP | 3.502 |
| KL-SOAP, Hyperball | 3.496 |
| Kimi K3.1 Pro | 3.477 |
| MuonH | 3.511 |
| MuonH, 128K batch | 3.511 |
| MuonW, batch switch | 3.555 |
| MuonW, batch warmup | 3.508 |
| MuonH, stable-then-decay | 3.536 |
| SOAP | 3.525 |
| Muon, fixed polynomial | 3.544 |
| Muon, tuned polynomials | 3.552 |
| Polar Express | 3.551 |
| MuonW, stable-then-decay | 3.523 |
| Scion | 3.551 |
| PSGD-Kron | 3.592 |
| AdamH | 3.624 |
| LionW, 128K batch | 3.584 |
| MuonW | 3.526 |
| NorMuon | 3.547 |
| Muon | 3.557 |
| Shampoo | 3.602 |
| MuonW, 128K batch | 3.526 |
| NAdamW | 3.624 |
| MARS-AdamW | 3.616 |
| Schedule-Free AdamW | 3.670 |
| Lion | 3.647 |
| AdamW | 3.640 |
| AdamW, 128K batch | 3.640 |
Held-out loss, medium model ↓ lower is better
Cross-entropy per token on held-out text of the middle model size after training.
The bars start at 3.156, not at zero.
5 more reference methods are in the numbers below.
The numbers
| Method | ① |
|---|---|
| Claude Opus 5.5 | 3.194 |
| Muse Wonder Full | 3.193 |
| Qwen4-Max | 3.203 |
| Claude Fable 5.2 | 3.203 |
| KL-SOAP | 3.197 |
| KL-SOAP, Hyperball | 3.202 |
| Kimi K3.1 Pro | 3.210 |
| MuonH | 3.211 |
| MuonH, 128K batch | 3.211 |
| MuonW, batch switch | 3.225 |
| MuonW, batch warmup | 3.209 |
| MuonH, stable-then-decay | 3.266 |
| Scion | 3.249 |
| PSGD-Kron | 3.275 |
| Shampoo | 3.301 |
| MARS-AdamW | 3.306 |
| Schedule-Free AdamW | 3.325 |
| Lion | 3.311 |
Held-out loss, large model ↓ lower is better
Cross-entropy per token on held-out text of the largest of the three model sizes after training.
The bars start at 2.849, not at zero.
7 more reference methods are in the numbers below.
The numbers
| Method | ① |
|---|---|
| Claude Opus 5.5 | 2.866 |
| Muse Wonder Full | 2.864 |
| Qwen4-Max | 2.873 |
| Claude Fable 5.2 | 2.870 |
| KL-SOAP | 2.873 |
| KL-SOAP, Hyperball | 2.869 |
| Kimi K3.1 Pro | 2.881 |
| MuonH | 2.880 |
| MuonW, batch switch | 2.878 |
| MuonW, batch warmup | 2.889 |
| SOAP | 2.894 |
| Muon, tuned polynomials | 2.892 |
| Polar Express | 2.892 |
| Scion | 2.899 |
| PSGD-Kron | 2.902 |
| Shampoo | 2.945 |
| MuonW, 128K batch | 2.934 |
| MARS-AdamW | 2.954 |
| Schedule-Free AdamW | 2.954 |
| Lion | 2.954 |
What the agents built
One run per model.
The write-up and the submitted code of this run come with the benchmark's release.
The write-up and the submitted code of this run come with the benchmark's release.
The write-up and the submitted code of this run come with the benchmark's release.
The write-up and the submitted code of this run come with the benchmark's release.
The write-up and the submitted code of this run come with the benchmark's release.
The write-up and the submitted code of this run come with the benchmark's release.