Soup du Jour.
Train the same model three times. Average the weights. Here’s how model soup took our clause classifier from 77.8% to 92.2%.
We’re cooking, and today we made model soup. We trained three versions of a model, and averaged its weights into one. It bumped its accuracy from 77.8% to 92.2%. This is our recipe.
First, what is model soup?
Everyone’s me-ma had a soup. The recipe was nothing: chicken, carrots, salt, a bay leaf she fished out later. What made it hers was knowing how much of each to throw in. Post-training a model is the same job, except me-ma doesn’t have to deal with PyTorch.
Model soup is what you get when you train the same model a few times and blend the weights.
No new training run, no new data. Just take the versions you already made, blend them, and taste. That’s it. It’s an old ML trick from the paper “Model Soups” by Wortsman et al. (ICML 2022).1
- Wortsman et al., “Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time”, ICML 2022.
Naturally you’re asking: why doesn’t this just produce garbage? Because every version started from the same pretrained base. Fine-tuning only nudges the weights, and all the nudges land in the same valley of the loss landscape. Average three points in one valley and you’re still in the valley, closer to the middle, which is where the good ingredients are. Our ingredients: three runs of one recipe, identical except for the random seed.
One bad apple can ruin the bunch
We fine-tuned Qwen3-1.7B to find the right passage in a contract and answer fixed-choice questions about it.2 Before training, we set five checks the model had to pass. No moving the goalposts after kickoff. The first run passed four.
- Qwen3-1.7B with a rank-128 LoRA adapter and a small decision head, trained on public CUAD, MAUD and ContractNLI tasks plus our own generated contract tasks. The charts use the legal4 run series.
On one check, it scored 0.612.3 The bar was 0.80. It missed by 0.19, which means into the garbage it goes. So we ran the identical recipe twice more and changed nothing but the seed. The next one came back at 0.878, and the next one after that came back at 0.952. Same recipe, same data, same GPU. Winner winner chicken dinner.
- The check was fiduciary-duty AUC, which measures ranking quality with no cutoff. Figure 1 shows all three runs and the soup.
Same recipe, different seeds
One training recipe. Three runs. One equal-weight soup.
View the data
| Model | AUC | 95% CI low | 95% CI high | MAE accuracy (%) |
|---|---|---|---|---|
| Seed 3407 | 0.612 | 0.415 | 0.787 | 80.8 |
| Seed 101 | 0.878 | 0.676 | 1.000 | 85.3 |
| Seed 202 | 0.952 | 0.883 | 1.000 | 84.4 |
| Three-seed soup | 0.878 | 0.766 | 0.963 | 84.5 |
The soup became our new model.
Equal parts of each seed, including the one we threw in the garbage. A third, a third, a third.
ΔW is the change a training run made to the base model’s weights. Average the changes, add them back to the base, serve.
The soup scored 0.878 on fiduciary duty and 84.5% on material-adverse-effect questions. It passed all five checks, so it became the new model. It also came out better calibrated than any of its ingredients: expected calibration error of 0.0087,4 against 0.014 for the run we threw in the garbage.
- Expected calibration error, measured in 15 bins on 10,899 public test questions. Figure 3 compares the runs.
How the LoRA math works
LoRA doesn’t store a full weight update. It stores two skinny matrices, A and B, plus a scale s. The update is their product:
The obvious move is to average the Bs, average the As, and multiply. That’s wrong. Multiply it out (dropping the scale for a second):
You get the three real updates at one-ninth strength, plus six cross-terms like B1A2: a B from one run multiplied by an A from a different run. No run ever learned those. It’s like merging two clients’ redlines and sending the result to both.
The fix is to stack the pieces instead of averaging them. Put the A matrices on top of each other. Put the weighted B matrices side by side:
Block multiplication pairs each B only with its own A:
With every w set to ⅓, that’s the exact average. Three rank-128 adapters become one rank-384 adapter. Reconstruction error: zero.
One more ingredient. The decision head has its calibration temperature baked into its weights. Average three heads with three different temperatures baked in and you get mush. So the tool un-bakes each temperature, averages the heads, then re-bakes with the geometric mean of the three temperatures.
The whole merge runs in numpy on a laptop CPU in minutes. Testing it takes one GPU eval pass, about three hours. A training run takes about five hours on an A100. The soup itself is free.
Did it keep the good stuff?
On held out tests, the soup put a correct passage in first place for 92.2% of 320 contract–clause pairs.5 The previous model hit 77.8%. False flags per contract fell from 49.8 to 12.2.
- Top-1 retrieval on 320 answer-bearing contract–clause pairs from 30 contracts and 33 clause types. Figure 2 shows the full results.
What reaches the reviewer
Clause retrieval across 30 held-out contracts.
View the data
| Model | Top 1 (%) | Top 3 (%) | Answers found (%) | False flags / contract | Cutoff |
|---|---|---|---|---|---|
| Previous model | 77.8 | 95.9 | 94.4 | 49.8 | 0.5000 |
| Seed 3407 | 93.4 | 98.1 | 93.8 | 13.7 | 0.4800 |
| Seed 101 | 90.9 | 98.4 | 92.5 | 14.3 | 0.4628 |
| Seed 202 | 91.3 | 98.1 | 93.4 | 16.4 | 0.4089 |
| Three-seed soup | 92.2 | 98.1 | 92.5 | 12.2 | 0.5079 |
We over-seasoned it.
Before evaluating the soup, we got fancy. We refit its calibration temperatures on 2,000 training examples. The model had already seen those, so they looked easy. Calibrate a model on easy questions and it gets cocky on everything else. Expected calibration error came in at 0.0296. Our limit was 0.03. It passed by 0.0004, which is the eval version of making your flight because the flight was also late.
Then we threw out the refit and used the soup’s own blended temperatures, computed from the same saved predictions. ECE: 0.0087. Three times better, for doing less.
Calibrating on training rows is asking the cook whether dinner was good. Recalibrate a soup on held-out data, or leave it alone.
Calibration, before and after
The same soup, with two different temperature settings.
View the data
| Model / setting | ECE | Evaluation method |
|---|---|---|
| Seed 3407 | 0.0145 | Direct evaluation |
| Seed 101 | 0.0128 | Direct evaluation |
| Seed 202 | 0.0111 | Direct evaluation |
| Soup: blended temperatures | 0.0087 | Reconstructed offline |
| Soup: training-row refit | 0.0296 | Direct evaluation |
The batch we kept.
We tried several other combinations, including blends of specialist models and a newer training recipe.6
- The earlier blends come from our October experiment records.
The previous model put a correct contract passage first 77.8% of the time. Our three-run soup raised that to 92.2%, passed all five checks, and became our new model.