Summary (Overview)
- This paper presents an extensive empirical study of scaling laws for learning rate (LR) and batch size in pretraining dense decoder-only LLMs, spanning models from 47M to 1.7B parameters and up to 300B tokens.
- The authors derive jointly optimal scaling laws for LR and batch size, as well as marginal scaling laws for optimal LR at arbitrary (fixed) batch sizes—a practical scenario when hardware constraints limit batch size.
- Using a Warmup-Stable-Decay (WSD) LR schedule, they show that LR annealing's loss improvement is not constant across model sizes, token budgets, LRs, and batch sizes, and that optimal hyperparameters shift between stable and decay phases.
- They demonstrate that the Chinchilla scaling law fails to capture the interaction between model size and data size , while the recently proposed Skaling law provides substantially better fits and extrapolation to held-out 1.7B models (RMSE: 0.0056 vs. 0.0174).
- The complete collection of pretraining runs, checkpoints, and evaluations is open-sourced to foster reproducible scaling law research.
Introduction and Theoretical Foundation
Motivation. Pretraining LLMs at scale requires informed decisions about how models, data, and training configurations should grow. Two critical components are:
- Learning rate and batch size selection—affects training efficiency and the accuracy of derived scaling laws.
- Scaling laws for loss prediction—used to predict performance at larger scales, derive compute-optimal boundaries, and compare models/datasets.
Prior work. Early work focused on the critical batch size (McCandlish et al., 2018; Merrill et al., 2025; Bergsma et al., 2025). More recent approaches investigate how optimal batch size scales with parameters, data, and compute (Hu et al., 2024; DeepSeek-AI, 2024; Li et al., 2025b; Rütte et al., 2026). LR scaling has been studied via muP (Yang et al., 2021) and through direct scaling-law fits (Shen et al., 2024; Porian et al., 2025).
Open questions addressed:
- How do optimal LR and batch size scale jointly and marginally with model size and data budget ?
- Does LR annealing shift optimal hyperparameters, and is its benefit constant across configurations?
- Can recently proposed scaling forms (e.g., Skaling) better capture the – interaction than the classical Chinchilla law?
Methodology
Data. Training uses the high-quality subset of the Nemotron-CC dataset (Su et al., 2025), with the GPT-NeoX-20B tokenizer. Experiments span up to 300B tokens. Validation loss is measured on a held-out set of 204,800 sequences (0.838B tokens).
Models. Dense decoder-only transformers from 47.6M to 1.713B parameters, with:
- Vocabulary size 50304, FFN expansion factor 4, GLU activations
- QK normalization, attention bias terms, tied input-output embeddings
- Fixed head dimension 64, geometrically spaced parameter counts
| Model dimension | 384 | 576 | 896 | 1280 | 1536 | 2048 |
|---|---|---|---|---|---|---|
| Attention heads | 6 | 9 | 14 | 20 | 24 | 32 |
| Layers | 12 | 18 | 20 | 20 | 24 | 24 |
| FFN dimension | 1536 | 2304 | 3584 | 5120 | 6144 | 8192 |
| Total parameters | 47.6M | 124.5M | 301.9M | 588.5M | 983.1M | 1.713B |
Training configuration. AdamW optimizer with a WSD (trapezoidal) LR schedule. Intermediate decays at BT, decaying over the final 20% of each budget to a final LR of . Fixed warmup of 2000 steps. Training on AMD Instinct MI250X GPUs with Megatron-LM.
Hyperparameter grid.
- Batch sizes log₂-spaced in
- Learning rates
- Combinations where warmup exceeds 30% of are excluded
Loss smoothing. To obtain reliable optima estimates, the loss surface is approximated by a quadratic function of and :
Optimal hyperparameters are predicted via:
Conditional optima (fixing one hyperparameter) are obtained from:
Empirical Validation / Results
3.2 Jointly Optimal LR and Batch Size
Power-law models are fit in log-space:
Batch size: Explains 93.6% of variance. Strong positive scaling with (exponent 0.46), weak but significant positive effect of (exponent 0.145):
Learning rate: Explains 79.2% of variance. Strong negative scaling with (exponent −0.417), weaker positive dependence on (exponent 0.0862, bootstrap p-value 0.0055):
Comparison with prior work:
| Batch size | Learning rate | |
|---|---|---|
| Porian et al. [2025] | ||
| Li et al. [2025b] | ||
| Bergsma et al. [2025] | – | |
| This work |
Held-out validation (1.7B model): MAPEs of 28% (η) and 10% (b) against smoothed optima, with all predictions within parametric prediction intervals.
3.3 Optimal LR at Arbitrary Batch Size
The full model with interaction terms:
Key findings:
- Optimal LR scales strongly with () and more weakly with ()
- Larger batch sizes shift optimal LR upward (exponent 0.80 on )
- Opposite D-trend vs. joint scaling: when is fixed, larger decreases optimal LR; when jointly scaled, larger increases it
Reduced model after removing non-significant terms:
4 LR Annealing Effects
Loss improvement is configuration-dependent (Figure 8):
- Larger and smaller → larger loss improvements from decay (more optimization noise benefits from annealing)
- Improvement increases later in training (larger )
- Larger models show consistently larger improvements
Optimal hyperparameters shift after decay:
- favors larger learning rates (up to 4× larger than stable-phase optima)
- Stable-phase optima consistently sit at the smallest LR in the grid
- This suggests that higher LR (or smaller ) during stable phase aids exploration, which is then corrected by annealing
5 Scaling Laws for Loss
Chinchilla law (independent power-law contributions):
Skaling law (couples and via interaction exponent ):
Fitted parameters:
| Model | E | A | α | B | β | k | Huber | RMSE₁.₇B |
|---|---|---|---|---|---|---|---|---|
| Chinchilla | 1.418 ± 0.25 | 208.5 ± 2.1e+02 | 0.2807 ± 0.05 | 528.7 ± 1.3e+03 | 0.2534 ± 0.081 | – | 1.76e-04 | 0.0174 |
| Skaling | 1.03 ± 0.087 | 2.343e+04 ± 1.4e+04 | 0.491 ± 0.03 | 4630 ± 2.9e+03 | 0.3496 ± 0.022 | 0.4105 ± 0.033 | 3.66e-05 | 0.0056 |
Key results:
- Chinchilla fails at extreme and values; residuals show clear – interaction
- Skaling's interaction exponent matches Videau et al. [2026]
- Skaling extrapolates to held-out 1.7B with 3× lower RMSE (0.0056 vs. 0.0174)
Compute-optimal scaling (derived from Eq. 11):
6 Downstream Performance
- Consistent decrease in downstream error (DCLM-CORE suite) with increasing compute across all model scales
- Smallest models plateau quickly (capacity-limited); larger models follow the overall compute-performance trend
- OpenEuroLLM models show better compute efficiency than Pythia and SmolLM2 at matched compute
Theoretical and Practical Implications
Theoretical implications:
- Joint vs. marginal scaling differ fundamentally: the sign of the -exponent for optimal LR flips depending on whether is jointly optimized or fixed. This highlights the need to distinguish these settings when deriving or applying scaling laws.
- Interaction between and is real and significant: the Chinchilla law's separability assumption is violated; the Skaling law's interaction exponent provides a principled way to capture undertrained and overtrained regimes.
- LR annealing is not a constant shift: the benefit of decay depends systematically on , , , and , challenging the assumption (Rütte et al., 2026) that optima are unaffected by annealing.
Practical implications:
- Batch-size-constrained training: when hardware dictates a batch size away from the joint optimum, Equation 9 provides the correct LR prescription.
- WSD schedule design: the finding that decay favors larger stable-phase LRs suggests a practical recipe: use larger LR during stable phase, then anneal to correct for optimization noise.
- Compute savings: understanding annealing effects could enable cheaper scaling-law derivation without full decay runs (decay runs are ~78.6% of total compute in this setup).
- Open-sourced resources: the full collection of runs, checkpoints, and evaluations enables reproducible scaling-law research.
Conclusion
This study establishes a first scaling baseline for OpenEuroLLM models, covering optimal LR and batch size scaling (both joint and marginal), the effect of LR annealing under WSD schedules, and loss scaling laws.
Main takeaways:
- Optimal batch size scales as ; optimal LR as .
- When batch size is fixed, optimal LR scales as (with interaction terms), showing an opposite -trend versus joint scaling.
- LR decay benefits vary systematically across configurations, and optimal hyperparameters shift between stable and decay phases—larger LRs are favored when annealing is applied.
- The Skaling law with interaction exponent substantially outperforms Chinchilla for extrapolation to held-out scales.
Limitations and future directions:
- Extrapolation beyond ~1 order of magnitude in scale remains uncertain
- Scaling exponents vary substantially across studies (datasets, architectures, configurations), limiting transferability
- Future work: modeling the evolution of LR-decay benefit to enable cheaper scaling-law derivation without annealing; exploring non-parametric approaches beyond the Skaling form
Related papers
- Spectral Allocation: Why Muon Outperforms Adam, and How to Improve Muon
Spectral probing reveals Transformer loss landscapes have a volatile head and tolerant bulk, motivating SAMuon which amplifies bulk step sizes to beat Muon by 13-24% in token efficiency.
- Effective Learning Rate Governs Loss Dynamics in Language Model Pretraining
Learning rate and parameter norm govern language model pretraining loss dynamics almost entirely through their ratio, the effective learning rate, collapsing loss trajectories across diverse training configurations.
- Efficiently Estimating Optimal Hyperparameter Scaling Laws through Power-Law Entropy Search
Power-Law Entropy Search estimates optimal hyperparameter scaling laws for LLMs using under one-tenth the compute of grid search by prioritizing uncertainty reduction in small-scale experiments.