arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.12808cs.LGcs.AIcs.CL
收藏

基于不确定性梯度匹配的模型合并

Model Merging by Uncertainty-Based Gradient Matching

Technical University of Darmstadt(达姆施塔特工业大学);Hessian Center for AI (hessian.AI)(黑森人工智能中心);RIKEN Center for Advanced Intelligence Project(理化学研究所先进智能项目中心);University of Edinburgh(爱丁堡大学)

Nico Daheim, Thomas Möllenhoff, Edoardo Maria Ponti, Iryna Gurevych, Mohammad Emtiyaz Khan

AI总结:

本文揭示了加权平均合并模型的不准确性与梯度不匹配有关,提出基于不确定性的梯度匹配方案以减少不匹配,在大型语言模型和视觉Transformer上实现了性能与鲁棒性的一致提升。

摘要:

在不同数据集上训练的模型可以通过对其参数进行加权平均来合并,但为什么有效以及何时会失败?在此,我们将加权平均的不准确性与梯度不匹配联系起来,并提出一种新的基于不确定性的方案,通过减少不匹配来提升性能。这一联系也揭示了其他方案(如平均、任务算术和Fisher加权平均)中的隐含假设。我们的新方法在大型语言模型和视觉Transformer上,在性能和对超参数的鲁棒性方面均带来了一致的提升。代码可在此获取。

英文摘要:

Models trained on different datasets can be merged by a weighted-averaging of their parameters, but why does it work and when can it fail? Here, we connect the inaccuracy of weighted-averaging to mismatches in the gradients and propose a new uncertainty-based scheme to improve the performance by reducing the mismatch. The connection also reveals implicit assumptions in other schemes such as averaging, task arithmetic, and Fisher-weighted averaging. Our new method gives consistent improvements for large language models and vision transformers, both in terms of performance and robustness to hyperparameters. Code available here.

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

↑