GoRA: Gradient-driven Adaptive Low Rank Adaptation

Haonan He, Peng Ye, Yuchen Ren, Yuan Yuan, Luyang Zhou +2 more
2/13/2025
cs.LGcs.AIcs.CL

Official code: hhnqqq/MyTransformers (61 stars, last commit 2026-03-25).

Abstract

Low-Rank Adaptation (LoRA) is a crucial method for efficiently fine-tuning large language models (LLMs), with its effectiveness influenced by two key factors: rank selection and weight initialization. While numerous LoRA variants have been proposed to improve performance by addressing one of these aspects, they often compromise usability or computational efficiency. In this paper, we analyze and identify the core limitations of existing approaches and propose a novel framework--GoRA (Gradient-driven Adaptive Low Rank Adaptation)--that simultaneously adapts both the rank and initialization strategy within a unified framework. GoRA leverages gradient information during training to dynamically assign optimal ranks and initialize low-rank adapter weights in an adaptive manner. To our knowledge, GoRA is the first method that not only addresses the limitations of prior approaches--which often focus on either rank selection or initialization in isolation--but also unifies both aspects within a single framework, enabling more effective and efficient adaptation. Extensive experiments across various architectures and modalities show that GoRA consistently outperforms existing LoRA-based methods while preserving the efficiency of vanilla LoRA. For example, when fine-tuning Llama3.1-8B-Base for mathematical reasoning, GoRA achieves a 5.13-point improvement over standard LoRA and even outperforms full fine-tuning by 2.05 points under high-rank settings. Code is available at: https://github.com/hhnqqq/MyTransformers.

View on arXivView PDF

Code Implementations(1)

This repository provides a comprehensive library for parallel training and LoRA algorithm implementations, supporting multiple parallel strategies and a rich collection of LoRA variants. It serves as a flexible and efficient model fine-tuning toolkit for researchers and developers. Please contact [email protected] for detailed information.

619Shell, PythonAug 8, 20247 months ago

Similar Papers

Cite this paper

@article{he2025gora,
  title  = {GoRA: Gradient-driven Adaptive Low Rank Adaptation},
  author = {Haonan He and Peng Ye and Yuchen Ren and Yuan Yuan and Luyang Zhou and Shucun Ju and Lei Chen},
  year   = {2025},
  eprint = {2502.12171},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12171v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.12171.svg)](https://codeofpaper.com/paper/2502.12171)

Discussion