NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection

Jiawei Zhao, Zhenyu Zhang, Beidi Chen, Zhangyang Wang, Anima Anandkumar, Yuandong Tian

Introduction

Training Large Language Models (LLMs) is notoriously memory-intensive. While model weights are significant, the "hidden tax" of training comes from optimizer states. For popular optimizers like Adam, momentum and variance must be stored for every single trainable parameter. For a 7B-parameter model, weights require approximately 14GB (in BF16), but optimizer states and gradients can push the total requirement over 58GB. This necessitates expensive enterprise-grade hardware or restrictive techniques like LoRA (Low-Rank Adaptation), which can bottleneck learning by limiting the model to a fixed subspace.

Methodology: Gradient Low-Rank Projection

GaLore (Gradient Low-Rank Projection) addresses this by shifting the low-rank focus from weights to gradients. The method relies on several key components:

  1. Gradient Projection: Leveraging the observation that gradient matrices ($G$) naturally become low-rank during training, GaLore uses Singular Value Decomposition (SVD) to project these matrices into a compact space.
  2. Optimizer in Compact Space: Optimizers like Adam operate entirely within this reduced space, drastically reducing the memory footprint of optimizer states.
  3. Subspace Switching: Unlike LoRA's fixed subspace, GaLore periodically re-computes projection matrices. This allows the model to explore the entire full-rank parameter space over time.
Geometric visualization of GaLore's subspace switching, allowing the model to explore the full-rank parameter space through successive low-rank updates.

Evaluation and Performance

The researchers evaluated GaLore across several demanding benchmarks, including the C4 (Colossal Clean Crawled Corpus) for pre-training LLaMA architectures (60M to 7B parameters) with up to 19.7 billion tokens. For fine-tuning, tasks from GLUE (General Language Understanding Evaluation) and SQuAD were utilized, alongside instruction fine-tuning on OpenAssistant and Belle-1M datasets for models like Gemma-2B and Phi-2.

In these evaluations, GaLore demonstrated performance parity with full-rank training. For instance, on GLUE tasks, GaLore (rank=4) achieved an average score of 85.89, outperforming LoRA (85.61) while maintaining a lower memory profile. In pre-training LLaMA-1B and 7B models, GaLore reached perplexity scores nearly identical to full-rank training, significantly outperforming both LoRA and ReLoRA.

Memory Efficiency and Consumer Hardware

GaLore achieves significant memory savings without sacrificing performance. Specifically, GaLore reduces optimizer state memory by up to 65.5%. When integrated with 8-bit optimization and per-layer updates, it enables the training of a 7B model on a single consumer-grade NVIDIA RTX 4090 (24GB VRAM).

Memory cost comparison across different training strategies. 8-bit GaLore (no retaining grad) is the only method shown to fit within the 24GB limit of an RTX 4090 for a 7B model.

Discussion and Limitations

The theoretical foundation of GaLore rests on the proof that gradient matrices in reversible networks gravitate toward low-rank structures. By "rotating" the low-rank window through subspace switching, GaLore effectively performs full-parameter learning. While highly efficient, GaLore does introduce some SVD overhead (typically <10%) and requires tuning the subspace switching frequency ($T$). Future work may explore quantizing the projection matrices themselves to further push the boundaries of budget-friendly LLM training.

Conclusion

GaLore represents a significant step toward democratizing LLM training. By reducing the memory barrier for full-parameter learning, it allows researchers to train state-of-the-art models on consumer hardware, bridging the gap between resource-constrained environments and large-scale AI development.

Summary updated

BibTeX
@inproceedings{zhao2024galore,
  author = {Jiawei Zhao and Zhenyu Zhang and Beidi Chen and Zhangyang Wang and Anima Anandkumar and Yuandong Tian},
  title = {{GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=hYHsrKDiX7},
}
Figure