Rigorous Evaluation of LLM Pretraining Optimizers: Debunking Speedup Claims
[HPP] Percy LiangJanuary 22, 202614 min
15 connectionsยท23 entities in this videoโThe Pretraining Optimization Debate
- ๐ก Pre-training optimization for Large Language Models (LLMs) is a major and expensive debate in machine learning, consuming over 95% of total project costs for models like Deepseek V3.
- ๐ While AdamW has been the default optimizer, many new algorithms like Muon, Sophia, and SOAP claim 1.4x to 2x speedups.
- โ ๏ธ Despite these sensational claims, widespread adoption of new optimizers has not occurred, indicating industry-wide skepticism.
Methodological Flaws & Rigorous Evaluation
- ๐ Previous evaluations suffered from two critical flaws: unequal or insufficient hyperparameter tuning and limited evaluation setups (small models, low data regimes).
- ๐ฏ A systematic study compared 11 optimizers across four Llama 2 model scales (0.1B to 1.2B parameters) and varied data regimes (1x to 8x Chinchilla optimum).
- ๐ ๏ธ Rigorous three-phase coordinate descent was used for hyperparameter tuning, revealing that a simple learning rate tweak for AdamW could yield a 2x speedup against a weakly tuned baseline.
- ๐ Optimal hyperparameters are highly specific and non-transferable between optimizers, making fixed settings or blind transfers unfair.
- โณ Intermediate checkpoints are misleading; evaluations must be performed at the target training budget as optimizer rankings can flip during training.
Key Findings on Optimizer Performance
- ๐ Against a properly tuned AdamW baseline, the highest observed speedup for any alternative optimizer was capped at 1.4x.
- ๐ This speedup decays dramatically with model size, reducing from 1.3x for 0.1B models to a mere 1.1x for 1.2B parameter models in high data regimes.
- ๐ฎ A fitted scaling law suggests that at frontier scales (e.g., 7B parameters), some advanced optimizers like Muon might lead to a higher final validation loss than a well-tuned AdamW.
Scaling Challenges and Structural Insights
- ๐งฉ Optimizers are categorized into scalar-based (e.g., AdamW, Lion) and matrix-based (e.g., Muon, SOAP, Cron), with matrix methods leveraging structural information for gradient preconditioning.
- โก Matrix-based methods showed 1.3x gains at smaller scales (under 520M parameters) but their efficiency gain is limited by increased computational overhead as model size grows.
- ๐ The optimal optimizer depends on the data regime: Muon excels in data-limited settings (1x-4x Chinchilla), while SOAP and Cron perform better in data-dense or overtrained settings (8x-16x Chinchilla) due to second-order momentum.
- โ Optimizer choice primarily affects training speed, not the fundamental generalization properties or final structural outcome of the model.
Operational Takeaways & Future Directions
- ๐ก The most significant and safest efficiency gain comes from rigorous hyperparameter tuning of existing AdamW baselines, often negating the need for complex migrations.
- โ ๏ธ Matrix-based optimizers offer modest, decaying advantages that may not justify migration costs for large models.
- ๐ฏ Always evaluate at the target training budget to avoid misleading rankings from early-stage checkpoints.
- ๐ The key open problem is designing optimizers with stable efficiency gains that do not diminish at trillion-parameter scales.
Knowledge graph23 entities ยท 15 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover ยท drag to explore
23 entities
Chapters2 moments
Key Moments
Transcript53 segments
Full Transcript
Topics15 themes
Whatโs Discussed
Large Language Models (LLMs)Pre-training OptimizationAdamW OptimizerHyperparameter TuningOptimizer EvaluationModel ScalingData RegimesCoordinate DescentLearning Rate DecayScalar-Based OptimizersMatrix-Based OptimizersComputational OverheadGeneralization PropertiesScaling LawsDeep Learning Optimization
Smart Objects23 ยท 15 links
Conceptsยท 20
Mediasยท 2
Personยท 1