跳到正文
arXiv (AI + Vision + Imaging)· Ziqing Xu, Hancheng Min, Lachlan Ewen MacDonald, Salma Tarmoun, Enrique Mallada, Weijie Su, Rene Vidal·· 15 天前AI 评分22

从间隔视角理解LoRA:MaLoRA对灾难性遗忘的鲁棒性与适配器合并

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

AI 导读

研究从间隔(margin)视角为LoRA的两大特性提供理论解释:对灾难性遗忘的鲁棒性和独立训练适配器的可合并性。在多类线性分类的近正交任务设定下,分析得出最优适配器在中间正则化区间对齐最大间隔解,并据此推导出免训练的合并规则MaLoRA。在视觉与语言分类任务上,MaLoRA匹配或优于多个适配器合并基线。

正文 · 原文

arXiv:2611.14397v1 Announce Type: new 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org