arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2611.14397cs.LG
收藏

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

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

University of Pennsylvania(宾夕法尼亚大学);Shanghai Jiao Tong University(上海交通大学);Johns Hopkins University(约翰斯·霍普金斯大学)

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

AI总结:

本研究从间隔视角解释LoRA对灾难性遗忘的鲁棒性及适配器合并特性,提出MaLoRA合并规则,经实验验证其在多类分类任务上的性能优于或相当于现有基线。

摘要:

低秩适配(LoRA)是大型神经网络参数高效微调的事实标准方法,仅用少量可训练参数即可实现出色的任务适配,且优化成本低。除了这种效率优势,从业者还观察到两个显著特性:对灾难性遗忘的鲁棒性,以及将独立训练的适配器合并为单个模型的能力,该模型在多个任务上仍具有竞争力。这些特性对持续学习和多任务学习至关重要,但尚未得到充分理解。本研究通过统一的基于间隔的视角提供了理论解释。我们在具有ℓ₂正则化的近正交任务 regime 下,对多类线性分类中的LoRA进行分析,并刻画了不同正则化 regime 下的最优LoRA适配器。分析表明,在正则化参数的中间 regime 中,最优适配器与微调数据上的最大间隔解一致。基于该刻画,我们推导了两个关键结论:第一,我们得到了预训练和微调数据上间隔的闭式表达式,揭示了精确的间隔权衡:正则化参数控制保留与适配之间的平衡;第二,我们分析了适配器合并,证明合并后的模型在每个任务上都能获得正间隔,并推导了最优混合系数,该系数平衡各任务的间隔并最大化其并集上的间隔。这些结果催生了一种简单的、无需训练的合并规则,我们将其命名为基于间隔的LoRA合并(MaLoRA)。在现代架构和真实数据集上的实验验证了我们的理论预测,表明MaLoRA在一系列视觉和语言分类任务上与多个适配器合并基线相当或表现更优。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