paper-with-me

홈 › Papers

Q-GaLore: Quantized GaLore with INT4 Projection and Layer-Adaptive Low-Rank Gradients

2024-07-11 · Zhenyu Zhang, Ajay Jaiswal, Lu Yin, Shiwei Liu, Jiawei Zhao, Yuandong Tian, Zhangyang Wang

Training Large Language Models (LLMs) is memory-intensive due to the large number of parameters and associated optimization states. GaLore, a recent method, reduces memory usage by projecting weight gradients into a low-rank subspace without compromising performance. However, GaLore relies on time-consuming Singular Value Decomposition (SVD) operations to identify the subspace, and the frequent subspace updates lead to significant training time overhead. Moreover, GaLore offers minimal improvements in accuracy and efficiency compared to LoRA in more accessible fine-tuning scenarios. To address these limitations, we introduce Q-Galore, a novel approach that substantially reduces memory usage by combining quantization and low-rank projection, surpassing the benefits of GaLore. Our method is based on two key observations: (i) the gradient subspace exhibits diverse properties, with some layers converging early in training while others are subject to frequent changes; (ii) the projection matrices are highly resilient to low-bit quantization. Leveraging these insights, Q-GaLore adaptively updates the gradient subspace based on its convergence statistics, achieving comparable performance while significantly reducing the number of SVD operations. We maintain the projection matrices in INT4 format and weights in INT8 format, incorporating stochastic rounding to capture accumulated gradient information. This approach enables a high-precision training trajectory using only low-precision weights. We demonstrate that Q-GaLore achieves highly competitive performance with exceptional memory efficiency. At pre-training, Q-GaLore facilitates training a LLaMA-7B model from scratch on a single NVIDIA RTX 4060 Ti with only 16 GB memory. At fine-tuning, it reduces memory consumption by up to 50% compared to LoRA and GaLore, while consistently outperforming QLoRA at the same memory cost.

📄 PDF Abstract BibTeX arXiv:2407.08296

Code (2)

VITA-Group/Q-GaLore 공식 구현 pytorch
jiaweizzhao/galore pytorch

Tasks

Quantization

Similar Papers 제목 키워드 기반

GaLore$+$: Boosting Low-Rank Adaptation for LLMs with Cross-Head Projection

2024-12-15 · Xutao Liao, Shaohui Li, Yuhui Xu, Zhi Li 외

Recent low-rank training methods, such as GaLore, have significantly reduced the memory required to optimize large language models (LLMs). However, these methods often suffer from time-consuming low-rank projection estim…

Arithmetic ReasoningText Generation

Unbiased Gradient Low-Rank Projection

2025-10-20 · Rui Pan, Yang Luo, Yuxing Liu, Yang You 외 arxiv

Memory-efficient optimization is critical for training increasingly large language models (LLMs). A popular strategy involves gradient low-rank projection, storing only the projected optimizer states, with GaLore being a…

Subspace Optimization for Large Language Models with Convergence Guarantees

2024-10-15 · Yutong He, Pengrui Li, Yipeng Hu, Chuyan Chen 외

Subspace optimization algorithms, such as GaLore (Zhao et al., 2024), have gained attention for pre-training and fine-tuning large language models (LLMs) due to their memory efficiency. However, their convergence guarant…

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

2024-03-06 · Jiawei Zhao, Zhenyu Zhang, Beidi Chen, Zhangyang Wang 외

Training Large Language Models (LLMs) presents significant memory challenges, predominantly due to the growing size of weights and optimizer states. Common memory-reduction approaches, such as low-rank adaptation (LoRA),…

Natural GaLore: Accelerating GaLore for memory-efficient LLM Training and Fine-tuning

2024-10-21 · Arijit Das

Training LLMs presents significant memory challenges due to growing size of data, weights, and optimizer states. Techniques such as data and model parallelism, gradient checkpointing, and offloading strategies address th…

parameter-efficient fine-tuning