Adaptive Rank, Reduced Forgetting: Continual Learning with Dynamic Rank-Selective LoRA

Haodong Lu, Chongyang Zhao, Jason Xue, Lina Yao, Kristen Moore +1 more
12/1/2024
3 citations
cs.CV
lora-peft-merging

Official code: jeff024/codyra (7 stars, Python, Apache-2.0, last commit 2025-10-25).

Abstract

Continual learning (CL) aims to accumulate knowledge from sequential tasks without catastrophic forgetting. Vision-language models such as CLIP, with strong generalization, are widely used for CL.

Show full abstract

Existing methods often adapt isolated PTM components, increasing inference complexity and limiting model improvement, or rely on replay, stored data, or assumptions, leading to high costs and limited applicability. To advance models as continual learners, we explore CL through natural and efficient PTM updates rather than complex task-specific additions. We study continual low-rank learning and analyze how LoRA ranks and placements affect learning and forgetting. A higher-rank LoRA improves task learning (plasticity) but increases forgetting, while a lower-rank LoRA enhances stability but limits adaptation. We observe a plasticity-stability balance tied to rank across parameters and tasks, with moderately small ranks maximizing CL benefits. Motivated by this, we propose Continual Dynamic Rank-Selective LoRA (CoDyRA), which continually updates PTMs with LoRA adapters of adaptively optimized ranks. The new-task objective drives learning, while sparsity-promoting regularization minimizes ranks to reduce interference and forgetting, achieving a balance tailored to each parameter and task. Although all parameters are updated, the minimized ranks keep the model close to its prior state while enabling effective new-task learning. CoDyRA performs efficient CL as a sequence of LoRA-based updates without storing past data or relying on assumptions, preserving the original model architecture and adding no inference overhead. Experiments show CoDyRA improves new representations while retaining old knowledge, achieving state-of-the-art results. Code is available at https://github.com/jeff024/codyra.

View on arXivView PDF

Code Implementations(1)

jeff024/codyraOfficial100%
Apache-2.0

Official implementation of "Adaptive Rank, Reduced Forgetting: Knowledge Retention in Continual Learning Vision-Language Models with Dynamic Rank-Selective LoRA"

72Python, ShellOct 2, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{lu2024adaptive,
  title  = {Adaptive Rank, Reduced Forgetting: Continual Learning with Dynamic Rank-Selective LoRA},
  author = {Haodong Lu and Chongyang Zhao and Jason Xue and Lina Yao and Kristen Moore and Dong Gong},
  year   = {2024},
  eprint = {2412.01004},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.01004v7}
}

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

Discussion