Gated Integration of Low-Rank Adaptation for Continual Learning of Large Language Models

Yan-Shuo Liang, Jia-Rui Chen, Wu-Jun Li
5/1/2025
19 citations
lora-peft-merging

Official code: liangyanshuo/gainlora (28 stars, Python, last commit 2025-11-27).

Abstract

Continual learning (CL), which requires the model to learn multiple tasks sequentially, is crucial for large language models (LLMs). Recently, low-rank adaptation~(LoRA), one of the most representative parameter-efficient fine-tuning (PEFT) methods, has gained increasing attention in CL of LLMs.

Show full abstract

However, most existing CL methods based on LoRA typically expand a new LoRA branch to learn each new task and force the new and old LoRA branches to influence old tasks equally, potentially leading to forgetting. In this work, we propose a new method, called gated integration of low-rank adaptation (GainLoRA), for CL of LLMs. GainLoRA expands a new LoRA branch for each new task and introduces gating modules to integrate the new and old LoRA branches. Furthermore, GainLoRA leverages the new gating module to minimize the influence from the new LoRA branch to old tasks, effectively mitigating forgetting and improving the model's overall performance. Experimental results on CL benchmarks demonstrate that GainLoRA outperforms existing state-of-the-art methods.

View on arXivView PDF

Code Implementations(1)

This is the official implementation of our NeurIPS 2025 paper "Gated Integration of Low-Rank Adaptation for Continual Learning of Large Language Models".

284Python, ShellMay 21, 20251 years ago

Similar Papers

Cite this paper

@article{liang2025gated,
  title  = {Gated Integration of Low-Rank Adaptation for Continual Learning of Large Language Models},
  author = {Yan-Shuo Liang and Jia-Rui Chen and Wu-Jun Li},
  year   = {2025},
  eprint = {2505.15424},
  archivePrefix = {arXiv},
  doi    = {10.52202/085713-2310},
  url    = {https://doi.org/10.52202/085713-2310},
  journal = {Neural Information Processing Systems}
}

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/2505.15424.svg)](https://codeofpaper.com/paper/2505.15424)

Discussion