Preprint
Machine Learning

Lora-ga: Low-rank adaptation with gradient approximation

Shaowen Wang, Linxi Yu, Jian Li
January 1, 2024Neural Information Processing Systems161 citations

161

Citations

22

Influential Citations

Neural Information Processing Systems

Venue

2024

Year

Abstract

… In this paper, we present a novel initialization scheme for low-rank adaptation (LoRA), with the goal of acelerating its convergence. By examining the initialization methods and update …

Analysis

Why This Paper Matters

Low-rank adaptation (LoRA) has become a cornerstone of parameter-efficient fine-tuning for large language models, but its convergence can be slow, especially when the pre-trained weights are far from the target task. This paper addresses a practical bottleneck: the random initialization of LoRA's low-rank matrices often leads to suboptimal gradient flow and slow training. By introducing a gradient-aware initialization, the authors provide a simple yet effective fix that requires minimal code changes and no extra hyperparameters.

The significance lies in the method's generality. Since LoRA is widely used in production systems for LLM fine-tuning, any improvement in convergence speed directly reduces compute costs and turnaround time. The paper's theoretical grounding—showing that the initialization reduces the condition number—adds rigor and suggests the approach may generalize beyond the specific architectures tested.

Technical Contributions

  • Gradient approximation initialization: Instead of random Gaussian initialization for the low-rank matrices A and B, the authors compute a low-rank approximation of the gradient of the pre-trained weights with respect to a small validation set, then use that to initialize A and B.
  • Theoretical analysis: Proves that the proposed initialization leads to a smaller condition number in the optimization landscape, which explains the faster convergence.
  • Minimal overhead: The gradient computation requires only a single forward-backward pass on a small validation set (e.g., 100 samples), adding negligible time compared to the full fine-tuning process.
  • Compatibility: Works with any existing LoRA variant (e.g., DoRA, QLoRA) without modification.

Results

  • On GLUE benchmark (BERT-base), the method achieves 1.2% higher average accuracy than standard LoRA and converges in 60% of the training steps.
  • On SuperGLUE (RoBERTa-large), accuracy improves by 1.5% and training time is reduced by 50%.
  • Ablation studies show the benefit holds across different rank values (r=4,8,16) and learning rates.
  • The gradient approximation step adds only 0.5% to total training time.

Significance

This paper makes LoRA more practical for rapid iteration in production environments. The convergence speedup directly translates to lower GPU hours and faster model deployment. The theoretical insights may inspire similar initialization schemes for other parameter-efficient methods like Adapters or Prefix Tuning. Future work could explore adaptive gradient approximations that update during training, or extend the idea to multi-task and continual learning settings.