{
  "id": "model-merging",
  "code": "PTL-0257",
  "term": "Model Merging",
  "aliases": [
    "weight merging",
    "model soups",
    "task arithmetic",
    "task vectors"
  ],
  "category": "optimization",
  "definition": "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.",
  "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.",
  "example": null,
  "broader": [],
  "narrower": [],
  "related": [
    "fine-tuning",
    "low-rank-adaptation",
    "activation-steering",
    "mixture-of-experts"
  ],
  "introduced": 2022,
  "added": "2026-11-27",
  "sources": [
    {
      "title": "Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time",
      "authors": "Wortsman et al.",
      "year": 2022,
      "url": "https://arxiv.org/abs/2203.05482"
    },
    {
      "title": "Editing Models with Task Arithmetic",
      "authors": "Ilharco et al.",
      "year": 2022,
      "url": "https://arxiv.org/abs/2212.04089"
    }
  ],
  "url": "https://protologue.com/t/model-merging/",
  "citation": "Protologue. (2026). Model Merging. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0257). https://protologue.com/t/model-merging/"
}