C-LoRA: Continual Low-Rank Adaptation for Pre-trained Visual Models

Xin Zhang, Liang Bai, Xian YangNeurIPS 2026

TL;DR

Teaching a pre-trained vision model a sequence of new tasks using a single Low-Rank Adaptation (LoRA) module usually triggers catastrophic forgetting—not because the module lacks memory capacity, but because the math of gradient descent accidentally targets and overwrites its most important subspaces. C-LoRA fixes this by inserting a tiny, decoupled "routing matrix" into a single, fixed-size LoRA adapter to act as a traffic controller for gradients. The result: state-of-the-art continual learning without an ever-expanding pile of task-specific adapters.

What Problem Does This Paper Address?

Pre-trained Vision Transformers (ViTs) are fantastic out of the box, and Low-Rank Adaptation (LoRA) makes fine-tuning them cheap by freezing the main weights and updating two tiny low-rank matrices, $\mathbf{A}$ and $\mathbf{B}$.

However, life is dynamic. When you train a model on a sequence of tasks over time (continual learning), a single LoRA adapter suffers from catastrophic forgetting—learning cars today wipes out the birds it learned yesterday.

Until now, researchers treated this as a capacity problem. The standard workaround is to spawn a brand-new LoRA adapter for every incoming task, either keeping a growing pool of modules or incrementally merging them. This leads to linear parameter bloat and annoying inference overhead (having to route or fuse modules on the fly). The authors ask a fundamental question: Why does a single LoRA forget so fast even when it has enough capacity, and can we fix the root cause inside a single, fixed-size adapter?

Methods

Standard LoRA computes weight updates as $\Delta \mathbf{W} = \mathbf{A}\mathbf{B}$, which is mathematically equivalent to summing up $r$ rank-one subspaces ($\mathbf{a}_i \mathbf{b}_i^\top$) with a uniform, invisible weight of $1$. Because every subspace is weighted equally, LoRA cannot tell which ones hold vital past memories and which ones are free to be overwritten.

Standard LoRA vs. C-LoRA routing and the gradient amplification trap

C-LoRA introduces three clever modifications inside the MLP blocks of a frozen ViT:

  1. A Learnable Routing Matrix ($\boldsymbol{\mathcal{R}}$): Instead of $\mathbf{A}\mathbf{B}$, the update becomes $\mathbf{A}\boldsymbol{\mathcal{R}}\mathbf{B}$, where $\boldsymbol{\mathcal{R}}$ is a tiny $r \times r$ matrix. This allows cross-subspace interactions ($\mathbf{a}_i \mathbf{b}_j^\top$) and lets the model assign high weights to important subspaces.
  2. Decoupled Routing ($\boldsymbol{\mathcal{R}}_{\text{base}} + \boldsymbol{\mathcal{R}}_{\delta}$): Simply adding $\boldsymbol{\mathcal{R}}$ creates a trap (explained below) where high weights in $\boldsymbol{\mathcal{R}}$ amplify destructive gradients into $\mathbf{A}$ and $\mathbf{B}$. To break this link, the authors split $\boldsymbol{\mathcal{R}}$ into a frozen stability matrix ($\boldsymbol{\mathcal{R}}_{\text{base}}$) that stores consolidated past knowledge using a stop-gradient operator, and a trainable plasticity matrix ($\boldsymbol{\mathcal{R}}_{\delta}$, initialized near zero) that learns the new task. After each task, $\boldsymbol{\mathcal{R}}_{\delta}$ is folded into $\boldsymbol{\mathcal{R}}_{\text{base}}$.
  3. Importance-Aware Subspace Gating ($\boldsymbol{\Gamma}$): Even with $\boldsymbol{\mathcal{R}}_{\text{base}}$ frozen, $\boldsymbol{\mathcal{R}}_{\delta}$ might still tweak subspaces heavily relied upon by older tasks. C-LoRA measures the magnitude of entries in $\boldsymbol{\mathcal{R}}_{\text{base}}$ and applies a soft sigmoid gate ($\boldsymbol{\Gamma}$) during backpropagation, suppressing gradients in "busy" dimensions while letting unused dimensions adapt freely.

Finally, because raw past data isn't available in class-incremental learning, the authors adopt a standard second stage: modeling the mean and covariance of past class features from the frozen backbone to synthetically align the final classification layer.

Datasets

