TL;DR
When training modern language models, we rarely deploy the exact weights from the final step; instead, we return a smoothed-out average of weights collected along the journey. Yet, standard optimizers like AdamW remain completely blind to this fact, greedily optimizing the live weights rather than the average we actually care about. By framing training as an optimal-control problem, the authors introduce PACE—a lightweight wrapper around AdamW that gently tugs live weights back toward their running average, stabilizing training and consistently improving model performance.
What Problem Does This Paper Address?
Imagine trying to take a long-exposure photograph by walking around with an open shutter. Your final image isn't where you stand at the very last second; it’s a blend of everywhere you’ve walked.
In deep learning, taking an Exponential Moving Average (EMA)—a weighted average of a model's parameters over training steps—is standard practice because it smooths out noisy gradient updates and improves generalization. Usually, this averaging is treated as a passive bystander: AdamW drives the live weights down the loss landscape, while EMA quietly records the history in the background.
The authors ask a deceptively simple question: If we know from day one that we are going to hand over an averaged model, shouldn't we steer the training trajectory specifically to make that average as accurate as possible?
Methods
To figure out how to steer the trajectory, the authors temporarily step away from messy neural networks into a clean, continuous-time mathematical sandbox: noisy gradient descent on a quadratic bowl (an Ornstein–Uhlenbeck process).
They add an external steering wheel—a "control input"—to the parameter updates. Their goal is to minimize the final error of the averaged weights without steering too aggressively (which they enforce via a quadratic penalty on the intervention size). Solving this via classical stochastic control theory reveals a clear mathematical directive: the optimizer should continuously pull the live weights toward an estimate of the true optimum and keep them consistent with the accumulated average.
Because you don't know the true optimum or exact landscape curvature (the Hessian) when training a billion-parameter model, the authors make a few clever, practical approximations to build PACE (Pullback Averaging Control for Efficient Optimization):
- EMA as a stand-in: They use the current EMA of the weights as a running estimate of the optimum.
- Reuse AdamW’s machinery: Theory says the pullback should scale inversely with curvature. Since AdamW already tracks squared gradients ($v_t$) as a rough proxy for curvature, PACE reuses AdamW's preconditioner ($1/\sqrt{v_t + \epsilon}$) coordinate-by-coordinate.
- Decay and clip: They decay the averaging and pullback rates over time to adapt to changing loss landscapes, and clip the pullback strength at $1$ so the update never overshoots the EMA.
In practice, PACE takes a normal AdamW step, then nudges each parameter slightly back toward its running EMA.
Datasets
No new benchmarks are introduced. The authors evaluate PACE on established datasets:
- Supervised Fine-Tuning (SFT):
smol-smoltalk(synthetic instruction-tuning data) andTulu(evaluated in the appendix), tested across SmolLM2 (135M and 1.7B), Qwen3-1.7B, and Gemma3-1B. - Pretraining:
FineWebat a Chinchilla-optimal budget of 2.5 billion tokens for from-scratch pretraining of GPT-2 (124M).
Key Insights and Ideas
- Unifying AdamW+EMA and Lookahead: PACE is controlled by a scalar pullback strength $c$. At $c=0$, there is no pullback, recovering standard AdamW with passive EMA. As $c \to \infty$, clipping forces live weights to snap all the way back to the EMA, recovering a single-step version of the Lookahead optimizer. The magic happens in the middle: gentle, intermediate pullbacks ($c \approx 3 \times 10^{-3}$) outperform both extremes.
- Theoretical safety net with massive upside: Even though PACE was derived assuming a simple quadratic bowl, the authors prove that for any general convex loss, a stylized version of PACE converges at the standard $O(1/\sqrt{T})$ rate—meaning it won't catastrophically break outside quadratics. Meanwhile, inside quadratic landscapes, it strictly beats SGD's iterate average, reducing limiting error by an arbitrarily large factor on certain instances.
- Stabilization without a schedule: Learning rate decay is usually mandatory to help models settle at the end of training. PACE running at a constant learning rate matches or beats vanilla AdamW with linear decay schedules across token budgets, acting as an effective stabilizer even without a schedule (though combining PACE with decay works best of all).
Key Results
Across both fine-tuning and pretraining, PACE consistently lowers validation cross-entropy loss compared to plain AdamW and standard EMA-evaluated AdamW.
- Fine-tuning (1B–2B scale): Across SmolLM2-1.7B, Qwen3-1.7B, and Gemma3-1B (averaged over three seeds under Warmup-Stable-Decay schedules), PACE strictly outperforms both baselines throughout training, dropping validation loss noticeably faster and settling lower (e.g., reaching below $0.70$ on SmolLM2-1.7B compared to $\sim 0.73–0.74$ for AdamW and EMA).
- Pretraining (GPT-2 124M): On FineWeb, PACE beats AdamW and EMA under both constant learning rates and linear decay (WSD) schedules, pushing final validation loss under WSD below $3.50$ while baselines remain around $3.53$.
- Efficiency vs. Schedule-Free: PACE achieves competitive validation loss against the Schedule-Free (SF) optimizer, while running faster in practice (10 hours vs. 12 hours on a TPU v6e for Qwen3-1.7B) because it avoids SF's overhead of constantly swapping weight buffers during steps.
Limitations and Future Work
- Memory Overhead: Maintaining an EMA copy alongside AdamW's momentum and variance states requires extra GPU memory compared to plain AdamW (though no more than standard AdamW+EMA). Because their theoretical proofs don't actually rely on momentum, the authors suggest testing whether PACE's pullback can replace momentum altogether, saving a full copy of model weights.
- Scale: Compute limits restricted pretraining tests to 124M parameters and fine-tuning to under 2B parameters; verifying PACE at frontier scales remains open.
- Theory-Practice Gap & Next-Gen Optimizers: The theoretical guarantees analyze SGD rather than full adaptive AdamW. Looking ahead, the authors propose pairing PACE with modern second-order optimizers like MuON or SOAP, which could provide a much truer curvature preconditioner for the pullback step itself.
Summary updated