Model soups: averaging fine-tuned weights, and why merging works
Read first: LoRA: Low-Rank Adaptation of Large Language Models
TL;DR. Fine-tune one pretrained model many times with different hyperparameters. Instead of keeping the best run and throwing the rest away, average their weights. Because all runs start from the same pretrained checkpoint, they usually sit in one wide, low-loss basin, so the average is a valid model and is often better than any single run. Serving it costs the same as serving one model. A greedy version, which adds a run only if held-out accuracy does not drop, took a ViT-G/14 to 90.94% ImageNet top-1. The same idea, applied along one training run, is SWA, EMA and checkpoint averaging in LLM pretraining. Models trained from different random inits generally need their hidden units aligned before weight averaging is reliable, and alignment itself does not guarantee success.
Why it matters now. Weight averaging is the cheapest trick in modern post-training. Gemini Embedding and Llama-Embed-Nemotron average fine-tuned checkpoints, Qwen3 Embedding SLERP-merges checkpoints, OLMo 2 averages mid-training runs, WARM averages reward models, and Perplexity’s Decider ships a souped model. Understanding when averaging works tells you when TIES, DARE and MergeKit recipes (next pages) have a chance.
How to read this page. First read: §1, the plain-language conclusion of §2, the bowl and greedy examples in §3–§4, §5, and the embedder paragraph of the LLM section. Then read the caveats and the release-design question (Question 6). The detailed historical measurements in §2, the ensemble approximation in §6, the one-run averaging comparisons in §7 and the alignment algorithm in §8 are optional deep dives. Question 2 drills §6.
Key idea
Section titled “Key idea”1. The setup: a sweep you normally throw away
Section titled “1. The setup: a sweep you normally throw away”Write the network as , with input and parameters . Here is the number of scalar parameters. A logit is an unnormalised class score. Held-out data is not used to update model weights; here it is used to choose runs and soups. SGD means stochastic gradient descent. Notation: this page follows the paper, so is the shared pretrained checkpoint (called on the sibling merging pages) and is the interpolation weight (called there); the exception is §6, where and are simply the two endpoints. Fine-tuning starts from the pretrained weights and uses a hyperparameter configuration : learning rate, weight decay, epochs, augmentation, label smoothing, random seed (which sets data order). Each run gives
The usual recipe keeps and discards the rest. The paper compares four uses of the same runs:
| Method | Prediction | Inference cost |
|---|---|---|
| Best on validation set | , = best held-out run | 1 model |
| Logit ensemble | models | |
| Uniform soup | 1 model | |
| Greedy soup | average of a subset chosen on held-out data (Recipe 1) | 1 model |
The ensemble averages outputs; the soup averages parameters, element by element, for every weight matrix, bias, embedding and normalisation gain. IR analogy: an ensemble is CombSUM run fusion at query time: you pay for every run on every query. A soup is like fusing the runs once, offline, into a single system. The catch is that fusing parameters only makes sense if the runs “agree on coordinates”, which is what the next section is about.
2. Why averaging can work at all: linear mode connectivity
Section titled “2. Why averaging can work at all: linear mode connectivity”A trained network is a point in a -dimensional loss landscape that has many minima. A low-loss straight path between two minima is useful evidence that interpolating them will work. It is not necessary for a particular average to work: a path can contain a barrier elsewhere and still have a good midpoint. Nor do pairwise checks certify the average of three or more models. Frankle et al. (arXiv 1912.05671) make this measurable. Let be the error of weights . The error barrier along the straight line between and is
In words: the worst error you hit on the way, minus the average error at the two ends. Two networks are linearly mode connected (LMC) when the barrier is about zero; Frankle et al. count under 2% as “stable”, checking 30 evenly spaced values of .
Their instability analysis trains a network for steps, makes two copies, finishes training each with different data order and augmentation, and measures the barrier between the two results:
- From step 0 (same random init, different data order), every network except a small LeNet on MNIST is unstable: interpolated error rises to chance level.
- After a short shared prefix the outcome is locked into one linearly connected region: about 3% of training for ResNet-20 and 1.5% for VGG-16 on CIFAR-10, and 20% (epoch 18) for ResNet-50 on ImageNet.
So sharing early optimisation is what puts two runs into the same basin. Pretraining is the extreme version of a shared prefix. Neyshabur et al. (arXiv 2008.11687) fine-tune ResNet-50 on CheXpert and DomainNet. They find that two runs started from pretrained weights have no performance barrier, and that points along the line sometimes beat both ends. Two runs from random init show clear barriers, even when they start from the same random values. The pretrained pair is also much closer in parameter space: an ℓ2 distance of 178 versus 822 on DomainNet clipart, and 193 versus 815 on DomainNet real (200 versus 255 on CheXpert, a smaller gap). This is the observation that inspired model soups.
3. Worked example: why the middle of a basin wins
Section titled “3. Worked example: why the middle of a basin wins”Take a toy loss that is a round bowl around the basin’s centre : . SGD noise and different hyperparameters leave each fine-tuned run somewhere on the bowl’s side, not at the bottom.
- Run 1 ends at : loss 1. Run 2 ends at : loss 1.
- Their average is : loss . Better than either.
- Along the whole path , , which has its minimum 0.5 at and positive curvature .
For this bowl, the gain at the midpoint is exactly a quarter of the squared distance between the runs:
Now make the runs less diverse: , still loss 1. Then , and the midpoint has loss . The gain falls from 0.5 to 0.1. Diverse ingredients in one basin give a bigger gain. This identity is exact for this quadratic bowl and equal-quality endpoints; it is an intuition for neural networks, not a guarantee that greater parameter distance improves accuracy. The paper measures the trend in a real model (Figure 3). CLIP is an image–text pretrained model; its image encoder is being fine-tuned for classification. The gain from averaging two CLIP fine-tunes grows with the angle between and . Varying learning rate, seed or augmentation, rather than seed alone, makes the runs more orthogonal.
Now the failure case. Take a 1-D loss with two basins, , with minima at and (both loss 0). Their average is , with loss 1: a barrier of . Averaging across basins lands you on the ridge. In the CLIP sweep this happens mostly for runs with high learning rates, which travel far from (Appendix J.1).
4. Uniform, greedy and learned soups
Section titled “4. Uniform, greedy and learned soups”A uniform soup averages all runs. In this paper’s sweeps, uniform soups beat the best individual model only in settings where all ingredients were accurate. This is an empirical observation, not a necessary or sufficient condition for averaging to help. In the 72-run CLIP sweep the uniform soup does not beat the best run; in ALIGN’s 12-run grid it does.
The greedy soup (Recipe 1) is the paper’s main method. Sort the runs by held-out accuracy, best first. Walk down the list and keep run only if adding it does not lower held-out accuracy. Implementation detail: you never need all models in memory. Keep a running sum of the kept weights and a count , and test :
# runs sorted by held-out accuracy, best first; each is a state_dict# validation_scores[i] is the held-out score of runs[i] (same order)S, n = clone(runs[0]), 1best = validation_scores[0] # reuse the score used to sort the runsfor theta in runs[1:]: cand = {key: (S[key] + theta[key]) / (n + 1) for key in S} acc = held_out_acc(cand) if acc >= best: # ">=": keep if accuracy does not drop S = {key: S[key] + theta[key] for key in S} n, best = n + 1, accsoup = {key: S[key] / n for key in S}This is pseudocode over mergeable floating-point model parameters, not arbitrary state_dict entries. Preserve tied-weight relationships (e.g. tied input embeddings and output weights); do not average integer counters or optimizer states. BatchNorm running statistics should be recomputed for the averaged model, whereas LayerNorm/RMSNorm gains are ordinary mergeable parameters. Accumulate in sufficient precision.
Because the first ingredient is the best run, the greedy soup can be no worse than the best single model on the held-out set. That held-out set must be disjoint from training and test data; for ImageNet the paper holds out about 2% of the training set, because the official validation set serves as the test set. Greedy soups reject high-learning-rate runs automatically, since those runs are also less accurate. Note that the method text says “improves” while Recipe 1 uses ”≥”; the code above follows the recipe.
A learned soup (Appendix I) optimises the mixing weights by gradient descent on held-out data, optionally one weight per layer. It needs every model in memory at once, which limits it for large networks.
Worked example: greedy soup by hand
Section titled “Worked example: greedy soup by hand”Five fine-tunes of one checkpoint, already sorted by held-out accuracy. The candidate-soup scores are illustrative numbers, not from the paper.
| Step | Candidate soup | Held-out acc. of candidate | Current best | Decision |
|---|---|---|---|---|
| 0 | A (lr 1e-5, medium aug), 80.4 alone | 80.4 | 80.4 | start |
| 1 | A + B (lr 3e-5, seed 2), B alone 80.1 | 80.9 | 80.4 | keep B |
| 2 | A + B + C (strong aug), C alone 79.6 | 81.2 | 80.9 | keep C |
| 3 | A + B + C + D (lr 3e-6), D alone 78.2 | 81.0 | 81.2 | reject D |
| 4 | A + B + C + E (lr 1e-4), E alone 77.0 | 74.5 | 81.2 | reject E |
The final soup is A + B + C at 81.2, +0.8 over the best single run, at the inference cost of one model. It needed 5 individual evaluations (to sort) and 4 candidate evaluations. D is rejected although it is probably in the basin: with equal weights, a weaker run pulls the average toward a worse point. E is rejected because this candidate lowers the held-out score. Its higher learning rate motivates a barrier check, but the score alone does not prove that a barrier caused the failure. If the uniform soup of all five scored, say, 78.8, it would lose to A alone, as the CLIP uniform soup does in Table 3.
5. WiSE-FT: interpolate between zero-shot and fine-tuned
Section titled “5. WiSE-FT: interpolate between zero-shot and fine-tuned”WiSE-FT (arXiv 2109.01903), by many of the same authors, is a two-ingredient soup in which one ingredient is the pretrained (zero-shot) model itself:
The motivation is robustness. Fine-tuning CLIP raises accuracy on the target distribution but often lowers it under distribution shift, and the robustness of a fine-tuned model cannot be read from its in-distribution accuracy. Sliding from 0 to 1 traces a curve; for a range of , accuracy under shift beats both endpoints while in-distribution accuracy matches or beats the fine-tuned model. The authors recommend when no domain knowledge is available. In their Table 3, the best fixed is only 0 to 0.4 points better on average. Trying another needs no retraining, just another evaluation.
One subtle point: if only the final linear classifier was fine-tuned, the weight-space average is exactly the output-space ensemble, because the logits are linear in those weights. The interesting case is end-to-end fine-tuning, where the network is non-linear in . There, low-loss interpolation provides useful empirical evidence for averaging, and the soup need not reproduce the output ensemble exactly.
6. When is a soup as good as an ensemble?
Section titled “6. When is a soup as good as an ensemble?”Well-chosen ensembles often beat their best member, but this is not guaranteed. So if a soup behaves like the ensemble, it should often beat its ingredients too. Section 4 of the paper compares the two for two models , and a mixing weight . It uses the cross-entropy loss with an inverse-temperature scale on the logits, chosen to calibrate the soup. The soup and matching ensemble use the same , and is held fixed when differentiating the loss with respect to :
Here is the gap between the two models’ logits, and is a class drawn from the soup’s own predicted distribution. A negative right-hand side means the soup has the lower loss.
- First term, curvature along the path. If the loss curves upward between the models (a basin), is negative and favours the soup. This is the convex-basin intuition from §3.
- Second term, prediction variance. It is always non-negative, so it always favours the ensemble. It is small when the two models are similar ( small) or when the soup is confident (its softmax is nearly a point mass).
A check you can do yourself (not in the paper, but it explains the formula). If the logits were exactly linear in , , then the second derivative of the cross-entropy along the path is exactly , the softmax’s own curvature. The bracket is then zero, and the soup is the ensemble, as in the WiSE-FT linear-classifier case. So the soup wins when the loss curves upward along the path more than the softmax alone would make it, and loses when the path bends over a barrier.
Illustrative numbers at , where the prefactor is : with curvature 0.40 and variance term 0.10, the gap is , so the soup is better. With curvature −0.20 (a barrier) and variance term 0.30, it is , so the ensemble is better. Empirically (Appendix K, Figure K.1), the approximation correlates strongly with the true soup–ensemble difference once the learning rate 10⁻⁴ runs are excluded; those models move far from initialisation and are usually rejected by greedy soups anyway.
7. Averaging along one run: SWA, EMA, LAWA and LLM checkpoint averaging
Section titled “7. Averaging along one run: SWA, EMA, LAWA and LLM checkpoint averaging”Everything above averages independent runs. The older idea is to average checkpoints from one run.
- SWA (stochastic weight averaging), Izmailov et al. (arXiv 1803.05407): after (or near the end of) normal training, continue with a cyclical or high constant learning rate. Collect a checkpoint at each cycle minimum or each epoch, and keep a running average . For BatchNorm networks, one extra forward pass recomputes the normalisation statistics for the averaged weights. SWA finds flatter solutions. On ImageNet, 10 extra SWA epochs from torchvision checkpoints raise ResNet-50 from 76.15 to 76.97 and DenseNet-161 from 77.65 to 78.44.
- EMA (exponential moving average): keep a shadow copy after every step; close to 1 means a long memory. The soups paper saves EMAs with decay 0.999 and 0.9999999 for its ViT-G runs. The long EMA gives the best single model, but soups are built from the 0.999 EMAs. In Appendix L, soup gains add on top of EMA or SWA.
- LAWA (latest weight averaging) for LLM pretraining, Sanyal et al. (arXiv 2306.03241, a NeurIPS 2023 workshop paper adapting an earlier LAWA method by Kaddour): keep a first-in-first-out queue of the last checkpoints, spaced steps apart, and use their uniform average . On nanoGPT-2 models trained with a deliberately high learning rate, validation loss after 70K steps is:
| Model | Original | EMA | SWA | LAWA |
|---|---|---|---|---|
| 125M | 2.963 | 2.949 | 2.952 | 2.917 |
| 355M | 2.855 | 2.845 | 2.837 | 2.819 |
| 770M | 2.977 | 2.968 | 2.961 | 2.908 |
These are validation cross-entropies, not perplexities; lower is better. The nanoGPT runs deliberately use 10× the reference learning rate and 2× the reference batch size, so this comparison is not evidence that LAWA dominates an independently well-tuned training schedule.
The authors read averaging as a surrogate for learning-rate decay. Averaging cancels the oscillation that a high learning rate causes along sharp directions, while progress along flat directions is kept. Consistent with this, the gains are largest early and mid-training and shrink towards the end, as the schedule decays the learning rate anyway. They also see LAWA smooth over loss spikes in Pythia. In LLM pretraining today, this family shows up as EMA or checkpoint averaging used to preview the effect of a cooldown, and as averaging several annealed branches. LR schedules & mid-training covers that in detail.
8. Different random inits: permutation symmetry and Git Re-Basin
Section titled “8. Different random inits: permutation symmetry and Git Re-Basin”Why does averaging two networks trained from scratch fail? One big reason is permutation symmetry. Swap two hidden units in a layer, along with their incoming and outgoing weights, and the function is unchanged. With a permutation matrix for layer :
Tiny example. A network has two hidden units. Model A has and , so . Model B is the same function with the units stored in the other order: , . Naively averaging A and B gives and , so the output is 0 for every . At , both A and B output 2, and so does their ensemble, but the soup outputs 0. Swap B’s units first, and B becomes A, so the average is A again.
Real networks have astronomically many such symmetries; Ainsworth et al. count about for ResNet-50. Git Re-Basin (arXiv 2209.04836) finds a permutation that brings model B close to model A, and then averages A with . Its fastest method, weight matching, maximises the inner product between A’s weights and permuted B’s weights. It does this one layer at a time, solving each as a linear assignment problem, and repeats until convergence. It needs no data and runs in seconds. Results:
- After alignment, zero-barrier interpolation between independently trained models on MNIST, and for sufficiently wide ResNets on CIFAR-10. Wider models connect better.
- On ImageNet (ResNet-50), the barrier falls by 67% but not to zero.
- It fails for thin models, models early in training, and ConvNeXt, which has few permutation symmetries. The authors conclude that linear mode connectivity emerges from training; it is not a property of the architecture alone.
Why don’t fine-tuned soups need any of this? Every run starts from the same and moves only a short distance, so unit in run 1 still corresponds to unit in run 2. Shared initialisation usually preserves the correspondence for you, though it does not guarantee that a particular merge works. That is why, in practice, LLM merging almost always merges descendants of one base model.
What the numbers say
Section titled “What the numbers say”CLIP ViT-B/32, 72-run random sweep (Table 3). (ViT-B/32 is just a vision-transformer configuration.) The greedy soup kept 5 of the 72 runs.
| Method | ImageNet | Avg. 5 shifts | Inference cost |
|---|---|---|---|
| Best individual model | 80.38 | 47.83 | 1 |
| Uniform soup | 79.97 | 51.45 | 1 |
| Greedy soup | 81.03 | 50.75 | 1 |
| Greedy soup, random order (3 orders) | 80.79 | 51.30 | 1 |
| Learned soup (by layer) | 81.37 | 50.87 | 1 |
| Ensemble | 81.19 | 50.77 | 72 |
| Greedy ensemble | 81.90 | 49.44 | subset |
The ensemble exceeds the greedy soup by 0.16 percentage points on ImageNet and 0.02 points on the five-shift average (50.77 versus 50.75), using 72 model evaluations per input rather than one. The shift results are effectively tied at this precision; the uniform soup scores higher, at 51.45. Figure 4 shows a broader pairwise trend: ensembles slightly ahead in distribution, soups ahead under shift. For pairs where one model had a high learning rate, the ensemble beats the soup.
ViT-G/14 pretrained on JFT-3B, 58 runs (Table 4). The greedy soup keeps 14 runs and reaches 90.94% ImageNet top-1, against 90.72 for the best run chosen on held-out data and 90.78 for the best run chosen on the test set itself (an oracle). The previous best was CoAtNet-7 at 90.88, and the soup needs 25% fewer FLOPs at inference. The average accuracy over the five shifts is 85.02, against 84.38. The soup is significantly better than the held-out-selected best run on every test set except ObjectNet.
Text classification (Table 5, 32 runs per task, greedy soup vs best run).
| Model | MRPC | RTE | CoLA | SST-2 |
|---|---|---|---|---|
| BERT-base | 88.3 → 88.3 | 61.0 → 61.7 | 59.1 → 59.1 | 92.5 → 93.0 |
| T5-base | 91.8 → 92.4 | 78.3 → 79.1 | 58.8 → 60.2 | 94.6 → 94.7 |
The gains are small and sometimes zero; the authors call these experiments preliminary. (The paper prints the T5 CoLA gain as +0.4, but the two numbers differ by 1.4.)
WiSE-FT, CLIP ViT-L/14@336px (Table 1 of 2109.01903).
| Model | ImageNet | Avg. 5 shifts |
|---|---|---|
| Zero-shot | 76.6 | 73.4 |
| Fine-tuned end-to-end | 86.2 | 68.6 |
| WiSE-FT end-to-end, α = 0.5 | 86.8 | 76.9 |
Interpolating with the zero-shot model raises ImageNet accuracy by 0.6 and recovers 8.3 points under shift, ending above the zero-shot model too.
Where souping shows up in LLMs and retrievers
Section titled “Where souping shows up in LLMs and retrievers”A short map; Merging in practice surveys the recipes in depth.
- Embedding models. Gemini Embedding averages checkpoints from several fine-tuning runs, selected by hand. Llama-Embed-Nemotron uniformly averages six runs and gains 0.84 mean points over its best run. Qwen3 Embedding applies SLERP to checkpoints saved during fine-tuning. All three reuse compatible fine-tuned checkpoints, but the recipes differ: Gemini explores parameter averages within and across runs, Nemotron uniformly averages six runs, and Qwen3 SLERP-merges checkpoints of one fine-tuning stage. Qwen3’s ablation is only for the 0.6B model: MMTEB rises from 62.56 to 64.33 (+1.77 points), against a no-merge comparator that uses data sampling instead.
- Reward models. WARM averages reward models fine-tuned from a shared init to get one RM that is more robust to label noise and distribution shift, at the inference cost of one model.
- Pretraining and mid-training. OLMo 2 averages several annealing runs with different data orders; Olmo 3 saw no gain at 7B. This is a soup of branches that share the whole pretraining trunk. LR schedules & mid-training covers checkpoint averaging and EMA as cheap substitutes for, or previews of, a cooldown.
- Production classifiers. Perplexity’s Decider ships a “soup” of several training runs, and its distilled flash model is souped as well.
- Merging different skills. When ingredients are fine-tuned on different tasks rather than different hyperparameters, plain averaging starts to interfere. Task arithmetic, TIES and DARE and MergeKit handle that case; MOPD instead merges specialists by distillation.
Caveats
Section titled “Caveats”- Calibration gains are not guaranteed. In the paper’s controlled 20-seed experiment, the ensemble improved calibration while the uniform soup of the same 20 models did not (Figure B.2). If you threshold scores, for example in a reranking cascade or RAG abstention, recalibrate after souping.
- The evidence is mostly image classification on very large image–text or JFT pretrained models. Gains are smaller for an ImageNet-22k pretrained ViT, and small on GLUE.
- The greedy soup can overfit its held-out set. It makes sequential decisions on one split. With small or noisy IR dev sets, check on a second split.
- High learning rates break the basin. Runs that move far from (learning rate 10⁻⁴ for CLIP) show barriers, and the soup–ensemble approximation is not tight for them.
- A soup is a new model. Averaging stored embeddings is not equivalent to running the weight-averaged encoder: generally . Embedding or score ensembling is a different system that can be evaluated in its own right. For a newly souped bi-encoder, normally re-encode the corpus and queries with the new model; matching dimensions, pooling or tokenization do not make an old index compatible.
- LAWA’s spacing result is mixed. The headline says widely spaced checkpoints help most. The appendix’s Pythia spacing study prefers relatively recent checkpoints (, spacing K steps); that result need not contradict the controlled nanoGPT high-learning-rate motivation.
- Git Re-Basin is not a general solution. It needs wide models and fully trained solutions, and its experiments use MLPs, VGGs and ResNets on MNIST, CIFAR and ImageNet. Do not expect to average models from different pretraining runs.
You should now be able to…
Section titled “You should now be able to…”- define the loss barrier and explain why a shared pretrained initialisation often keeps fine-tuned runs linearly mode connected, and why that is evidence rather than a guarantee;
- run the greedy-soup recipe by hand on a table of held-out scores, and say why sorting and the ”≥” rule matter;
- explain why diversity within a basin increases the gain, using the bowl identity and the angle result;
- read the soup-vs-ensemble approximation: which term favours which method, and why the two coincide for linear logits;
- place WiSE-FT, SWA, EMA and LAWA on one map (independent runs vs one trajectory, with or without the pretrained model);
- explain permutation symmetry with a two-unit example, and what Git Re-Basin does about it;
- decide, for an embedder or reranker release, whether to soup, interpolate, ensemble or ship one run.
Connections
Section titled “Connections”- Prerequisite: LoRA. A LoRA update is a small displacement from , which is plausibly the regime in which averaging stays inside one basin.
- Next in this section: Task arithmetic, TIES & DARE treats as a vector to add or subtract; MergeKit implements soups (linear merges), SLERP and the rest; LLM pruning is the other main weight-space surgery.
- Alternative to averaging: knowledge distillation turns an ensemble into one model by training. The soups paper (Table L.1) finds soups competitive with distilling from an ensemble, at a fraction of the cost.
- Ensembles in IR: the soup-vs-ensemble trade-off is the weight-space version of run fusion. In both, the gain comes from ingredients that make different errors; the soup adds the extra requirement that the ingredients share one basin.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
In this illustrative scenario, five rerankers are fine-tuned from one base and sorted by held-out nDCG@10: A 52.0, B 51.6, C 51.1, D 50.2, E 47.5 (E used a 10× higher learning rate). Held-out nDCG@10 of candidate soups: A+B 52.6, A+B+C 52.9, A+B+C+D 52.7, A+B+C+E 44.0; the uniform soup of all five scores 50.8. Run the greedy-soup recipe step by step, give the final soup and its score, count the held-out evaluations and the serving cost against a three-model ensemble, and explain why the uniform soup loses to the best single model.
What a strong answer covers
- Start from A (52.0). Keep B (52.6 ≥ 52.0), keep C (52.9 ≥ 52.6), reject D (52.7 < 52.9), reject E (44.0). Final soup A+B+C at 52.9, +0.9 over the best single model.
- Cost: 5 individual evaluations to sort, plus 4 candidate-soup evaluations. Serving is one model, against 3 forward passes for an ensemble of A, B and C.
- The supplied uniform score (50.8) is below A's 52.0. Equal weighting includes candidates that hurt the mixture (E, and to a lesser degree D, each get weight 1/5), but the individual scores and learning rates alone do not establish the cause. A barrier is one hypothesis to test by interpolation; a weaker in-basin model is another. The paper sees the same pattern for CLIP: uniform 79.97 against best single 80.38 on ImageNet (Table 3).
- Sorting matters: starting from the best model guarantees the soup is no worse than it on the held-out set. Random order gave 80.79 against 81.03 sorted in Table 3.
- The held-out set must be disjoint from training and test data. After five initial evaluations and four adaptive candidate-soup evaluations, a small or noisy held-out set (few queries) can select noise.
- Derive / compute
The paper approximates the loss gap between a two-model soup and the matching logit ensemble as ½α(1−α)·[−L″(α) + β²·E_x Var_Y(Δf_Y(x))], where L″ is the second derivative of the soup's loss along the path, β is a fixed inverse-temperature scale on the logits, Y is drawn from the soup's softmax and Δf is the logit difference between the endpoints. (a) At α = 0.5, compute the gap for curvature 0.40 with variance term 0.10, and for curvature −0.20 with variance term 0.30. (b) Show the bracket is exactly zero if the logits are linear in α, and connect this to WiSE-FT's linear-classifier case. (c) Say when the variance term is small.
What a strong answer covers
- (a) Prefactor ½ × 0.5 × 0.5 = 0.125. Case 1: 0.125 × (−0.40 + 0.10) = −0.0375, so the soup has lower loss. Case 2: 0.125 × (0.20 + 0.30) = +0.0625, so the ensemble wins. The negative local curvature contributes in the ensemble's favour; by itself it does not establish the maximum loss along the complete path.
- (b) With f(α) = f₀ + αΔf, the cross-entropy log Σ exp(βf_y′) − βf_y has second derivative β²·Var of Δf_Y under softmax(βf(α)). So −L″ + β²·E Var = 0, and the soup's logits equal the ensemble's exactly.
- WiSE-FT: when only the final linear layer differs, the weight-space ensemble decomposes into (1−α)·g(x)ᵀW_zero-shot + α·g(x)ᵀW_classifier, which is the output-space ensemble.
- (c) The variance term is small when the endpoints are similar (Δf small) or when the soup is confident (its softmax is close to a point mass). It always favours the ensemble. The soup wins only when the loss curves upward along the path more than the softmax alone would make it.
- Validation: the approximation correlates strongly with the true gap for fine-tuned CLIP pairs, except at learning rate 10⁻⁴, where models move far from initialisation.
- Mechanism
Averaging two networks trained from different random initialisations usually breaks the model, while averaging two fine-tunes of one pretrained checkpoint usually does not. Explain why, using the loss-barrier definition of linear mode connectivity, Frankle et al.'s instability results, Neyshabur et al.'s barrier and distance measurements, and permutation symmetry.
What a strong answer covers
- Barrier: the maximum error along (1−α)W₁ + αW₂ minus the mean endpoint error. Two models are linearly mode connected when it is ≈ 0; Frankle et al. treat under 2% as stable.
- Frankle et al.: two copies trained from the same random init with different data order interpolate to near chance error (LeNet on MNIST is the exception). Copies split after a short shared prefix are stable: about 3% of training for ResNet-20, 20% (epoch 18) for ResNet-50 on ImageNet. Early shared optimisation fixes the basin.
- Pretraining is an extreme shared prefix. Neyshabur et al. find no barrier between two runs fine-tuned from pretrained weights, but barriers between runs from random init, even with the same init values. The fine-tuned pair is also closer in parameter space (178 vs 822 on DomainNet clipart).
- Permutation symmetry: hidden units can be reordered (W′ = PW, b′ = Pb, next layer W·Pᵀ) without changing the function. Independent runs therefore learn similar features in different slots, and averaging mixes unrelated units, as in the two-unit toy where the naive average outputs 0.
- Git Re-Basin aligns units by solving assignment problems before averaging. It reaches zero barrier for wide ResNets on CIFAR-10 but only a 67% barrier reduction on ImageNet. Shared initialisation often preserves coordinate correspondence in moderate fine-tunes, so alignment is usually unnecessary there; neither shared initialisation nor a found permutation guarantees merge quality.
- What if…
Table 3 fine-tunes CLIP ViT-B/32 72 times. Compare the best single model, uniform soup, greedy soup, greedy soup in random order, learned soup by layer, ensemble and greedy ensemble on ImageNet and on the five distribution shifts. What does each comparison isolate, and why does selection on in-distribution data help ImageNet more than the shifts?
What a strong answer covers
- ImageNet: best single 80.38, uniform 79.97, greedy 81.03, greedy in random order 80.79, learned by layer 81.37, ensemble 81.19, greedy ensemble 81.90. Shifts: 47.83, 51.45, 50.75, 51.30, 50.87, 50.77, 49.44.
- Uniform vs greedy isolates ingredient selection. Uniform is best out of distribution (51.45) but below the best single model on ImageNet, because some high-learning-rate ingredients lie across a barrier.
- Sorted vs random order isolates the ordering heuristic (0.24 points on ImageNet). Learned soup by layer shows per-layer mixing weights help in distribution, but it needs every model in memory at once.
- The 72-model ensemble gains 0.16 ImageNet points and 0.02 shift-average points over the greedy soup, at 72 forward passes per input. The uniform soup, not the greedy soup, beats that ensemble on the shift average. Figure 4 separately supports a broader pairwise trend.
- Greedy selection maximises held-out ImageNet accuracy (about 2% of the training set). It therefore helps in distribution most; the shifts are never seen during selection.
- Critique
The paper's strongest results are on image classifiers built on large image–text pretrained models. Identify the weakest points in the evidence for souping LLMs and retrievers, and propose an experiment that would show whether a soup's gain for a fine-tuned text embedder is real.
What a strong answer covers
- Text evidence is thin. Greedy soups over 32 BERT or T5 runs per GLUE task give gains from 0.0 to 1.4 points in the displayed BERT-base/T5-base table, and the authors call these experiments preliminary.
- Gains shrink with less diverse pretraining: an ImageNet-22k pretrained ViT gains less than CLIP or ALIGN (§5).
- Calibration gains are not guaranteed: in the paper's controlled 20-seed experiment, the ensemble improved calibration while the uniform soup did not (Figure B.2). This matters when scores are thresholded, e.g. in reranking cascades or RAG abstention.
- Greedy selection reuses one held-out set for many decisions. With noisy IR metrics and small query sets it can overfit, and the paper reports no variance across held-out splits.
- Experiment: train several embedder runs from one checkpoint with varied seed, learning rate and data mixture; build uniform and greedy soups on a dev split; report nDCG@10 on disjoint test collections with paired significance tests across seeds; measure the barrier along pairs and score calibration.
- Design
You have a 7B LLM-based text embedder and budget for 8 fine-tuning runs before a release. Design a souping plan: which hyperparameters to vary, how to pick ingredients, whether to interpolate with the pre-fine-tuned checkpoint WiSE-FT style, how to evaluate, and when you would fall back to a single model or an ensemble.
What a strong answer covers
- Start every run from the same checkpoint to preserve coordinate correspondence, then check candidate interpolation and merge performance rather than assuming a shared basin. Vary seed, data order and mixture, hard-negative settings and learning rate within a moderate range; avoid very high learning rates that leave the basin.
- Selection: sort by score on a dev mixture disjoint from the reported benchmarks and run the greedy recipe; compare with a uniform soup. Llama-Embed-Nemotron's uniform average of six runs beat its best run by 0.84 mean points.
- Interpolation: sweep α between the pre-fine-tuned checkpoint and the soup to trade in-domain gains for out-of-domain robustness. α = 0.5 is a useful first trial from WiSE-FT's vision experiments, not an established optimum for an embedder, and both endpoints must support the same encoding interface. Tuning α needs no retraining: re-encode the dev queries and corpus for each candidate; the final release normally requires rebuilding the production index too.
- Checks: loss barrier for a few pairs before souping; per-task-type breakdown (retrieval vs clustering vs classification), since runs specialise; score calibration if thresholds are used downstream.
- Fallbacks: if pairs show barriers or greedy keeps only one ingredient, ship the best single run or distil. A standard multi-index score ensemble multiplies encoding work and generally index storage; other representation-fusion designs trade storage differently, but none is equivalent to a weight soup. A soup is one model, but the corpus must be re-embedded.