Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Paper page - Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
[go: Go Back, main page]

Papers
arxiv:2203.05482

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

Published on Mar 10, 2022
Authors:
,
,
,
,
,
,
,
,
,

Abstract

Averaging the weights of multiple fine-tuned models improves accuracy and robustness across various tasks without additional inference costs.

The conventional recipe for maximizing model accuracy is to (1) train multiple models with various hyperparameters and (2) pick the individual model which performs best on a held-out validation set, discarding the remainder. In this paper, we revisit the second step of this procedure in the context of fine-tuning large pre-trained models, where fine-tuned models often appear to lie in a single low error basin. We show that averaging the weights of multiple models fine-tuned with different hyperparameter configurations often improves accuracy and robustness. Unlike a conventional ensemble, we may average many models without incurring any additional inference or memory costs -- we call the results "model soups." When fine-tuning large pre-trained models such as CLIP, ALIGN, and a ViT-G pre-trained on JFT, our soup recipe provides significant improvements over the best model in a hyperparameter sweep on ImageNet. The resulting ViT-G model, which attains 90.94% top-1 accuracy on ImageNet, achieved a new state of the art. Furthermore, we show that the model soup approach extends to multiple image classification and natural language processing tasks, improves out-of-distribution performance, and improves zero-shot performance on new downstream tasks. Finally, we analytically relate the performance similarity of weight-averaging and logit-ensembling to flatness of the loss and confidence of the predictions, and validate this relation empirically. Code is available at https://github.com/mlfoundations/model-soups.

Community

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2203.05482
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 1,000+

Browse 1,000+ models citing this paper

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2203.05482 in a dataset README.md to link it from this page.

Spaces citing this paper 59

Browse 59 spaces citing this paper

Collections including this paper 7