TL;DR
This paper introduces two novel techniques—Subset-Norm (SN) and Subspace-Momentum (SM)—that slash the memory footprint of optimizer states by over 80% while actually accelerating training. By combining these methods, the authors trained a LLaMA 1B model to the same perplexity as Adam in nearly half the training tokens, all while providing rigorous theoretical convergence guarantees.
The Memory Wall in LLM Training
Training Large Language Models (LLMs) is a memory nightmare. While we often focus on the billions of parameters in the model itself, the "optimizer states"—the moving averages of gradients (momentum) and their squares (adaptive step sizes)—are the silent killers. For an optimizer like Adam, these states can consume twice as much memory as the model weights themselves.
Existing solutions to this "memory wall" usually involve trade-offs. You can quantize the states (which can hurt accuracy), use low-rank decompositions like GaLore (which can be slow or require heavy tuning), or use simpler optimizers like SGD (which often fail to converge quickly on complex landscapes). The authors sought a "best of both worlds" approach: an optimizer that is as memory-lean as SGD but as "mean" (performant) as Adam, backed by solid math.
Methods: Subset-Norm and Subspace-Momentum
The authors propose two complementary techniques that can be used individually or together to drastically reduce memory overhead.
1. Subset-Norm (SN) Adaptive Step Size
Standard adaptive optimizers like AdaGrad or Adam track a unique step size for every single parameter, requiring $O(d)$ memory. SN generalizes this by partitioning parameters into groups (subsets) that share a single adaptive step size based on the norm of the group's gradient.
By choosing a subset size of roughly $\sqrt{d}$, they reduce memory from $O(d)$ to $O(\sqrt{d})$. This bridges the gap between tracking every coordinate individually and tracking a single global norm.
2. Subspace-Momentum (SM)
Instead of tracking momentum for every parameter, SM restricts the momentum state to a low-dimensional subspace (often calculated via a quick SVD of a gradient snapshot). Crucially, while momentum is restricted to this subspace, the optimizer still performs standard SGD in the "orthogonal complement" (the rest of the space). This ensures that no part of the gradient is completely ignored, maintaining training stability.
When combined into AdamSNSM, these techniques allow for a massive reduction in the first and second moment buffers that usually bloat LLM training.
Key Insights and Ideas
- The "Noise Density" Connection: The paper provides a fascinating theoretical insight: the effectiveness of grouping parameters (SN) depends on the "noise density" of the gradients. If noise is concentrated in specific coordinates, grouping them actually improves the convergence rate compared to standard coordinate-wise methods.
- Momentum Doesn't Need to be Everywhere: One of the most surprising findings is that restricting momentum to a low-rank subspace doesn't just save memory—it can actually improve performance. The authors suggest that momentum in high-noise dimensions might actually be harmful, and SM naturally filters this out.
- Bridging Theory and Practice: Unlike many "heuristic" memory-saving tricks, both SN and SM come with high-probability convergence guarantees for non-convex smooth objectives, providing a reliable mathematical foundation for their use in production.
Key Results
The researchers validated their methods across a variety of scales and tasks, including pre-training LLaMA models (60M to 1B parameters), fine-tuning LLaMA 7B and BERT, and training vision models (DiT and ViT).
- 2x Training Speedup: For a LLaMA 1B model, AdamSNSM reached the same validation perplexity as Adam in just 6.8B tokens (roughly 48k steps), compared to Adam’s 13.1B tokens (100k steps).
- 80%+ Memory Savings: The optimizer state memory footprint was reduced by over 80%. For a 7B parameter model, AdamW requires ~25GB for optimizer states; AdamSNSM brings this down to under 3GB.
- Hyperparameter Robustness: Subset-Norm proved to be more stable than Adam across different model scales, often requiring less learning rate tuning to achieve optimal results.
- Outperforming Baselines: In head-to-head comparisons, AdamSNSM consistently outperformed other memory-efficient optimizers like GaLore, LoRA, and ReLoRA in terms of final perplexity.
Limitations and Future Work
While highly effective, the approach has a few areas for future refinement:
- SVD Overhead: Calculating the SVD for the subspace projection in SM adds computational cost. The authors mitigate this by updating the subspace periodically (e.g., every 200 steps), but finding the perfect balance is still an area for exploration.
- Heuristic Partitioning: For Subset-Norm, the authors currently use a simple heuristic (grouping by rows/columns of weight matrices). More sophisticated, noise-aware partitioning strategies could unlock even better performance.
- Combined Convergence Proof: While the paper proves convergence for SN and SM individually, a unified proof for the combined SNSM algorithm remains an open theoretical challenge.
Summary updated