Explain model merging: task arithmetic, TIES, DARE and SLERP. When does merging actually work?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Merging combines the weights of several models fine-tuned from a common base. No training, no data, minutes on CPU. The core object is the task vector: tau_i = theta_ft_i - theta_base.
Full worked answer
Merging combines the weights of several models fine-tuned from a common base. No training, no data, minutes on CPU. The core object is the task vector: tau_i = theta_ft_i - theta_base.
Task arithmetic: theta = theta_base + sum(lambda_i * tau_i). Adding a task vector adds a behaviour, and negating one can subtract it (a crude unlearning knob).
TIES fixes interference, where task vectors overlap and cancel. Three steps: trim each task vector to its top-magnitude entries (~top 20%), elect a sign per parameter by summed magnitude across models, then average only the entries agreeing with the elected sign. Sign conflict is the main thing that destroys naive averaging.
DARE exploits redundancy: randomly drop 80-99% of the delta entries and rescale the survivors by 1/(1-p). Deltas are highly redundant, so this barely hurts individually and dramatically reduces overlap between models. DARE+TIES stacked is a common recipe.
SLERP interpolates spherically between exactly two models, preserving norm rather than shrinking it the way naive linear averaging does. Two models only.
When it works: the models must share a common ancestor and sit in the same loss basin. Merging two independently pretrained models does not work, permutation symmetry means their neurons are not comparable. Reliable wins are combining capabilities from sibling fine-tunes, averaging checkpoints from one run (model soups), merging LoRAs on a shared base, and merging a narrow fine-tune back toward base at lambda around 0.7 to buy back general capability. That last one is effectively a dial on the alignment tax, and it is the use I reach for most.
Be honest in the interview: this is cheap and empirical. There is no principled way to choose lambda, you sweep it against a real eval. mergekit is the standard tool. Merging is a free lunch when it works and a mystery when it does not.
What a good answer covers
- Merging combines the weights of several models fine-tuned from a common base
- No training, no data, minutes on CPU
- The core object is the task vector: tau_i = theta_ft_i - theta_base
- Task arithmetic: theta = theta_base + sum(lambda_i tau_i)
- Adding a task vector adds a behaviour, and negating one can subtract it (a crude unlearning knob)
Key terms: Task arithmetic · TIES · DARE · SLERP
In the glossary: Alignment
Interviewer follow-ups to expect
Why does merging fail across independently pretrained models but work across fine-tunes of one base?
How would you merge three LoRAs of different ranks trained on the same base?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep