Training for the Model You Return: Improving Optimization for Iterate-Averaged Language Models
Kwok Chun Au, Adam Block
cs.LG, cs.AI, stat.ML
Submitted: 2026-06-23
Code: https://github.com/leonou2010/pace-optimizer
License: http://creativecommons.org/licenses/by/4.0/
The gist: Many modern Language Model (LM) pipelines return an averaged model, such as an exponential moving average of the training iterates, rather than the final iterate itself.
Terminology
Abstract
Many modern Language Model (LM) pipelines return an averaged model, such as an exponential moving average of the training iterates, rather than the final iterate itself. This raises a fundamental question: given that we will return an iterate average, how should we change training to improve the performance of this average? We study this question by formulating optimizer design for the iterate-average estimator as an optimal-control problem. In a continuous-time stochastic quadratic model, we solve for the control strategy that minimizes the error of the returned average subject to a penalty on the size of the intervention. A practical approximation to this controller yields PACE, a lightweight wrapper around AdamW that pulls the live weights toward their exponential moving average with a clipped, per-coordinate control strength. We prove that a stylized version of PACE converges at the standard stochastic convex optimization rate, up to a factor depending on the averaging rule, while in the quadratic setting it can strictly improve the limiting squared error of the iterate-average estimator and can do so by an arbitrarily large factor on some instances. Empirically, our results suggest that PACE improves over AdamW and EMA-evaluated AdamW in supervised fine-tuning of 1-2B parameter LMs and in GPT-2 pretraining on FineWeb for a wide range of learning rates, decay schedules, and other hyperparameters.
Sources
- SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model
- EMA Without the Lag: Bias-Corrected Iterate Averaging Schemes
- Generative Modeling with Denoising Auto-Encoders and Langevin Sampling
- Gemma 3 Technical Report
- Averaging Weights Leads to Wider Optima and Better Generalization
- Stop Wasting My Time! Saving Days of ImageNet and BERT Training with Latest Weight Averaging
- Adam: A Method for Stochastic Optimization
- Tulu 3: Pushing Frontiers in Open Language Model Post-Training
- Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training
- Decoupled Weight Decay Regularization
- 2 OLMo 2 Furious
- The AdEMAMix Optimizer: Better, Faster, Older
- Through the River: Understanding the Benefit of Schedule-Free Methods for Language Model Training
- SOAP: Improving and Stabilizing Shampoo using Adam
- Understanding Warmup-Stable-Decay Learning Rates: A River Valley Loss Landscape Perspective
- KOALA++: Efficient Kalman-Based Optimization with Gradient-Covariance Products
- Qwen3 Technical Report
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: Local-Consistency Optimisation for Bayesian Neural Networks
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks