AI State of the Art
SOTA/Après l'ajustement fin : fusion, évaluation, extension/29 min
Section 123

Model Merging: DARE, Model Soups, SLERP

Listen as a podcast →

Beyond TIES: Three Flaws, Three Answers

This page follows TIES-Merging, which fixes two problems in naive merging: noise and sign conflicts. Three later methods each attack a different flaw, and it is worth stating which one up front:

  • DARE fixes the fact that TIES has to resolve sign conflicts after they occur. DARE makes them unlikely in the first place, by deleting so many modifications that two models almost never contend over the same parameter.
  • Model Soups fixes the fact that TIES assumes models fine-tuned on different tasks. Model Soups handles the opposite case: several fine-tuning runs on the same task, averaged to gain robustness.
  • SLERP fixes a flaw in arithmetic averaging itself: averaging two weight sets shortens the result. SLERP interpolates along a circular arc, which preserves length.

As in the previous page, everything here operates on learned weights: you read files of frozen parameters, combine them, and write a new file. No forward pass over data, no activations.

Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunch (Yu et al., 2023)

DARE: Drop And REscale

The Flaw in TIES That DARE Fixes

In one sentence: TIES has to settle sign conflicts between models by a vote; DARE arranges for there to be almost no conflict left to settle, by randomly throwing away nearly all of each model's modifications.

The paper that introduces DARE carries an unexpected title (Language Models are Super Mario) because its authors liken absorbing skills from one model into another to picking up power-ups in a video game. It is the same paper cited above.

The Counter-Intuitive Finding

Here's a result that surprises: you can randomly remove 90 %, even 99 %, of the modifications made by fine-tuning without degrading performance. The paper's abstract is blunt about it: DARE "can effortlessly eliminate 90% or even 99% of them."

The paper also supplies the order of magnitude that explains why: the values of those modifications are tiny, typically within 0.002 in absolute value. These are not structural changes; they are a dust of highly redundant micro-adjustments. Only a few of them carry the acquired skill. It's like an iceberg: the visible part (the decisive parameters) is tiny compared to the total mass of modifications.

Two plots from the DARE paper showing performance as a function of the delta drop rate, from 0 to 0.99: on the left, GSM8K accuracy for WizardMath 7B, 13B and 70B; on the right, HumanEval pass@1 for three WizardCoder models and llama-2-13b-code-alpaca.
The evidence behind the counter-intuitive claim. The two benchmarks used are GSM8K (Grade School Math 8K, arithmetic word problems) and HumanEval (small programming exercises to solve). The x-axis is the fraction of fine-tuning updates deleted at random, the y-axis is performance. The curves stay flat all the way to 0.9: you can throw away 90% of the updates and lose nothing. Only at 0.99 do the smaller models fall off a cliff, while the largest ones (70 billion parameters, in green) still hold up.Source : DARE paper by Yu et al. (figure 2)

The Algorithm

For each task vector τ\tau (the difference between the fine-tuned weights and the base weights):

  1. Drop: for each parameter independently, draw at random whether it is kept or reset to zero, with probability pp of deletion (for example p=0.9p = 0.9, so 90 % of the modifications disappear).
  2. Rescale: multiply the surviving modifications by 11−p\frac{1}{1-p}.

τdare=mask(τ,p)1−p\tau_{\text{dare}} = \frac{\text{mask}(\tau, p)}{1 - p}

Reading the symbols: τ\tau is the original task vector, mask(τ,p)\text{mask}(\tau, p) the same vector after a fraction pp of its coefficients have been randomly deleted, and 1−p1-p the fraction kept. In one sentence: keep one modification in ten, then multiply it by ten.

Where does that factor come from? From preserving the average, and the arithmetic can be done in your head. If each modification survives with probability 1−p=0.11 - p = 0.1, the sum of modifications on a given parameter is on average ten times too small. Multiplying by 11−p=10.1=10\frac{1}{1-p} = \frac{1}{0.1} = 10 restores exactly its expected value. The abstract describes this factor in those terms: rescaling the remaining parameters by 1/(1−p)1/(1-p) to approximate the original values. It is the same principle as the dropout (random switching-off of neurons) used during neural network training.

Then add the emptied task vectors as in ordinary merging:

θmerged=θbase+∑iλi×τidare\theta_{\text{merged}} = \theta_{\text{base}} + \sum_i \lambda_i \times \tau_{i}^{\text{dare}}

Reading the symbols: θbase\theta_{\text{base}} is the starting weight set, τidare\tau_i^{\text{dare}} the emptied task vector of model ii, λi\lambda_i its blending coefficient, and ∑\sum the sum across all models.

Two-part diagram. On top, a pre-trained model is fine-tuned on math data, then DARE randomly drops part of the updates and rescales the survivors. Below, two models fine-tuned on math and on code go through DARE before being merged, and the result is compared with a merge done without DARE.
Each grid stands for a model's parameters and each coloured icon for an update introduced by fine-tuning. Top: DARE empties the grid at random (Drop) then strengthens the surviving icons (Rescale), and the model stays good at math. Bottom: because the cells kept by the two models barely overlap, the merge retains both skills, whereas merging without DARE (right) yields a model that fails at both.Source : DARE paper by Yu et al. (figure 3)
Counter-intuitive result

Removing 90 % of a fine-tuning's modifications preserves the bulk of its performance. This demonstrates massive redundancy: only a few parameters carry the learned skill. The abstract adds an important point: the effect is more pronounced on large models, where the merged model can even surpass any of its source models.

Advantage for Merging

This is where DARE becomes useful for merging. If each model keeps only 10 % of its modifications, and not the same 10 % since each draw is independent, then the probability that two models both touch the same parameter is 0.10×0.10=0.010.10 \times 0.10 = 0.01, i.e. 1 %. Conflicts therefore collapse on their own, with no need to settle them by a vote as TIES does. This is elementary probability, not an experimental result: it relies on the two draws being independent, which holds here since each model draws its own mask separately.

DARE + TIES: Combining the Two

In practice the two are often chained: first DARE, which massively empties the task vectors, then TIES, which settles the residual conflicts by vote. Merging tools expose that combination under the name dare_ties.

Model Soups: Averaging Several Runs on the Same Task

The Flaw in TIES and DARE That Model Soups Fixes

In one sentence: TIES and DARE assume models fine-tuned on different tasks that must be reconciled; Model Soups handles the case where every model targets the same task, where averaging reconciles nothing but buys robustness.

An important correction, often mis-reported: this is not about averaging successive checkpoints of a single training run. It is about several distinct, complete fine-tuning runs, all starting from the same pre-trained model but carried out with different settings, learning rate, random seed, decay curve. That gives you five independent fine-tuned models; you average their weights.

Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time (Wortsman et al., 2022)

Types of Soups

  • Uniform soup: a simple average of all the models, the most basic version.
  • Greedy soup: add the models one at a time, and keep a model in the soup only if it improves the score on held-out data. Models that degrade it are discarded.
  • Learned soup: learn a weighting coefficient for each model.
What the paper shows, and what it does not

The abstract states that averaging the weights of several models fine-tuned with different configurations "often improves" (not always) accuracy and robustness. The clearest demonstrated gain has a figure attached: a ViT-G model reaches 90.94 % top-1 accuracy on ImageNet, a state of the art at the time of publication.

The economic advantage, by contrast, is structural: unlike a conventional ensemble, where you must run every model and vote, a soup produces one model. The abstract puts it as: without incurring any additional inference or memory cost.

Why It Works: A Single Error Basin

The explanation is geometric. The authors observe that models fine-tuned from the same pre-trained checkpoint "often appear to lie in a single low error basin": picture one valley, not two valleys separated by a ridge. As long as there is no ridge between two models, the halfway point is no higher than they are, it is often lower. The weight average lands at the bottom of the valley, a flatter place, hence less sensitive to small variations in the data, which is precisely what generalizing better means.

Six contour maps from the Model Soups paper, drawn in weight space: ImageNet train loss, ImageNet test error and average error on five distribution shifts, for two pairs of models fine-tuned from the same initialization with different learning rates or seeds.
The loss landscape in the plane defined by the initialization and two fine-tuned models. On the left map (train loss) both models sit inside the same wide red basin: no barrier separates them, so averaging them is safe. On the right maps (test error) the best point is not on either model but between them, at the centre of the dark region, which is exactly where the weight average lands.Source : Model Soups paper by Wortsman et al. (figure 2)

SLERP: Spherical Interpolation

The Flaw in Arithmetic Averaging That SLERP Fixes

In one sentence: averaging two weight sets shortens the result, because a point halfway between two arrows of equal length sits closer to the centre than either of them; SLERP follows a circular arc instead of a chord, which preserves length.

The flaw, in a picture. Take two clock hands of equal length, one on twelve, the other on three. The point halfway between their two tips is not on the dial: it is well inside it. Arithmetic averaging (called LERP, for Linear intERPolation) does exactly that:

LERP(a,b,0.5)=0.5×a+0.5×b\text{LERP}(a, b, 0.5) = 0.5 \times a + 0.5 \times b

