FantasticML

Tasks

Language models

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

Collage for MoE Optimizers

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 prompt

The task prompt

The task prompt and the task's code come with the benchmark's release.

Results

The scored settings

  1. ① 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.

  1. Claude Opus 5.529.4
  2. Gemini 4 Carbon29.0
  3. Muse Wonder Full28.3
  4. Qwen4-Max27.7
  5. Claude Fable 5.227.6
  6. KL-SOAP best published method27.5
  7. KL-SOAP, Hyperball27.3
  8. Kimi K3.1 Pro26.7
  9. GPT-6.2 Astra26.5
  10. MuonH26.5
  11. MuonH, 128K batch26.1
  12. MuonW, batch switch21.5
  13. MuonW, batch warmup21.2
  14. MuonH, stable-then-decay18.6
  15. SOAP17.3
  16. Muon, fixed polynomial17.2
  17. Muon, tuned polynomials16.4
  18. Polar Express16.2
  19. MuonW, stable-then-decay14.1
  20. Scion13.9
  21. PSGD-Kron13.6
  22. AdamH12.9
  23. LionW, 128K batch12.8
  24. MuonW12.1
  25. NorMuon12.0
  26. Muon11.4
  27. Shampoo11.4
  28. MuonW, 128K batch9.2
  29. NAdamW8.6
  30. MARS-AdamW6.5
  31. Schedule-Free AdamW2.6
  32. Lion1.1
  33. AdamW0.0
  34. 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.

Claude Fable 5.2Claude Opus 5.5GPT-6.2 AstraGemini 4 CarbonMuse Wonder FullKimi K3.1 ProQwen4-Maxpublished methodsthe best published method of the task

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.

① Grug MoE scaling ladder of three sizes, 330M / 747M / 2.04B par…lower is better ↓
Claude Opus 5.53.465
Kimi K3.1 Pro3.477
Muse Wonder Full3.493
KL-SOAP, Hyperball3.496
KL-SOAP3.502
Qwen4-Max3.504
MuonW, batch warmup3.508
MuonH3.511
MuonH, 128K batch3.511
Claude Fable 5.23.513
MuonW, stable-then-decay3.523
SOAP3.525
MuonW3.526
3.4353.526

The bars start at 3.435, not at zero.

19 more reference methods are in the numbers below.

The numbers
Method①
Claude Opus 5.53.465
Muse Wonder Full3.493
Qwen4-Max3.504
Claude Fable 5.23.513
KL-SOAP3.502
KL-SOAP, Hyperball3.496
Kimi K3.1 Pro3.477
MuonH3.511
MuonH, 128K batch3.511
MuonW, batch switch3.555
MuonW, batch warmup3.508
MuonH, stable-then-decay3.536
SOAP3.525
Muon, fixed polynomial3.544
Muon, tuned polynomials3.552
Polar Express3.551
MuonW, stable-then-decay3.523
Scion3.551
PSGD-Kron3.592
AdamH3.624
LionW, 128K batch3.584
MuonW3.526
NorMuon3.547
Muon3.557
Shampoo3.602
MuonW, 128K batch3.526
NAdamW3.624
MARS-AdamW3.616
Schedule-Free AdamW3.670
Lion3.647
AdamW3.640
AdamW, 128K batch3.640

Held-out loss, medium model ↓ lower is better

Cross-entropy per token on held-out text of the middle model size after training.

① Grug MoE scaling ladder of three sizes, 330M / 747M / 2.04B par…lower is better ↓
Muse Wonder Full3.193
Claude Opus 5.53.194
KL-SOAP3.197
KL-SOAP, Hyperball3.202
Qwen4-Max3.203
Claude Fable 5.23.203
MuonW, batch warmup3.209
Kimi K3.1 Pro3.210
MuonH3.211
MuonH, 128K batch3.211
MuonW, batch switch3.225
Scion3.249
MuonH, stable-then-decay3.266
3.1563.266

The bars start at 3.156, not at zero.

5 more reference methods are in the numbers below.

The numbers
Method①
Claude Opus 5.53.194
Muse Wonder Full3.193
Qwen4-Max3.203
Claude Fable 5.23.203
KL-SOAP3.197
KL-SOAP, Hyperball3.202
Kimi K3.1 Pro3.210
MuonH3.211
MuonH, 128K batch3.211
MuonW, batch switch3.225
MuonW, batch warmup3.209
MuonH, stable-then-decay3.266
Scion3.249
PSGD-Kron3.275
Shampoo3.301
MARS-AdamW3.306
Schedule-Free AdamW3.325
Lion3.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.

① Grug MoE scaling ladder of three sizes, 330M / 747M / 2.04B par…lower is better ↓
Muse Wonder Full2.864
Claude Opus 5.52.866
KL-SOAP, Hyperball2.869
Claude Fable 5.22.870
Qwen4-Max2.873
KL-SOAP2.873
MuonW, batch switch2.878
MuonH2.880
Kimi K3.1 Pro2.881
MuonW, batch warmup2.889
Polar Express2.892
Muon, tuned polynomials2.892
SOAP2.894
2.8492.894

The bars start at 2.849, not at zero.

7 more reference methods are in the numbers below.

The numbers
Method①
Claude Opus 5.52.866
Muse Wonder Full2.864
Qwen4-Max2.873
Claude Fable 5.22.870
KL-SOAP2.873
KL-SOAP, Hyperball2.869
Kimi K3.1 Pro2.881
MuonH2.880
MuonW, batch switch2.878
MuonW, batch warmup2.889
SOAP2.894
Muon, tuned polynomials2.892
Polar Express2.892
Scion2.899
PSGD-Kron2.902
Shampoo2.945
MuonW, 128K batch2.934
MARS-AdamW2.954
Schedule-Free AdamW2.954
Lion2.954

What the agents built

One run per model.

Claude Fable 5.2in Claude Code
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Claude Opus 5.5in Claude Code
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

GPT-6.2 Astrain Codex CLI
below the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Gemini 4 Carbonin Antigravity
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Muse Wonder Fullin Muse Code
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Kimi K3.1 Proin Kimi Code
below the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Qwen4-Maxin Claude Code
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.