Benchmarking Optimizers for Large Language Model Pretraining
Andrei Semenov, Matteo Pagliardini, Martin Jaggi
TL;DR
This work delivers a comprehensive, standardized benchmark of 11 optimizers for large language model pretraining across multiple model sizes and training horizons, revealing that AdEMAMix, D-Muon, and MARS are strong contenders at scale after careful hyperparameter tuning. It demonstrates that batch size, warmup, weight decay, and learning-rate schedules substantially influence outcomes and that certain optimizers (e.g., Sophia, Signum, Lion) can underperform or destabilize under longer training. By extending the evaluation to Mixture-of-Experts (MoEs) and releasing full tooling, the study provides a practical framework for fair comparison and future optimizer development. The findings offer concrete guidance for practitioners and highlight directions for research into stable, efficient large-scale optimization.
Abstract
The recent development of Large Language Models (LLMs) has been accompanied by an effervescence of novel ideas and methods to better optimize the loss of deep learning models. Claims from those methods are myriad: from faster convergence to removing reliance on certain hyperparameters. However, the diverse experimental protocols used to validate these claims make direct comparisons between methods challenging. This study presents a comprehensive evaluation of recent optimization techniques across standardized LLM pretraining scenarios, systematically varying model size, batch size, and training duration. Through careful tuning of each method, we provide guidance to practitioners on which optimizer is best suited for each scenario. For researchers, our work highlights promising directions for future optimization research. Finally, by releasing our code and making all experiments fully reproducible, we hope our efforts can help the development and rigorous benchmarking of future methods.
