Merge to Learn: Efficiently Adding Skills to Language Models with Model Merging
Not on the map. Why?
Abstract (arXiv)
Adapting general-purpose language models to new skills is currently an expensive process that must be repeated as new instruction datasets targeting new skills are created, or can cause the models to forget older skills. In this work, we investigate the effectiveness of adding new skills to preexisting models by training on the new skills in isolation and later merging with the general model (e.g. using task vectors). In experiments focusing on scientific literature understanding, safety, and coding, we find that the parallel-train-then-merge procedure, which is significantly cheaper than retraining the models on updated data mixtures, is often comparably effective. Our experiments also show that parallel training is especially well-suited for enabling safety features in LMs relative to continued finetuning and retraining, as it dramatically improves model compliance with safe prompts while preserving its ability to refuse dangerous or harmful prompts.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 25 of its 34 references that are in the map. First posted on arXiv 16 Oct 2024.
Builds on
25 of 34 references.
References · 25
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,330
- 2021Robust fine-tuning of zero-shot modelscited by 785
13 more
- 2013An Empirical Investigation of Catastrophic Forgetting in Gradient-Based Neural Networkscited by 711
- 2023Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunchcited by 679
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
- 2023How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resourcescited by 405
- 2022Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language Modelscited by 187
- 2022Patching open-vocabulary models by interpolating weightscited by 187
- 2024Aya Dataset: An Open-Access Collection for Multilingual Instruction Tuningcited by 174
- 2020Recall and Learn: Fine-tuning Deep Pretrained Language Models with Less Forgettingcited by 169
- 2019Uncertainty-based Continual Learning with Adaptive Regularizationcited by 144
- 2019Mixout: Effective Regularization to Finetune Large-scale Pretrained Language Modelscited by 141
- 2024SciRIFF: A Resource to Enhance Language Model Instruction-Following over Scientific Literaturecited by 37
- 2023Time is Encoded in the Weights of Finetuned Language Modelscited by 31
- 2022Linear Interpolation In Parameter Space is Good Enough for Fine-Tuned Language Modelscited by 7
Built on by
Citing papers per year: 2025: 5; 2026: 2.
7 papers.
- 2025Continually Adding New Languages to Multilingual Language Modelscited by 7
- 2025LaMDAgent: An Autonomous Framework for Post-Training Pipeline Optimization via LLM Agentscited by 6
- 2025Probing the Robustness of Large Language Models Safety to Latent Perturbationscited by 4
- 2025Robust Learning of Diverse Code Editscited by 2
- 2025CodeMerge: Codebook-Guided Model Merging for Robust Test-Time Adaptation in Autonomous Drivingcited by 1
- 2026Train Separately, Merge Together: Modular Post-Training with Mixture-of-Expertscited by 1
- 2026When Do Task Vectors Interfere? Mapping the Validity Boundaries of Weight-Space Compositioncited by 1
- 2026When Do Task Vectors Interfere? Mapping the Validity Boundaries of Weight-Space Composition10 Aug 2026
- 2026Train Separately, Merge Together: Modular Post-Training with Mixture-of-Experts20 Apr 2026
- 2025Continually Adding New Languages to Multilingual Language Models14 Sep 2025
- 2025Probing the Robustness of Large Language Models Safety to Latent Perturbations19 Jun 2025
- 2025LaMDAgent: An Autonomous Framework for Post-Training Pipeline Optimization via LLM Agents28 May 2025
- 2025CodeMerge: Codebook-Guided Model Merging for Robust Test-Time Adaptation in Autonomous Driving22 May 2025
- 2025Robust Learning of Diverse Code Edits5 Mar 2025