arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.09832cs.LG
收藏

Fisher-Weighted Averaging合并模型

Merging Models with Fisher-Weighted Averaging

University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校)

Michael Matena, Colin Raffel

摘要:

对具有相同架构和初始化的模型的参数进行平均可以提供组合它们各自的能力的手段。在本文中,我们认为这种“合并”操作可以看作是选择近似最大化模型参数后验的联合似然的参数。因此,计算模型参数的简单平均值相当于对其后验进行各向同性高斯近似。我们开发了一种替代合并程序的基础上拉普拉斯近似,我们近似每个模型的后验作为高斯分布,其精度矩阵对应于其Fisher信息。我们首先表明,我们的“费舍尔合并”技术提供了一个性能提升的设置,简单的参数平均值,目前使用-具体来说,强大的微调和模型集成。然后,我们将合并与标准的基于梯度的迁移学习进行比较,并证明合并可以实现一种根本不同的跨模型迁移能力的方法。具体来说,我们表明,费舍尔合并是有竞争力的基于梯度的迁移学习方法(同时显着便宜)在中间任务训练和域自适应预训练。我们还表明,我们的合并过程使得有可能结合模型在以前未探索的方式。我们发布我们的代码,以促进未来的研究合并模型的方法。

英文摘要:

Averaging the parameters of models that have the same architecture and initialization can provide a means of combining their respective capabilities. In this paper, we take the perspective that this "merging" operation can be seen as choosing parameters that approximately maximize the joint likelihood of the posteriors of the models' parameters. Computing a simple average of the models' parameters therefore corresponds to making an isotropic Gaussian approximation to their posteriors. We develop an alternative merging procedure based on the Laplace approximation where we approximate each model's posterior as a Gaussian distribution whose precision matrix corresponds to its Fisher information. We first show that our "Fisher merging" technique provides a performance boost in settings where simple parameter averaging is currently used -- specifically, robust fine-tuning and model ensembling. Then, we compare merging to standard gradient-based transfer learning and demonstrate that merging enables a fundamentally different method for transferring capabilities across models. Specifically, we show that Fisher merging is competitive with gradient-based transfer learning approaches (while being significantly cheaper) in intermediate-task training and domain-adaptive pre-training. We also show that our merging procedure makes it possible to combine models in previously unexplored ways. We release our code to facilitate future research into methods for merging models.

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

↑