Open Interpretability Models Contributors Research Posts About

Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time

Source

Citation. Mitchell Wortsman, Gabriel Ilharco, Samir Yitzhak Gadre, Rebecca Roelofs, Raphael Gontijo-Lopes, Ari S. Morcos, Hongseok Namkoong, Ali Farhadi, Yair Carmon, Simon Kornblith and Ludwig Schmidt. Carmon, Kornblith and Schmidt made an equal contribution. The affiliations are the University of Washington, Columbia University, Google Research (Brain Team), Meta AI Research and Tel Aviv University. "Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time". arXiv:2203.05482, version 3 of 1 July 2022. Version 1 is of 10 March 2022, and version 2 of 21 June 2022. Venue: ICML 2022 (PMLR 162), as the PDF's first page states. The code is at github.com/mlfoundations/model-soups. Funding: the acknowledgements name the Israeli Science Foundation (grant 2486/21), the Blavatnik Family foundation and the Yandex Initiative for Machine Learning. They also name NSF IFML, Open Philanthropy, NSF and DARPA grants, and gifts from the Allen Institute for AI.

Mismatch. Version 3 adds results that came after the ICML submission: BASIC-L in Appendix C, and a comparison with CoCa. The abstract's claim of a new best ImageNet score (90.94%) is the ViT-G result. Footnote 1 gives 90.98% for BASIC-L.

Status. Planned. #4782 would use it in its strand on editing, merging and task vectors. #5298 would build merge rules for patches. No code, skill or protocol here depends on it. The fix campaign (#5220) is the maintainer's, so this page reports evidence and records questions only.

Read. On 2026-11-19 we downloaded the version 3 PDF with curl and converted it with pdftotext. The reader was this page's author, a model (Claude Opus 5.5). We read in the source's own text the abstract, Sections 1 to 7 and the acknowledgements. We also read Appendices A, C, D, E, F, I, J and L. We read Tables 1 to 5, C.1, J.1 and L.1 to L.3 as extracted text. From Appendices B, G, H and K we read the prose and the figure captions. We did not check the derivation in K.2 and K.3 step by step. We did not see any figure as an image, so this page gives no number that only a figure holds. We did not open the code, and we read the references only to check names.

Summary

Claim. Fine-tuned models that start from one pre-trained model often lie in one low-error basin. So the average of their weights is often more accurate than the best single model. Unlike an ensemble, the average costs nothing extra at inference.

Method.

Findings, as the source reports them.

Setting Result
ViT-G/14, ImageNet top-1, 58 models (Table 4) Best on held-out 90.72, greedy ensemble 90.93, greedy soup 90.94. CoAtNet-7's reported 90.88
ViT-G/14, mean of five shifts (Table 4) Best on held-out 84.38, best on each test set (oracle) 84.68, greedy soup 85.02
ViT-G/14 greedy soup Keeps 14 of 58 models. Significantly better than the best held-out model on every test set but ObjectNet (exact McNemar or permutation test, α = 0.05)
CLIP ViT-B/32, ImageNet and shifts (Table 3) Best model 80.38 and 47.83. Uniform soup 79.97 and 51.45. Greedy soup 81.03 and 50.75. Ensemble 81.19 and 50.77
Same, other recipes (Table 3) Greedy soup in random order 80.79 (0.05) and 51.30 (0.16), over three orders. Learned soup by layer 81.37 and 50.87
CLIP and ALIGN greedy soups (Section 3.3.1) Each keeps 5 models. They beat the best model of the sweep by 0.7 and 0.5 points
BASIC-L, ImageNet top-1 (Table C.1) Best on held-out 90.83, greedy soup 90.98, greedy ensemble 91.02
GLUE, greedy soup minus best single model (Table J.1) Better on 10 of 20 model-task pairs. Gains run from +0.0 to +2.1 (T5-large RTE, 82.7 to 84.8)
GLUE, uniform soup (Table J.1) Worse than the best single model on all 20. BERT-large: MRPC 15.8 against 88.8, SST-2 50.8 against 92.2. T5-large CoLA 0.00 against 61.7
Cross-dataset soup, zero-shot CIFAR-100 (Appendix E) Zero-shot CLIP plus six models fine-tuned on other datasets: +6.4 points over the CLIP baseline
Calibration (Section 5) Soups do not improve calibration, unlike ensembles. Test: 20 models that differ only in seed
ImageNet-22k pre-trained ViT-B/32 (Section 5, Appendix G) The greedy soup still helps, but less than with CLIP or ALIGN

Section 3.2 reports that the gain from averaging two models grows with the angle between θ₁ − θ₀ and θ₂ − θ₀. Varying seed, learning rate or augmentation makes the updates more orthogonal. Figure 3 holds those values, and we did not read them. At a high learning rate (10⁻⁴), error rises on the path between two fine-tunes, and the greedy soup leaves those models out (Appendix J.1).

Where the claims go beyond the evidence

The authors state several limits themselves. Gains are smaller after pre-training on ImageNet-22k. Soups do not fix calibration. The text results are "preliminary". Tied input and output embeddings need care when code averages weights in place.

Use in this repo