Introduction
Training modern large-scale models, such as Large Language Models (LLMs) and Diffusion models, is increasingly constrained by memory requirements. A primary bottleneck is the memory consumed by optimizer states—specifically the moving averages of gradients in popular optimizers like AdamW—which can account for over 40% of total memory usage.
Existing memory-efficient training techniques often face a trade-off between performance and overhead. LoRA (Low-Rank Adaptation) restricts updates to a fixed low-rank subspace, frequently leading to suboptimal performance compared to full fine-tuning. Gradient Projection methods like GaLore and Flora project gradients into low-rank spaces to save memory. However, GaLore's reliance on full Singular Value Decomposition (SVD) is computationally expensive, while Flora’s random projections can introduce noise. Critically, both methods often lack "inter-projection correlation," where abrupt shifts in the projection matrix destabilize the optimization trajectory and degrade final accuracy.
Methodology: Correlation-Aware Gradient Projection (COAP)
COAP addresses these challenges by making gradient projection stable and computationally efficient.
The core innovation of COAP lies in its Correlation-Aware Update mechanism. Instead of recalculating the projection matrix $P_t$ from scratch, COAP treats the update as an optimization problem. It identifies a new projection matrix that minimizes reconstruction error while maintaining consistency with the direction of the first-order moment (the moving average of previous gradients). This approach "smooths" the transition between subspaces, preserving the momentum of the training process and preventing the destabilizing shifts seen in prior work.
To maintain efficiency, COAP utilizes an Occasional Low-cost SVD. Rather than performing SVD on the massive full gradient matrix, COAP first projects the gradient into a smaller subspace and performs SVD there. This approximation is roughly 20x faster than the vanilla SVD used in GaLore, allowing COAP to function as a seamless, low-overhead replacement for standard optimizers.
Experimental Evaluation
The authors evaluated COAP across a diverse set of tasks and architectures, including ImageNet-1K for vision, the C4 dataset for LLaMA pre-training, and ScienceQA for multimodal fine-tuning.
Key Results
COAP demonstrates significant improvements in both memory efficiency and training speed without sacrificing model performance.
- Memory Reduction: COAP reduced optimizer memory by 61% for LLaMA-1B and up to 81% for LLaVA-7B when combined with 8-bit quantization.
- Speedup: In LLaVA-v1.5-7B fine-tuning, COAP achieved a 4x speedup over GaLore. During LLaMA pre-training, it added only 2% time overhead compared to standard AdamW, significantly outperforming GaLore's 17-21% overhead.
- Performance Parity: COAP consistently matched or exceeded the performance of full-rank AdamW. In challenging tasks like ControlNet-XL training, COAP successfully converged at high compression rates where competing methods failed.
Discussion and Future Work
The success of COAP highlights that subspace continuity is vital for stable low-rank training. By using momentum as a guide, COAP filters noise and focuses on productive update directions. Furthermore, the results prove that a high-fidelity SVD of the full gradient is not strictly necessary; a two-stage projection-then-SVD approach captures sufficient information at a fraction of the cost.
While COAP introduces new hyperparameters—the update interval ($T_u$) and SVD frequency ($\lambda$)—it remains highly compatible with existing techniques like 8-bit optimizers. Future research may explore automated scheduling for these parameters to further optimize the trade-off between compute and memory across novel architectures.
Summary updated