Reading the symbols: aa and bb are the two weight sets to blend, and 0.50.5 is the equal-parts dosage. The norm (the length; see Training stability) of the result is strictly smaller than that of aa and bb as soon as the two point in different directions.

Why that matters: the length of a layer's weights controls the amplitude of what it produces. Shortening it turns the layer's volume down without anyone having decided to.

The Solution: SLERP

SLERP stands for Spherical Linear intERPolation. The idea did not come from machine learning: it comes from 1980s computer animation, where you want to rotate an object from one orientation to another without it shrinking on the way. It was carried over unchanged to model weights.

Instead of cutting in a straight line between the two tips, you follow the circular arc that joins them:

SLERP(a,b,t)=sin⁡((1−t)Ω)sin⁡(Ω)×a+sin⁡(tΩ)sin⁡(Ω)×b\text{SLERP}(a, b, t) = \frac{\sin((1-t)\Omega)}{\sin(\Omega)} \times a + \frac{\sin(t\Omega)}{\sin(\Omega)} \times b

Reading the symbols: aa and bb are the two weight sets; tt is the position along the path, from 00 (you are at aa) to 11 (you are at bb); Ω\Omega (capital Greek omega) is the angle between aa and bb; sin⁡\sin is the sine function, which describes the height of a point on a circle. In one sentence: the two coefficients are no longer tt and 1−t1-t as in an ordinary average, but ratios of sines, picked precisely so that the result stays on the circle.

What SLERP guarantees

The result stays on the sphere of the same radius: its length is preserved, and the path is traversed at constant angular speed. This is not an experimental finding about language models but a geometric property of the formula.

What it does not guarantee is a better model. Preserving length removes an artefact of averaging; it addresses neither noise nor sign conflicts.

Limitation: Two Models Only

SLERP is naturally defined only for 2 models, since a circular arc joins two points. To merge more, you chain SLERP (merge A and B, then the result with C) or combine it with another method. Chaining is not neutral: the result depends on the order you choose.

Comparison Table: Which Method for Which Case?

MethodNumber of modelsHandles conflictsSettings to chooseThe flaw it fixes
Simple averageanyNoλi\lambda_i, (it is the baseline)
Task arithmeticanyNoλi\lambda_iLets you dose each skill
TIESanyYes, by sign voteλi\lambda_i, densityNoise and conflicts of the simple average
DAREanyYes, by making them rareλi\lambda_i, drop rateTIES had to arbitrate conflicts
DARE + TIESanyYes, both mechanismsλi\lambda_i, density, drop rateConflicts left over after DARE
SLERP2 onlyNottAveraging shortens the weights
Model SoupsanyNot applicable (same task)Model selectionAssumes different tasks

MergeKit: The Unified Toolbox

MergeKit, published by Arcee AI, implements these methods. You describe the merge in a YAML file (YAML Ain't Markup Language, a human-readable configuration format) and run a single command-line tool. You can even apply different strategies per layer, SLERP on the early layers and TIES on the later ones, say.

The exact command and option names change from version to version: check the documentation of the version you have installed rather than a copied example.

The Crucial Point: Model Merging Isn't Magic

Unpredictability

Merging is powerful but fundamentally unpredictable. The result depends on the source models, how close they are, and the settings. Always budget evaluation time, see Evaluation after fine-tuning. Successful merges are the fruit of many attempts, not a lucky break.

Impact: Improving a Model Without Retraining It

The appeal can be derived without quoting any dubious figure. Merging means reading weight files, doing subtractions, random draws and averages, then writing a new file. No gradient, no training data, no forward pass over text. The cost is that of a file operation.

That is what explains the adoption: with no powerful graphics processing unit (GPU) and no training budget, you can produce an all-round model out of existing ones. The DARE abstract notes in passing that a model merged this way ranked first among 7-billion-parameter models on the public Open LLM Leaderboard at the time of publication.


The essentials: DARE randomly throws away 90 to 99 % of the modifications then rescales the rest, which makes conflicts vanish instead of arbitrating them. Model Soups averages several fine-tuning runs on the same task to gain robustness, with no cost at inference time. SLERP interpolates along a circular arc, which avoids shortening the weights. All three combine; none of them removes the need to evaluate the result.

Check your understanding0 / 5

1. With a 90 % drop rate, DARE multiplies the surviving modifications by 10. What is that rescaling for?

2. Why does merging two models processed with DARE (90 % drop rate) produce almost no conflicts?

3. What exactly gets averaged in a Model Soup?

4. What exactly does SLERP guarantee, and what does it not guarantee?

5. A precise merge recipe (dare_ties, same settings) produced an excellent model out of two models A and B. Applied to two other models C and D, what should you expect?