arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.37767cs.LGcs.CV
收藏

让专家置信度指导LoRA合并:感知边际的频谱适配

Let Expert Confidence Guide LoRA Merging: Margin-Aware Spectral Adaptation

Harvard University(哈佛大学);Sorbonne Université(索邦大学);École Polytechnique(巴黎综合理工学院);CentraleSupélec(中央理工-高等电力学院)

Alexandre Molohio, Gabriel Azpitarte, Zakaria El Ouahidi, Weiyue Li, Yan Luo, Mengyu Wang

AI总结:

本研究提出MASAR方法,利用专家置信度指导LoRA合并,通过边际衡量置信度,仅需1个未标记示例即可实现无标签、无训练的合并,在多任务基准上性能优于现有方法。

摘要:

模型合并将针对不同任务的LoRA专家组合为单一模型,无需重新训练,但代价是专家间会产生干扰。现有方法通过扁平化每个LoRA权重的频谱来减少这种干扰,不过这也会削弱每个专家已学习到的内容。本文表明,扁平化操作应适配专家的置信度:置信度较低的专家完全扁平化时合并效果最佳,而置信度较高的专家则需保留更多自身频谱才能受益。我们提出MASAR,它利用边际(定义为专家前两类得分的差值)来衡量这种置信度。该方法仅需每个任务的1个未标记示例即可计算边际并设置扁平化程度。由于1个示例覆盖的输入方向较少,我们补充了LoRA权重中编码的方向,从而得到闭式合并方案,无需标签、训练或超参数搜索。MASAR可适配不同置信度水平训练的专家,而均匀扁平化则无法做到这一点。在CLIP ViT-B/32上,MASAR的性能优于最佳无标签基准模型超过7个准确率点;它甚至超过了基于标记数据调优的合并方法,在ViT-L/14和Llama-3-8B的语言任务中均取得最佳无标签平均性能。我们的代码可在该https URL获取。

英文摘要:

Model merging combines LoRA experts specialized in different tasks into a single model without retraining, at the cost of interference between them. Recent methods reduce this interference by flattening the spectrum of each LoRA's weights, which can also weaken what each expert has learned. We show that flattening should adapt to the confidence of the experts. Less confident experts merge best when fully flattened, while more confident experts benefit from keeping more of their spectrum. We introduce MASAR, which measures this confidence with the margin, defined as the difference between an expert's top two class scores. Our method needs only one unlabeled example per task to compute this margin and set the amount of flattening. Since one example covers few input directions, we complement it with those encoded in the LoRA weights. This yields a closed-form merge that needs no labels, no training and no hyperparameter search. MASAR thus adapts to experts trained with different levels of confidence, where uniform flattening does not. On CLIP ViT-B/32, MASAR outperforms the best label-free baseline by more than 7 accuracy points. It even surpasses merges tuned on labeled data and gives the best label-free average on both ViT-L/14 and language tasks with Llama-3-8B. Our code is available at https://github.com/Harvard-AI-and-Robotics-Lab/masar-merging

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

↑