In modern deep learning, the Adam optimizer is the de facto standard for training large-scale models. Its success stems from its ability to adaptively scale the learning rate for each parameter based on the historical variance of gradients. However, this adaptivity comes with a hidden cost: it makes the optimization update non-linear.
This non-linearity is a major roadblock for distributed training. Standard techniques used to speed up communication—such as gradient compression, quantization, and local update steps—rely on the mathematical property of linearity. When the "scaling factor" (the variance term) changes at every single step, these efficiency tricks often fail, leading to poor convergence or model instability.
A growing body of research suggests a powerful workaround: by identifying that the variance term in adaptive optimizers stabilizes early in training, we can "freeze" it, effectively linearizing the optimizer and unlocking massive gains in communication efficiency.
The Problem with Non-Linear Adaptivity
To understand why Adam is hard to compress, consider how it differs from simple Stochastic Gradient Descent (SGD). In SGD, the update is a linear function of the gradient. If you compress the gradient (e.g., by rounding it to 1-bit), you can use "error compensation"—storing the rounding error and adding it back to the next gradient—to ensure the optimizer eventually moves in the right direction.
In Adam, the update is the gradient divided by the square root of the variance ($v_t$). Because $v_t$ changes every step, an error made at step $t$ is no longer "compatible" with the scaling factor at step $t+1$. This mismatch prevents error-compensated quantization from working correctly.
The Stabilization Insight
The breakthrough across several papers is the observation that while gradients are noisy, their second-moment estimates (the variance) are remarkably stable. Hanlin Tang, Samyam Rajbhandari, and their colleagues demonstrated in 1-bit Adam that after a brief "warmup" phase, the variance term in Adam changes very little.
By treating the variance as a constant preconditioner after this warmup, the authors "linearize" the update rule. This allows them to apply 1-bit compression to the gradients with full error compensation, reducing communication volume by up to 5x while maintaining the convergence speed of full-precision Adam.
From Compression to Local Updates
Once an optimizer is linearized, more than just compression becomes possible. In 0/1 Adam, Yucheng Lu, Christopher De Sa, and others extend this concept to support "local updates."
In traditional distributed training, workers must synchronize after every single step. With a linearized optimizer, workers can perform multiple local steps on their own data and only synchronize a compressed representation of their accumulated updates. Because the variance term is frozen, these local updates remain mathematically consistent across different workers, allowing for a reduction in communication overhead of up to 87%.
Beyond Communication: Sparsity and Theory
The benefits of freezing the optimizer's "memory" extend to model architecture and theoretical understanding:
- Structured Sparsity: Training models with N:M structured sparsity (like 2:4 patterns for hardware acceleration) is notoriously difficult with Adam because the fluctuating variance term interferes with the selection of sparsity masks. In STEP, Yucheng Lu and colleagues show that freezing the second-moment estimate provides a stable foundation for learning these masks, closing the accuracy gap for Large Language Models.
- Theoretical Proxies: The idea of a "static" preconditioner is even being used to bridge the gap between theory and practice. Xiyuan Yang and Jingrui He explore this in Preconditioning Neural Tangent Kernel for Adaptive Optimization, using a one-time calculation of variance to approximate the behavior of adaptive optimizers within the Neural Tangent Kernel (NTK) framework.
Why It Works: The Two-Phase Recipe
The shared mechanism across these works is a transition from dynamic adaptivity to static preconditioning. The training process is split into two phases:
- The Warmup Phase: The optimizer runs normally (full precision, frequent communication) to allow the variance term to capture the geometry of the loss landscape.
- The Linearized Phase: The variance term is frozen. The optimizer now acts as a fixed linear preconditioner, enabling aggressive communication-reduction techniques like 1-bit quantization or local SGD-style averaging.
By recognizing that the "intelligence" of Adam—its ability to scale updates—is mostly captured in the early stages of training, researchers have found a way to keep the benefits of adaptivity while shedding the communication bottlenecks of non-linearity.