NTH

A Margin Perspective on LoRA: Robustness to Catastrophic Forgetting and Adapter Merging (MaLoRA)

AuthorsZiqing Xu, Hancheng Min, Lachlan Ewen MacDonald, Salma Tarmoun, Enrique Mallada, Weijie Su, Rene Vidal

AffiliationsStatistics and Data Science · IDEAS · INS & SMS, Shanghai Jiao Tong University · ESE · AMCS · ECE, Johns Hopkins University

November 24, 2026 2 min read
Watch on YouTube
The one-line take

MaLoRA uses margin theory to explain how LoRA adapters retain old skills and proposes a simple way to merge adapters for multiple tasks.

Key results

93.32%
MaLoRA average normalized accuracy

Average across PACS, VLCS, Terra Incognita, MNLI, Amazon Reviews, and CivilComments.

6.68%
MaLoRA relative accuracy drop

Average relative drop against per-task fine-tuned models across the six benchmarks.

2.35%
Runtime overhead versus Task Arithmetic

Merge-selection runtime overhead under the matched-budget timing protocol.

What the paper found

This paper explains two practical properties of LoRA—reduced catastrophic forgetting and successful adapter merging—through a shared margin-based theory. In multiclass linear classification with near-orthogonal tasks, it characterizes how regularization shapes the optimal adapter: excessive regularization suppresses adaptation, while weaker regularization increases fine-tuning margins at the cost of pre-training margins. For merging, the authors derive task weights from each adapter’s unnormalized margin, then propose MaLoRA, a training-free rule that estimates average margins and selects a global scale on validation data. The theory assumes near-orthogonal features and balanced classes; experiments test its reach beyond linear models using ViT-B/16 and XLM-RoBERTa Base on PACS, VLCS, Terra Incognita, MNLI, Amazon Reviews, and CivilComments. Across these benchmarks, MaLoRA achieves 93.32% average normalized accuracy and a 6.68% relative accuracy drop, matching or exceeding Soup, Task Arithmetic, TIES, and DARE variants. Its merge-selection runtime is 2.35% higher than Task Arithmetic, suggesting the margin-guided approach adds little overhead. The paper also tests OpenAI’s CLIP as a frozen feature extractor on CIFAR-100, alongside other vision backbones, and finds that predicted regularization and mixing choices broadly track empirical optima.

Original abstract

Low-rank adaptation (LoRA) is the de facto method for parameter-efficient fine-tuning of large neural networks, achieving strong task adaptation with minimal trainable parameters and low optimization cost. Beyond this efficiency, practitioners have observed two striking properties: \textit{robustness to catastrophic forgetting} and the ability to \textit{merge independently trained adapters} into a single model that performs competitively across multiple tasks. These properties are central to continual and multi-task learning, yet remain poorly understood. In this work, we provide a theoretical explanation through a unified \textit{margin-based perspective}. We analyze LoRA in multiclass linear classification under a near-orthogonal task regime with $\ell_2$-regularization, and characterize the optimal LoRA adapter across regularization regimes. Our analysis shows that, in an intermediate regime of regularization parameters, the optimal adapter aligns with the \emph{max-margin solution} on the fine-tuning data. Building on this characterization, we derive two key consequences. First, we obtain closed-form expressions for the margins on pre-training and fine-tuning data, revealing a precise margin trade-off: the regularization parameter controls the balance between retention and adaptation. Second, we analyze adapter merging, proving that merged models achieve positive margin on each task and deriving optimal mixing coefficients that balance margins across tasks and maximize the margin over their union. These results lead to a simple, training-free merging rule, which we term \textit{margin-based LoRA merging} (MaLoRA). Experiments on modern architectures and real datasets validate our theoretical predictions, showing that MaLoRA matches or outperforms several adapter-merging baselines across a range of vision and language classification tasks.

Read the original paper

More in Continual Learning

Browse all 33 papers →
03Continual Learning

Are Self-Evolving Agents Continual Learners?

Xiaoyin Chen, Yizheng Huang, Yinglun Xu, Ziyun Zhao, Emmett McQuinn, Julie Liu, Hope Yao

The study finds that current self-evolving AI agents can learn new workflows, but often do so by disrupting what they already know.

Read analysis