EMNLP 2024finding1 citations

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.

BibTeX
@inproceedings{morrison-etal-2024-merge,
    title = "Merge to Learn: Efficiently Adding Skills to Language Models with Model Merging",
    author = "Morrison, Jacob  and
      Smith, Noah A.  and
      Hajishirzi, Hannaneh  and
      Koh, Pang Wei  and
      Dodge, Jesse  and
      Dasigi, Pradeep",
    editor = "Al-Onaizan, Yaser  and
      Bansal, Mohit  and
      Chen, Yun-Nung",
    booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2024",
    month = nov,
    year = "2024",
    address = "Miami, Florida, USA",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.findings-emnlp.915/",
    doi = "10.18653/v1/2024.findings-emnlp.915",
    pages = "15604--15621"
}
Merge to Learn: Efficiently Adding Skills to Language Models with Model Merging · EMNLP 2024