EMNLP Findings2024
Merge to Learn: Efficiently Adding Skills to Language Models with Model Merging
Jacob Morrison, Noah A. Smith, Hannaneh Hajishirzi, Pang Wei Koh, Jesse Dodge, Pradeep Dasigi
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- NextCoder: Robust Adaptation of Code LMs to Diverse Code Edits cites Measuring Massive Multitask Language Understanding
- NextCoder: Robust Adaptation of Code LMs to Diverse Code Edits cites Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation
- FlexOLMo: Open Language Models for Flexible Data Use cites Measuring Massive Multitask Language Understanding
- FlexOLMo: Open Language Models for Flexible Data Use cites Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- FlexOLMo: Open Language Models for Flexible Data Use cites Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation
- TruthfulQA: Measuring How Models Mimic Human Falsehoods cites Measuring Massive Multitask Language Understanding
- CodeMerge: Codebook-Guided Model Merging for Robust Test-Time Adaptation in Autonomous Driving cites Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- LaMDAgent: An Autonomous Framework for Post-Training Pipeline Optimization via LLM Agents cites Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
Cited by top-tier papers5
- FlexOLMo: Open Language Models for Flexible Data UseWeijia Shi, Akshita Bhagia, Kevin Farhat, Niklas Muennighoff et al.NeurIPS 2025 · 16 citations
- CodeMerge: Codebook-Guided Model Merging for Robust Test-Time Adaptation in Autonomous DrivingHuitong Yang, Zhuoxiao Chen, Fengyi Zhang, Zi Huang et al.NeurIPS 2025 · 2 citations
- NextCoder: Robust Adaptation of Code LMs to Diverse Code EditsTushar Aggarwal, Swayam Singh, Abhijeet Awasthi, Aditya Kanade et al.ICML 2025
- Probing the Safety Robustness of LLMs in Latent SpaceTianle Gu, Kexin Huang, Zongqi Wang, Yixu Wang et al.ACL 2026
- LaMDAgent: An Autonomous Framework for Post-Training Pipeline Optimization via LLM AgentsTaro Yano, Yoichi Ishibashi, Masafumi OyamadaEMNLP 2025
Builds on18
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
- Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou et al.ICLR 2021 · 7,905 citations
- TruthfulQA: Measuring How Models Mimic Human FalsehoodsStephanie Lin, Jacob Hilton, Owain EvansACL 2022 · 3,228 citations
- Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code GenerationJiawei Liu, Chunqiu Steven Xia, Yuyao Wang, Lingming ZhangNeurIPS 2023 · 2,317 citations
- Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timeMitchell Wortsman, Gabriel Ilharco, Samir Yitzhak Gadre, Rebecca Roelofs et al.ICML 2022 · 1,464 citations
Related papers
- SAFT: Safety-Preserving Adaptation via Fine-Tuning Transfer for Large Language ModelsZhiwen Ruan, Yan Yang, Zhuocheng Liang, Yun Chen et al.KDD 2026
- Safeguard Fine-Tuned LLMs Through Pre- and Post-Tuning Model MergingHua Farn, Hsuan Su, Shachi H. Kumar, Saurav Sahay et al.EMNLP Findings 2025 · 3 citations
- SciLitLLM: How to Adapt LLMs for Scientific Literature UnderstandingSihang Li, Jin Huang, Jiaxi Zhuang, Yaorui Shi et al.ICLR 2025 · 1 citation
- SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model MergingAladin Djuhera, Swanand Ravindra Kadhe, Farhan Ahmed, Syed Zawad et al.ACL Findings 2026
- Unlocking the Potential of Model Merging for Low-Resource LanguagesMingxu Tao, Chen Zhang, Quzhe Huang, Tianyao Ma et al.EMNLP Findings 2024 · 3 citations
