﻿# Model soups: averaging fine-tuned weights after a hyperparameter sweep

Explore uniform and greedy model soups, the distinction from prediction ensembles, common-initialization assumptions and independent validation of a chosen soup.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-model-soups-validation-weight-averaging/
Language: en

Model soups reconsider what happens after training several fine-tuned models with different hyperparameters. Instead of discarding all but the best checkpoint, the method averages compatible weights into one model. The original research focuses on related fine-tunes that can occupy a favorable shared region of weight space, rather than arbitrary independently initialized networks.

## Define the candidate collection

Record the common pretrained initialization, training data and the hyperparameters varied across candidates. A set of checkpoints from one training trajectory is a different candidate-generation procedure from independent fine-tuning runs. Both can be averaged experimentally, but their provenance should not be collapsed into one description when interpreting robustness or diversity.

## Distinguish uniform and greedy selection

A uniform soup averages the stated candidate collection. A greedy procedure uses validation performance to decide whether adding a candidate improves the current soup. The selected ingredients and order therefore belong to the experiment record. Do not describe a validation-selected soup as if every candidate was included without selection.

## Compare with prediction ensembling

An ensemble combines outputs from several models during inference. A materialized soup runs one averaged model, so it avoids evaluating every ingredient per request. The two procedures are not numerically equivalent: neural network outputs are nonlinear functions of weights. Compare their actual task behavior and deployment cost instead of assuming an average of parameters equals an average of predictions.

## Preserve an independent final test

The validation data used to rank ingredients or accept additions are part of model selection. Evaluate the final chosen soup on held-out examples not used for those decisions. For an illustrative vision-language classifier, include both the target distribution and relevant distribution shifts. A gain on the selection metric does not automatically establish robustness on another domain.

## Export the whole model contract

Save source revisions, selected ingredients, averaging coefficients, dtype, architecture configuration and tokenizer or preprocessing. Check any non-parameter state and task heads rather than averaging incompatible label systems. Reload the result and compare it against the chosen individual model. The original benchmark improvements motivate the experiment; they do not guarantee gains for every LLM collection. Model soups are useful when a traceable averaging recipe produces independently verified quality at the serving cost of its actual single-model artifact.

## Primary references

[Model soups original paper](https://arxiv.org/abs/2203.05482).

[Model soups author implementation](https://github.com/mlfoundations/model-soups).

[Model soups ICML publication](https://proceedings.mlr.press/v162/wortsman22a.html).

Related explanations: [materializing parameter changes](/journal/lora-adapter-merge-linear-layer/); [held-out evaluation boundaries](/journal/document-level-data-split-leakage/).