Using a ViT-B/16 backbone pre-trained on ImageNet-21K, the authors evaluate C-LoRA across five established continual learning benchmarks—no new datasets are introduced, allowing apples-to-apples comparisons. The primary benchmarks (split into 5, 10, and 20 sequential sessions) are:

  • CIFAR-100 (general object recognition, 100 classes)
  • ImageNet-A (challenging, natural adversarial examples, 200 classes)
  • CUB-200 & Car196 (fine-grained classification of 200 bird species and 196 car models, respectively)
  • ImageNet-R (200 classes with artistic/stylistic renditions, used in ablations)

Key Insights and Ideas

  • The "Hotspot" Paradox (Theorem 1): This is the paper's core aha! moment. When you introduce a routing matrix $\boldsymbol{\mathcal{R}}$ to prioritize subspaces, backpropagation scales the gradients flowing into the shared bases $\mathbf{A}$ and $\mathbf{B}$ by the norm of $\boldsymbol{\mathcal{R}}$. Consequently, the subspaces with the largest weights—the exact ones holding your most precious past knowledge—suffer the strongest gradient perturbations during new tasks!
  • Stability is a Gradient Flow Problem, Not a Capacity Problem: By stopping gradients through $\boldsymbol{\mathcal{R}}_{\text{base}}$ and routing new updates solely through a near-zero $\boldsymbol{\mathcal{R}}_{\delta}$, C-LoRA mathematically bounds gradient magnitudes (Theorem 2) and strictly reduces gradient variance (Theorem 3). Updates spread out evenly across the adapter instead of hammering old hotspots.

Key Results

Across 10 incremental sessions, C-LoRA (with a fixed rank of $r=20$) outperforms both prompt-based methods and expanding-LoRA baselines across all benchmarks:

  • High Accuracy, Especially on Fine-Grained Tasks: C-LoRA hits 91.70% final accuracy on CIFAR-100, 63.86% on ImageNet-A, 89.93% on CUB-200, and 70.73% on Car196 (beating LoRA-expansion methods like SD-LoRA by over 18 percentage points on CUB-200 and Car196).
  • Constant Parameter Footprint: In a 20-task setting, expanding LoRA methods balloon linearly—EASE requires 23.6M parameters, and InfLoRA/SD-LoRA require 7.4M. C-LoRA uses a flat 0.36M parameters regardless of whether you train it on 2 tasks or 20, with zero module-selection overhead at inference.
  • Component Synergy: Ablations show that removing decomposition and gating causes severe forgetting (Backward Transfer drops to $-28.90$ on ImageNet-A), while adding them brings it up to $-9.77$. Even without Stage 2 feature resampling, C-LoRA still beats all LoRA-expansion baselines.

Limitations and Future Work

Not discussed in the paper. (Note: While the paper omits a dedicated limitations section, a natural practical boundary of any fixed-rank adapter is what happens if task sequences stretch into the hundreds or thousands, potentially saturating all $r^2$ gated routing entries—an intriguing open question for future work!)

Summary updated

Abstract

Pre-trained visual models have become fundamental in computer vision, but they face challenges in continual learning scenarios where data and tasks evolve over time. Low-Rank Adaptation (LoRA) offers efficient fine-tuning capabilities but remains limited for such dynamic environments. Standard LoRA cannot distinguish important subspaces, causing critical knowledge to be overwritten in sequential training. Existing approaches address this by dynamically expanding the set of LoRA adapters—either maintaining a growing pool of task-specific modules or merging new adapters into prior ones—at the cost of unbounded parameter growth or increasing inference complexity. We propose Continual Low-Rank Adaptation (C-LoRA), a method that enables a single, shared LoRA adapter to handle sequential tasks without catastrophic forgetting—without requiring any module selection or fusion at inference. The core of C-LoRA is a learnable routing matrix $\boldsymbol{\mathcal{R}}$ that explicitly controls how each rank-one subspace contributes to the weight update. This matrix is decomposed into a stability component ($\boldsymbol{\mathcal{R}} _ {\text{base}}$), which preserves knowledge from prior tasks, and a plasticity component ($\boldsymbol{\mathcal{R}} _ {\delta}$), which drives adaptation to the current task—providing direct control over the stability-plasticity trade-off. We analyze how $\boldsymbol{\mathcal{R}}$ governs gradient flow during sequential training, and demonstrate competitive performance across multiple benchmarks.
BibTeX
@inproceedings{zhang2026c,
  author = {Xin Zhang and Liang Bai and Xian Yang},
  title = {{C-LoRA: Continual Low-Rank Adaptation for Pre-trained Visual Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=nf0YHUKcRr},
}
Figure