# Model Merging

> Model merging is the combination of two or more trained models that share an architecture into a single model by arithmetic on their weights, such as averaging them or adding the weight differences that fine-tuning produced, without further training on the original data.

- Identifier: PTL-0257
- Category: Prompt Optimization
- Canonical URL: https://protologue.com/t/model-merging/
- Also known as: weight merging, model soups, task arithmetic, task vectors
- Introduced: 2022

## Description

Wortsman et al. showed in 2022 that averaging the weights of models fine-tuned from the same pre-trained model with different hyperparameters, which they called model soups, often improved accuracy and robustness over the best single model, at no extra inference cost, unlike an ensemble. Ilharco et al. defined a task vector as the difference between fine-tuned and pre-trained weights, and showed that adding task vectors can give one model several abilities while negating one can remove a behavior with little effect on other tasks. Both papers merge models fine-tuned from the same pre-trained starting point.

## Related terms

- [Fine-Tuning](https://protologue.com/t/fine-tuning/)
- [Low-Rank Adaptation](https://protologue.com/t/low-rank-adaptation/)
- [Activation Steering](https://protologue.com/t/activation-steering/)
- [Mixture of Experts](https://protologue.com/t/mixture-of-experts/)

## Sources

- Wortsman et al. (2022). Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. https://arxiv.org/abs/2203.05482
- Ilharco et al. (2022). Editing Models with Task Arithmetic. https://arxiv.org/abs/2212.04089

## Cite this entry

Protologue. (2026). Model Merging. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0257). https://protologue.com/t/model-merging/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
