Merging Models with Fisher-Weighted Averaging

By Michael Matena, Colin Raffel. 2021

671 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Model Architectures, Optimization & Training

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Mohit Bansal
  3. Hannaneh Hajishirzi
  4. Yejin Choi
  5. Noah A. Smith
  6. Percy Liang
  7. Graham Neubig
  8. Jianfeng Gao

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Mohit Bansal
  3. Trevor Darrell
  4. Ali Farhadi
  5. Dacheng Tao
  6. Luke S. Zettlemoyer
  7. Ming-Hsuan Yang
  8. Jitendra Malik

In Model Architectures

  1. Xiang Ren
  2. Graham Neubig
  3. Michael Lewis
  4. Ali Farhadi
  5. Ludwig Schmidt
  6. Mitchell Wortsman
  7. Gabriel Ilharco
  8. Suchin Gururangan

In Optimization & Training

  1. Luke S. Zettlemoyer
  2. Michael Lewis
  3. Tim Dettmers
  4. Mohit Bansal
  5. Ludwig Schmidt
  6. Mitchell Wortsman
  7. Ali Farhadi
  8. Fei Huang

Citations in the corpus