arXiv:2505.22934cs.CLcs.AI2025-05ACL被引 18

解决LoRA模型合并时的任务干扰问题,提升多任务模型稳定性。

Unraveling LoRA Interference: Orthogonal Subspaces for Robust Model Merging

  • 通过正交子空间约束LoRA更新方向,避免任务间参数冲突。
  • 在8个数据集上验证,合并后单任务准确率不下降,多任务性能显著提升。
  • 兼容主流合并方法,对超参数不敏感,适合实际部署场景。

微调大语言模型(LMs)虽能获得良好任务性能,但部署与存储成本高。现有研究尝试通过模型合并将多个专用模型融合为单一多任务模型,无需额外训练。然而,基于低秩适配(LoRA)的微调模型在合并时常出现性能大幅下降。本文揭示该问题源于参数与数据分布间的未被关注的相互作用。为此提出正交子空间鲁棒合并方法(OSRM),在微调前约束LoRA子空间,确保某任务的更新不会影响其他任务的输出。该方法可无缝集成至多数现有合并算法中,有效减少任务间意外干扰。在三个常用小模型和两个大模型上,于8个数据集进行的实验表明,本方法不仅提升合并后性能,还保持单任务准确率。此外,对合并超参数更具鲁棒性。结果强调了数据-参数交互在模型合并中的重要性,提供了一种即插即用的LoRA模型合并方案。

原文摘要 · Abstract (English)

Fine-tuning large language models (LMs) for individual tasks yields strong performance but is expensive for deployment and storage. Recent works explore model merging to combine multiple task-specific models into a single multi-task model without additional training. However, existing merging methods often fail for models fine-tuned with low-rank adaptation (LoRA), due to significant performance degradation. In this paper, we show that this issue arises from a previously overlooked interplay between model parameters and data distributions. We propose Orthogonal Subspaces for Robust model Merging (OSRM) to constrain the LoRA subspace *prior* to fine-tuning, ensuring that updates relevant to one task do not adversely shift outputs for others. Our approach can seamlessly integrate with most existing merging algorithms, reducing the unintended interference among tasks. Extensive experiments on eight datasets, tested with three widely used LMs and two large LMs, demonstrate that our method not only boosts merging performance but also preserves single-task accuracy. Furthermore, our approach exhibits greater robustness to the hyperparameters of merging. These results highlight the importance of data-parameter interaction in model merging and offer a plug-and-play solution for merging LoRA models.

模型合并LoRA多任务学习鲁棒性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。