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.
Generalizing the Geometry of Model Merging Through Frechet Averages
Faculty of Computer Science, Dalhousie University(达尔豪斯大学计算机科学学院);Vector Insitute for Artificial Intelligence(向量人工智能研究所);Schulich School of Engineering, University of Calgary(卡莱尔大学谢尔奇工程学院);Department of Computer Science and Software Engineering, Concordia University(康科迪亚大学计算机科学与软件工程系);Mila - Quebec AI Institute(魁北克人工智能研究所)
MagMax: Leveraging Model Merging for Seamless Continual Learning
IDEAS NCBR;Warsaw University of Technology(华沙工业大学);Autonomous University of Barcelona(巴塞罗那自治大学);Computer Vision Center(计算机视觉中心);Tooploox;Gdańsk University of Technology(格但斯克工业大学)
DeepMerge II: Building Robust Deep Learning Algorithms for Merging Galaxy Identification Across Domains
Fermi National Accelerator Laboratory(费米国家加速器实验室);University of Chicago(芝加哥大学);Argonne National Laboratory(阿贡国家实验室);Oak Ridge National Laboratory(橡树岭国家实验室);Space Telescope Science Institute(太空望远镜科学研究所);Kavli Institute for Cosmological Physics(卡夫利宇宙物理研究所)
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(爱丁堡大学)
Weight Scope Alignment: A Frustratingly Easy Method for Model Merging
School of Artificial Intelligence, Nanjing University(南京大学人工智能学院);National Key Laboratory for Novel Software Technology, Nanjing University(南京大学新型软件技术国家重点实验室)
A Novel Hierarchical Integration Method for Efficient Model Merging in Medical LLMs
Deakin Cyber Research(德肯网络研究);Innovation Centre Deakin University / Universal Higher Education Melbourne, Australia(德肯大学创新中心/通用高等教育墨尔本,澳大利亚);School of IT(信息科技学院);Engineering Melbourne Institute of Technology Melbourne, Australia(工程墨尔本技术学院墨尔本,澳大利亚);Innovation Centre Deakin University Geelong, Australia(德肯大学创新中心吉朗,澳大利亚)
Bridging Training and Merging Through Momentum-Aware Optimization
Swinburne Business School, Swinburne University of Technology, Australia(斯威本科技大学斯威本商学院,澳大利亚);Data Science & Big Data Lab, Universidad Pablo de Olavide, Seville, Spain(巴勃罗·德奥拉维德大学数据科学与大数据实验室,西班牙塞维利亚)
Faculty of Mathematics and Informatics, Hanoi University of Science and Technology(河内科学技术大学数学与信息学院);Viettel AI, Viettel Group(Viettel集团Viettel人工智能公司);Department of Mathematics, National University of Singapore(新加坡国立大学数学系)
Sparsity Curse: Understanding RLVR Model Parameter Space from Model Merging
Zhejiang University(浙江大学);Simon Fraser University(西蒙菲莎大学);The Chinese University of Hong Kong(香港中文大学);Zhejiang Key Lab of Accessible Perception and Intelligent Systems(浙江省可感知智能系统重点实验室)
Mediator: Memory-efficient LLM Merging with Less Parameter Conflicts and Uncertainty Based Routing
The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));The Hong Kong University of Science and Technology(香港科技大学);Platform and Content Group, Tencent(腾讯平台与内容事业群);UCAS(中国科学院大学);Sun Yat-sen University(中山大学)