When we train a neural network, we usually focus on the weights—the parameters that define the model's intelligence. However, modern optimization algorithms like Adam or SGD with momentum carry a "hidden" memory of the training process. This memory, stored in optimizer states like moving averages of gradients and squared gradients, represents the velocity and direction of the learning trajectory.
A growing body of research suggests that treating these optimizer states as disposable is a major source of inefficiency. Whether you are resuming a crashed training run, growing a model's architecture, or switching between different optimization algorithms, preserving the "momentum" of the optimizer is often as important as preserving the weights themselves.
The Hidden Memory of Learning
In simple Stochastic Gradient Descent (SGD), the update at each step depends only on the current gradient. But modern training is rarely that simple. Algorithms like Adam maintain first and second "moments"—estimates of the mean and variance of gradients over time.
As Aurick Qiao and the LLM360 team emphasize, these states are critical for transparency and reproducibility. If you stop a training run and restart it using only the model weights, the optimizer must "re-learn" the local geometry of the loss landscape. This leads to what Benjamin C. M. Fung describes as catastrophic loss spikes: the model's performance temporarily degrades as the optimizer struggles to recover its previous trajectory.
Scaling the Optimizer with the Model
One of the most powerful applications of state transfer is in progressive learning, where a model "grows" from a small architecture to a large one to save compute.
If you simply copy weights from a small model to a larger one and reset the optimizer, the new, larger model starts with zero velocity. Sheng Shen and colleagues in their work on Staged Training demonstrate that you must scale the optimizer states (like Adam’s $m$ and $v$ buffers) alongside the weights. By mapping these internal variables to the new dimensions, the model maintains its training dynamics, avoiding the learning stalls that typically plague architectural expansion.
Similarly, Cheng Fu shows in the TripLe framework that transferring these states can slash the cost of training Vision Transformers by up to 80%. The intuition is simple: the "knowledge" of which directions in the parameter space are noisy and which are stable is already encoded in the optimizer's history. Throwing that away forces the larger model to repeat the exploratory work already done by the smaller one.
Hand-offs Between Different Algorithms
The challenge of continuity becomes even more complex when we switch between different types of optimizers. For instance, a researcher might want to start with a robust global optimizer and switch to a precise local solver as they approach a minimum.
Diederick Vermetten and Hao Wang have explored this in the context of black-box optimization. They found that "warm-starting" a second algorithm with the internal state of the first—such as the Hessian or covariance matrix—is far more effective than just passing the best-found solution.
In deep learning, Yile Chen proposes Dynamic Optimizer Interleaving, which treats the choice of optimizer as a dynamic decision. The primary hurdle here is that different optimizers (e.g., Adam vs. SGD) speak different "languages" in their internal states. Developing robust mechanisms to translate momentum across these algorithmic regimes is a key frontier for making training more flexible.
Stability in Shifting Landscapes
The need for state management isn't just about efficiency; it's often about survival in non-stationary environments. In Reinforcement Learning, the data distribution shifts constantly as the agent learns.
Benjamin Ellis identifies a specific problem with the Adam optimizer in these settings: the "clock" ($t$) used to scale updates becomes stale when the objective changes. His solution, Adam-Rel, resets the update scale while preserving the directional memory (momentum). This confirms a vital insight: the directional history of the gradient is often a stable, valuable signal even when the magnitude of the updates needs a total reset.
Summary of the Intuition
The common thread across these 34 papers is that optimization is a continuous trajectory, not a sequence of independent steps.
- Optimizer states are a form of knowledge: They encode the local curvature and noise levels of the loss landscape.
- Resets cause shocks: Discarding these states forces the system to re-estimate the landscape, leading to loss spikes and wasted compute.
- State Transfer enables growth: Scaling these states allows us to build larger models on the "shoulders" of smaller ones without losing momentum.
- Selective Resets handle change: In shifting environments, we should reset the scale of our actions while retaining our directional memory.