[Paper Review] LoRA-FA: Memory-efficient Low-rank Adaptation for Large Language Models Fine-tuning
LoRA-FA freezes the pretrained W and the A projection while updating only B, placing weight changes in a low-rank space and greatly reducing activation memory and trainable parameters with near-parity to full fine-tuning and LoRA performance.
The low-rank adaptation (LoRA) method can largely reduce the amount of trainable parameters for fine-tuning large language models (LLMs), however, it still requires expensive activation memory to update low-rank weights. Reducing the number of LoRA layers or using activation recomputation could harm the fine-tuning performance or increase the computational overhead. In this work, we present LoRA-FA, a memory-efficient fine-tuning method that reduces the activation memory without performance degradation and expensive recomputation. LoRA-FA chooses to freeze the projection-down weight of $A$ and update the projection-up weight of $B$ in each LoRA layer. It ensures the change of model weight reside in a low-rank space during LLMs fine-tuning, while eliminating the requirement to store full-rank input activations. We conduct extensive experiments across multiple model types (RoBERTa, T5, LLaMA) and model scales. Our results show that LoRA-FA can always achieve close fine-tuning accuracy across different tasks compared to full parameter fine-tuning and LoRA. Furthermore, LoRA-FA can reduce the overall memory cost by up to 1.4$ imes$ compared to LoRA.
Motivation & Objective
- Motivate memory-efficient fine-tuning of large language models (LLMs) beyond standard LoRA limits.
- Propose LoRA-FA, which freezes W and A and updates only B to reduce activation memory.
- Demonstrate that LoRA-FA maintains comparable fine-tuning accuracy across models and tasks.
- Show memory savings and robustness of LoRA-FA across model scales and tasks.
Proposed method
- Formulate LoRA-FA by freezing both W and the projection-down A, and updating only the projection-up B.
- Represent weight changes as ΔW = AB, with A fixed and B learned, constraining ΔW to the column space of A.
- Analyze memory efficiency: trainable parameters scale as n_r/2 = 9drL and activation memory depends on the low-rank input XA.
- Show that LoRA-FA requires storing only the low-rank input of XA to compute ∂B, reducing activation memory.
- Discuss compatibility with other memory optimizations such as quantization, sharding, and selective recomputation.
Experimental results
Research questions
- RQ1Can LoRA-FA achieve fine-tuning performance close to full-parameter fine-tuning and LoRA across encoder-only, encoder-decoder, and decoder-only models?
- RQ2To what extent does freezing A and W reduce activation memory and overall memory usage during fine-tuning?
- RQ3How robust is LoRA-FA to hyper-parameter choices like rank r and learning rate η across different model families and tasks?
- RQ4How does LoRA-FA interact with other memory-optimization techniques (quantization, sharding, activation recomputation) in practice?
Key findings
- LoRA-FA achieves close accuracy to full-parameter fine-tuning and LoRA across RoBERTa, T5, and LLaMA tasks.
- LoRA-FA reduces trainable parameters to about 1.5% of full parameters in RoBERTa-base and 1.0–1.6% in RoBERTa-large depending on setup.
- LoRA-FA reduces peak GPU memory usage compared to LoRA and FT, with reported examples including a reduction from 56GB to 27.5GB for LLaMA-7B, and average savings of 3–7GB across several configurations.
- LoRA-FA can reduce activation memory by up to 2048x in a linear layer of LLaMA-65B with rank 4, in terms of activation storage.
- LoRA-FA shows robustness to hyper-parameters, with similar performance patterns to LoRA when varying rank and learning rate.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.