Introduction
The training of Large Language Models (LLMs) is increasingly bottlenecked by memory constraints. While model weights are substantial, optimizer states—specifically those in the Adam optimizer—often consume 2 to 3 times more VRAM than the weights themselves. While recent advances have successfully compressed second-order statistics (variance), first-order statistics (momentum) have remained resistant to compression due to their sensitivity and signed nature. Aggressive compression typically leads to convergence issues or performance degradation.
AdaPM (Adaptive Partial Momentum) addresses this challenge by introducing a non-uniform momentum design and a debiased low-rank update mechanism. This approach reduces the memory footprint of momentum by over 90% while maintaining the performance of full-rank optimizers like AdamW.
Methodology: Non-Uniform Momentum and Debiasing
AdaPM's core innovation lies in treating Transformer layers differently based on their sensitivity to momentum. The framework partitions the architecture into three categories:
- No Momentum: Applied to Embedding and Attention Output layers where gradients are sparse.
- Low-Rank Momentum: Applied to Query, Key, and MLP blocks, which are compressed to approximately 5% of their original dimensions.
- Full Momentum: Reserved for Value blocks to ensure optimization stability.
To mitigate the information loss inherent in low-rank projection, AdaPM utilizes a Debiased Low-Rank Estimator. This technique tracks the "residual" information discarded during projection and uses it to compensate for bias in the update direction. This ensures that the optimizer's trajectory remains mathematically close to the full-rank version despite the massive reduction in stored state.
Theoretical Insights: The Low-Rank Nature of Momentum
The effectiveness of AdaPM is rooted in the observation that momentum matrices in LLMs are approximately low-rank but possess a "long tail" of small singular values. Standard truncation methods fail because they ignore this tail, leading to optimization drift. AdaPM's residual compensation allows the model to benefit from the low-rank structure without suffering from the bias of simple truncation.
Furthermore, the authors provide theoretical justification for skipping momentum in certain layers. In "variance-dominated" regimes, such as sparse embedding updates, momentum can actually decrease statistical efficiency, making its removal both a memory and a performance optimization.
Empirical Results
The researchers evaluated AdaPM on GPT-2 and Llama architectures across pretraining (OpenWebText, C4) and fine-tuning (UltraFeedback) benchmarks.
- Memory Efficiency: AdaPM reduces momentum memory by over 90%. When integrated with second-order compression (AdaPM-mini), total optimizer memory savings reach 94% for a GPT-2 1.5B model.
- Training Speedup: The reduced memory footprint allows for significantly larger batch sizes on standard hardware, resulting in a 30% reduction in total GPU hours for pretraining.
- Performance Parity: Across all tasks—including Supervised Fine-Tuning (SFT) and Reinforcement Learning from Human Feedback (RLHF)—AdaPM matched or exceeded the performance of the standard AdamW optimizer.
Conclusion and Future Work
AdaPM demonstrates that momentum memory can be drastically reduced without sacrificing LLM performance. By combining architectural awareness with bias-correction techniques, it sets a new standard for memory-efficient optimization. Future work includes extending these partitioning rules to non-Transformer architectures like State Space Models and addressing the remaining bottleneck of activation memory.
Summary updated