# The Best Optimizer Depends on Batch Size

- **ID:** 1337
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2610.08975
- **Authors:** Xingyu Dang, Kaiyue Wen, Sadhika Malladi
- **Venue:** arXiv 2610.08975 (cs.LG/stat.ML), submitted 6 Oct 2026, CC BY 4.0; interactive explainer at batch-size-scaling.com
- **Published:** 2026
- **Source:** web
- **Language:** en
- **Access:** free
- **Tags:** optimizer, batch-size, scaling-rules, muon, shampoo, lm-pretraining, curvature, gradient-noise, sharp-subspace
- **Topics:** optimizers; batch size; scaling rules; pretraining
- **Added:** 2026-10-09
- **Verified:** 2026-10-09
- **Page:** https://papers.projxon.ai/entries/1337

## Summary

Adaptive optimizers are benchmarked at one batch size, while hyperparameter scaling rules promise that the best optimizer at one batch size stays the best at another. This paper challenges both practices. (1) No principled scaling rule for Muon works consistently across settings: the authors derive and test three competing rules against Muon - linear LR from SDE-matching, square-root LR from minimizing a convergence bound, and fixed LR with scaled weight decay from Power Lines - tuning at a reference batch size for LM and image classification, then growing batch size at fixed token budget across hundreds of rule variants; the best rule depends on task and target batch size. (2) The best optimizer for LM pretraining changes with batch size even after extensive retuning: Adam, Lion, Muon, SOAP, and Shampoo were each retuned at every batch size from 128K to 2M tokens at fixed total budget under both weight decay and HyperBall (fixed hidden-matrix norms). Under HyperBall, Muon beats Shampoo at 128K tokens/update while Shampoo beats Muon at 2M. Theory on a noisy quadratic explains why: Newton's method divides gradients by curvature, cutting bias (remaining initialization error) at the cost of higher variance from noisy gradients; larger batches shrink variance, so rankings can reverse even with optimally tuned learning rates. A SignSGD toy model shows LR scaling shifts from square-root toward linear as the curvature-to-noise ratio (CNR = h^2/c) increases - the right rule depends on landscape and noise, not just the optimizer. A sharp-subspace intervention pins down where the batch-size penalty lives: checkpoint-branching from 128K to 2M with small-batch updates kept only in the sharpest 768 directions (~0.001% of matrix-parameter space) removes up to 59.5% of the local batch-size penalty (a random same-size subspace removes at most 3%); the benefit largely fades late in training.

## Research notes

- Relevance: directly relevant to the user's LLM pretraining - batch-size-dependent optimizer rankings are actionable for his runs: if he scales batch size, the winning optimizer can flip (Muon vs Shampoo reversed between 128K and 2M tokens) even after retuning, so optimizer choice must be made at the actual batch size. The sharp-subspace finding (0.001% of sharpest matrix directions carry up to 59.5% of the local batch-size penalty) is a concrete diagnostic for his training setup. Connects to ID 1627 (Relative Generalization Invariance): RGI says optimizer/architecture choices shift the overall loss level while data sets the relative difficulty structure - this site is the batch-size counterpart, showing batch size can re-rank optimizers outright. Optimizer cluster: 1627 (Adam/Adam-mini/Lion/Muon/Soap/Scion tested). Discovery: bare link shared 2026-10-09; https://batch-size-scaling.com is an interactive research explainer for the arXiv paper. Authors: Xingyu Dang (Princeton), Kaiyue Wen (Stanford, equal contribution), Sadhika Malladi (UC San Diego). Paper: arXiv 2610.08975 (cs.LG/stat.ML), submitted 6 Oct 2026, CC BY 4.0. No code repo found on the arXiv page at catalog time.

## Similar entries

- [Why Adaptive Optimizers Underestimate Rare Tokens](https://papers.projxon.ai/entries/1219) (paper, #1219)
- [Aurora: A Leverage-Aware Optimizer for Rectangular Matrices](https://papers.projxon.ai/entries/614) (paper, #614)
- [When Do Larger Batches Help Scale LLM Reinforcement Learning?](https://papers.projxon.ai/entries/1041) (paper, #1041)
- [Towards Compositional Steepest Descent](https://papers.projxon.ai/entries/623) (paper, #623)
- [Spectral Scaling Laws of Muon](https://papers.projxon.ai/entries/491) (paper, #491)
- [Aurora: A Leverage-Aware Spectral Optimizer](https://papers.projxon.ai/entries/920) (paper, #920)
