LoRI: Reducing Cross-Task Interference in Multi-Task Low-Rank Adaptation

Juzheng Zhang, Jiacheng You, Ashwinee Panda, Tom Goldstein

TL;DR

This paper introduces LoRI, a novel parameter-efficient fine-tuning (PEFT) method for Large Language Models (LLMs) that significantly reduces trainable parameters and cross-task interference. By freezing LoRA's projection matrices and sparsifying the update matrices, LoRI achieves competitive performance with drastically fewer parameters, enabling more efficient multi-task learning, adapter merging, and continual learning.

What Problem Does This Paper Address?

Large Language Models (LLMs) are powerful but computationally expensive, especially when fine-tuning for specific tasks. Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA aim to reduce this cost by only training a small subset of parameters. However, even LoRA can incur significant overhead and, crucially, suffer from "parameter interference" when adapting a single model to multiple tasks simultaneously. This interference can degrade performance, especially in complex scenarios like merging adapters from different tasks or in continual learning where new task training can overwrite old knowledge. The paper addresses the challenge of making LLM adaptation more efficient and robust to interference in multi-task settings.

Methods

LoRI builds upon the LoRA framework but introduces two key modifications:

  • Freezing Projection Matrices (A): Instead of training both low-rank matrices $A$ and $B$ in LoRA's $\Delta W = AB$ decomposition, LoRI freezes the $A$ matrices as random projections. This means the model only learns how to combine these fixed subspaces via $B$. This significantly reduces the number of trainable parameters and eliminates the need to store gradients for $A$.
  • Sparse Masking for Update Matrices (B): LoRI sparsifies the $B$ matrices using task-specific masks. These masks are generated by identifying and retaining only the highest-magnitude parameters in $B$ across all layers and projections. This targeted update allows for more efficient adaptation and helps isolate task-specific knowledge, reducing interference.

These modifications enable LoRI to:

  • Reduce trainable parameters: By up to 95% compared to LoRA.
  • Minimize cross-task interference: By leveraging the approximate orthogonality of the frozen $A$ matrices and the sparsity in $B$.
  • Support adapter merging: LoRI adapters can be merged more effectively with less performance degradation.
  • Facilitate continual learning: Sparsity in $B$ helps mitigate catastrophic forgetting by isolating parameter updates.

Datasets

The paper uses a variety of standard datasets for evaluation across different domains:

  • Natural Language Understanding (NLU): A collection of eight NLU datasets including BoolQ, PIQA, SocialIQA, ARC-Challenge, ARC-Easy, OpenBookQA, HellaSwag, and Winogrande.
  • Mathematical Reasoning: GSM8K.
  • Code Generation: HumanEval.
  • Safety Alignment: HEx-PHI (measuring refusal rate on harmful queries).
  • Continual Learning: Experiments involve training on safety datasets (Saferpaca) and then adapting to NLU, math, and code tasks.

Key Insights and Ideas

  • The $A$ matrix in LoRA is surprisingly redundant: Freezing the $A$ matrix as a random projection, rather than training it, has minimal impact on performance. This suggests that the primary role of $A$ is to define a subspace, and the learning happens in $B$.
  • Sparsity in $B$ is a powerful regularizer: By only updating a small fraction of $B$'s parameters, LoRI forces the model to focus on the most critical updates, leading to better generalization and reduced interference.
  • Orthogonality is key for adapter merging: The approximate orthogonality induced by frozen random $A$ matrices allows LoRI adapters to be merged with significantly less interference than standard LoRA adapters.
  • Sparsity aids continual learning: The task-specific masks in $B$ create a form of parameter isolation, which is crucial for preventing catastrophic forgetting when learning new tasks sequentially.

Key Results

  • Parameter Efficiency: LoRI-S (with 90% sparsity) uses up to 95% fewer trainable parameters than LoRA. LoRI-D (dense $B$) uses about half the parameters of LoRA.
  • Performance: LoRI-D and LoRI-S achieve performance comparable to or better than full fine-tuning (FFT), LoRA, and other PEFT methods across NLU, math, code, and safety tasks.
  • Code Generation: LoRI-D and LoRI-S consistently outperform FFT, LoRA, and DoRA on code generation tasks. For example, LoRI-D achieves a pass@10 score of 63.2% on HumanEval with Llama-3, outperforming LoRA by 24.4%.
  • Adapter Merging: Concatenated merging with LoRI-D closely matches single-task performance, indicating minimal interference. LoRI-S also shows competitive performance, outperforming LoRA merging methods on code and safety tasks.
  • Continual Learning: LoRI-S demonstrates superior preservation of safety alignment compared to LoRA in continual learning scenarios, significantly mitigating catastrophic forgetting.

Limitations and Future Work

  • Limitations:
    • The paper notes that while LoRI-S performs well, its aggressive sparsity can limit its adaptation capacity compared to LoRI-D.
  • Pruning-based merging methods (magnitude pruning, TIES, DARE) show some performance degradation when applied to LoRI, potentially due to a mismatch between pruning dense $A$ matrices and sparse $B$ matrices.
  • Future Work:
    • Explore structured sparsity patterns (e.g., block sparsity, head pruning) for better hardware compatibility.
  • Extend LoRI to diffusion and vision-language models for multi-modal generation, as the core design is modality-agnostic.
  • Investigate the trade-off between performance on code tasks and other domains during adapter merging, as highlighted in ablation studies.

Summary updated

BibTeX
@inproceedings{zhang2025lori,
  author = {Juzheng Zhang and Jiacheng You and Ashwinee Panda and Tom Goldstein},
  title = {{LoRI: Reducing Cross-Task Interference in Multi-Task Low-Rank Adaptation}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=b8cW86QcOD},
}
Figure