LoRA in LoRA: Towards Parameter-Efficient Architecture Expansion for Continual Visual Instruction Tuning

Chang Che, Ziqi Wang, Pengwan Yang, Cheems Wang, Hui Ma, Zenglin Shi

TL;DR

LiLoRA (LoRA in LoRA) is a parameter-efficient architecture expansion method designed to help Multimodal Large Language Models (MLLMs) learn new visual tasks sequentially without forgetting old ones. By sharing redundant low-rank components across tasks and applying a second layer of low-rank decomposition to task-specific weights, LiLoRA achieves state-of-the-art performance while reducing parameter overhead by over 50% compared to standard expansion methods.

What Problem Does This Paper Address?

The authors tackle Continual Visual Instruction Tuning (CVIT). In a real-world setting, we want MLLMs to learn new capabilities (like specialized medical VQA or new image captioning styles) over time. However, these models suffer from catastrophic forgetting: as they learn Task B, the weights shift, and they lose the ability to perform Task A.

Existing solutions generally fall into two camps:

  1. Static Architectures: Use a fixed set of parameters (like Mixture-of-Experts) to route different tasks. These struggle to scale as the number of diverse tasks grows.
  2. Architecture Expansion: Add new modules for every new task. This prevents interference but leads to "parameter explosion," where the model size grows linearly and inefficiently with every new task learned.

The challenge is to find a "Goldilocks" zone: an expansion method that provides enough isolation to prevent forgetting but is lightweight enough to scale to many tasks.

Methods

LiLoRA builds on the popular Low-Rank Adaptation (LoRA) technique, which updates weights using two low-rank matrices, $A$ and $B$ (where $\Delta W = BA$). The authors introduce three key innovations:

  1. Task-Invariant Matrix $A$ Sharing: Through Centered Kernel Alignment (CKA) analysis, the authors found that the $A$ matrix in LoRA often captures similar features across different tasks. LiLoRA shares a single matrix $A$ across all tasks, significantly reducing redundancy.
  2. LoRA in LoRA (Matrix $B$ Decomposition): Instead of adding a full new $B$ matrix for every task, they decompose $B$ into a shared basis ($B_0$) and a task-specific residual. This residual is itself a low-rank product of two even smaller matrices ($\tilde{B}_i$ and $\tilde{A}_i$). This nested decomposition is the namesake "LoRA in LoRA."
  3. Cosine-Regularized Basis Stability Loss: To prevent the shared basis $B_0$ from drifting too far (which would cause forgetting in earlier tasks), they introduce a loss function ($\mathcal{L}_{reg}$) that penalizes updates to $B_0$ based on the cosine similarity between the current task's representation and the previous one.
  4. Learnable Fusion: A learnable coefficient $\alpha$ dynamically balances the contribution of the shared knowledge ($B_0$) and the task-specific knowledge ($\tilde{B}_i\tilde{A}_i$).

Datasets

The authors evaluated LiLoRA using the CVIT Benchmark, which consists of six diverse instruction-following datasets:

  • ScienceQA: Scientific question answering.
  • TextVQA: Reasoning about text within images.
  • Flickr30k: Image captioning.
  • ImageNet: Image classification in an instruction format.
  • GQA: Visual reasoning and multi-step QA.
  • VQAv2: General visual question answering.

They tested the model in two settings: Single-type (one task type at a time) and Five-type (mixing multiple task types in a sequence).

Key Insights and Ideas

  • Redundancy is the Enemy: The "aha moment" came from realizing that in standard LoRA expansion, the $A$ matrices are highly correlated across tasks. By freezing/sharing $A$, you lose very little expressivity but save massive amounts of storage.
  • Hierarchical Knowledge: The decomposition of $B$ suggests that task-specific knowledge is often just a small "tweak" on top of a shared foundation.
  • Stability through Geometry: Using cosine similarity for regularization is more effective than simple distance-based penalties (like EWC) because it focuses on the direction of the weight updates, preserving the underlying representational structure.

Key Results

  • Superior Performance: On the CVIT benchmark, LiLoRA outperformed the previous state-of-the-art (SMoLoRA) by +1.44% in Average Performance (AP) and +2.85% in Mean Average Performance (MAP).
  • Reduced Forgetting: LiLoRA showed significantly lower Backward Transfer (BWT) scores, meaning it retained old knowledge much better than standard fine-tuning or MoE-based methods.
  • Extreme Efficiency: Compared to "Direct LoRA Expansion" (adding a full LoRA pair per task), LiLoRA reduced the total parameter count by 54% and the per-task overhead by 70% (from ~357MB down to ~104MB per task for a 7B model).
  • Generalizability: While primarily tested on LLaVA-v1.5, the authors demonstrated that the method also works effectively on the newer Qwen2-VL architecture.

Limitations and Future Work

  • Task ID Dependency: Like most architecture expansion methods, LiLoRA requires knowing the Task ID during inference to select the correct task-specific matrices ($\tilde{B}_i, \tilde{A}_i$). Developing a "task-free" version that can automatically route inputs would be a significant next step.
  • Shared Basis Saturation: While the stability loss helps, there may be a limit to how much diverse information the shared basis $B_0$ can hold before it becomes a bottleneck for very long sequences of highly dissimilar tasks.
  • Computational Overhead: Although parameter-efficient in terms of storage, the fusion mechanism and multiple matrix multiplications add a small amount of computational complexity during the forward pass compared to a single LoRA adapter.

Summary updated

BibTeX
@inproceedings{che2026lora,
  author = {Chang Che and Ziqi Wang and Pengwan Yang and Cheems Wang and Hui Ma and Zenglin Shi},
  title = {{LoRA in LoRA: Towards Parameter-Efficient Architecture Expansion for Continual Visual Instruction Tuning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i24.39082},
}
Figure