Lune

ICLR2024Top-tier venue

Model Merging by Uncertainty-Based Gradient Matching

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

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

30 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time cites Linear Mode Connectivity and the Lottery Ticket Hypothesis
  • Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time cites Merging Models with Fisher-Weighted Averaging
  • Merging Models with Fisher-Weighted Averaging cites Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
  • Bayesian Uncertainty for Gradient Aggregation in Multi-Task Learning cites Merging Models with Fisher-Weighted Averaging
  • Merging Models with Fisher-Weighted Averaging cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • DC-Merge: Improving Model Merging with Directional Consistency cites Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
  • DC-Merge: Improving Model Merging with Directional Consistency cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Towards Modular LLMs by Building and Reusing a Library of LoRAs cites The Flan Collection: Designing Data and Methods for Effective Instruction Tuning
  • Towards Modular LLMs by Building and Reusing a Library of LoRAs cites Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
  • Towards Modular LLMs by Building and Reusing a Library of LoRAs cites Linear Mode Connectivity and the Lottery Ticket Hypothesis
  • Towards Modular LLMs by Building and Reusing a Library of LoRAs cites Merging Models with Fisher-Weighted Averaging
  • OptMerge: Unifying Multimodal LLM Capabilities and Modalities via Model Merging cites Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers30

  1. Towards Modular LLMs by Building and Reusing a Library of LoRAsOleksiy Ostapenko, Zhan Su, Edoardo M. Ponti, Laurent Charlin et al.ICML 2024 · 70 citations
  2. Variational Learning is Effective for Large Deep NetworksYuesong Shen, Nico Daheim, Bai Cong, Peter Nickl et al.ICML 2024 · 53 citations
  3. Bayesian Uncertainty for Gradient Aggregation in Multi-Task LearningIdan Achituve, Idit Diamant, Arnon Netzer, Gal Chechik et al.ICML 2024 · 14 citations
  4. DC-Merge: Improving Model Merging with Directional ConsistencyHan-Chen Zhang, Zi-Hao Zhou, Mao-Lin Luo, Shimin Di et al.CVPR 2026 · 12 citations
  5. OptMerge: Unifying Multimodal LLM Capabilities and Modalities via Model MergingYongxian Wei, Runxi Cheng, Weike Jin, Enneng Yang et al.ICLR 2026 · 10 citations

Builds on14

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timeMitchell Wortsman, Gabriel Ilharco, Samir Yitzhak Gadre, Rebecca Roelofs et al.ICML 2022 · 1,464 citations
  3. The Flan Collection: Designing Data and Methods for Effective Instruction TuningShayne Longpre, Le Hou, Tu Vu, Albert Webson et al.ICML 2023 · 908 citations
  4. Linear Mode Connectivity and the Lottery Ticket HypothesisJonathan Frankle, Gintare Karolina Dziugaite, Daniel M. Roy, Michael CarbinICML 2020 · 750 citations
  5. Merging Models with Fisher-Weighted AveragingMichael Matena, Colin RaffelNeurIPS 2022 · 741 citations

Related papers

  1. MergOPT: A Merge-Aware Optimizer for Robust Model MergingEnneng Yang, Qun Yang, Peng Wang, Anke Tang et al.ICLR 2026
  2. Merging Multi-Task Models via Weight-Ensembling Mixture of ExpertsAnke Tang, Li Shen, Yong Luo, Nan Yin et al.ICML 2024 · 96 citations
  3. Beyond Layer-Wise Merging: Chain-of-Merging for Vision-Language ModelsXinyu Zhang, Yuxuan Dong, Lingling Zhang, Chengyou Jia et al.CVPR 2026
  4. CAT Merging: A Training-Free Approach for Resolving Conflicts in Model MergingWenju Sun, Qingyong Li, Yangliao Geng, Boyang LiICML 2025
  5. No Task Left Behind: Isotropic Model Merging with Common and Task-Specific SubspacesDaniel Marczak, Simone Magistri, Sebastian Cygert, Bartlomiej Twardowski et al.ICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines