Training for the Model You Return: Improving Optimization for Iterate-Averaged Language Models
Kwok C Au, Adam Block
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Optimization & Federated Learning › Optimizer Design and Analysis for LLMs · Type: new method · Keywords: iterate-averaged language models, optimal control in optimizer design, AdamW wrapper, exponential moving average, large language model fine-tuning
Areas: Optimization & Algorithms › Optimization Dynamics › Hyperparameter Scaling Laws
Summary
PACE is a lightweight AdamW wrapper that pulls live weights toward their exponential moving average to improve the performance of iterate-averaged language models.
Explained to a 5-year-old
When we train a big language model, we often keep an average of all the steps we took. This average is what we finally use. The paper asks how we should train so that this average works better. It creates a new way to adjust the training that nudges the model toward that average. This helps the model understand language a bit more.
Explained to a 5-year-old, longer
When we teach a computer program to understand words, we change its numbers many times. At the end, we often take the average of all those changes instead of just the last one. This average is what we give to other people to use. The paper asks why we train the program the usual way if we are going to use the average. It thinks of training as a control problem, looking for the best way to move the numbers so the average is as good as possible. It finds a simple rule that gently pulls the current numbers toward the running average. This rule is easy to add to existing training methods. In experiments, the new rule makes the average understand words better than before. It works for both teaching small and big language models. The improvement is seen in tasks like answering questions and writing text. The method stays simple, so it can be used by many researchers and companies. Overall, it shows that thinking about the final average can lead to better language understanding.
For a technical reader
The paper observes that many language model pipelines return an averaged model (e.g., an exponential moving average) rather than the final trained weights. Standard optimizers are designed for the final iterate, which can be sub-optimal for the average. The authors formulate optimizer design for this setting as an optimal-control problem and derive a lightweight adjustment that nudges the live weights toward their moving average with per-coordinate clipping. This adjustment can be added on top of AdamW and yields measurable gains in fine-tuning and pre-training experiments. The theoretical analysis shows convergence guarantees and potential error reduction in quadratic objectives.
Problem
When language model training returns an averaged model rather than the final iterate, standard training procedures may not be optimal for the average's performance. How should training be adjusted to improve the quality of the returned iterate-average estimator?
Method
The approach formulates optimizer design for the iterate-average estimator as an optimal-control problem, solves for a control strategy that minimizes the average's error under a penalty on intervention size, and yields a practical approximation that adjusts live weights toward their exponential moving average with per-coordinate clipped control strength.
Results
PACE improves over AdamW and EMA-evaluated AdamW in supervised fine-tuning of 1-2B parameter LMs and GPT-2 pretraining on FineWeb, while staying competitive with learning-rate decay and Schedule-Free baselines.
Contributions
The paper frames optimizer design for iterate-averaged models as an optimal-control problem, derives a practical controller that adjusts weights toward their exponential moving average, and demonstrates empirical gains on large language model fine-tuning and pretraining.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction