Dataless Knowledge Fusion by Merging Weights of Language Models

Xisen Jin, Xiang Ren, Daniel Preotiuc-Pietro, Pengxiang Cheng
12/19/2022
cs.CLcs.LG

Official code: bloomberg/dataless-model-merging (92 stars, Python, Apache-2.0, last commit 2023-07-25).

Abstract

Fine-tuning pre-trained language models has become the prevalent paradigm for building downstream NLP models. Oftentimes fine-tuned models are readily available but their training data is not, due to data privacy or intellectual property concerns.

Show full abstract

This creates a barrier to fusing knowledge across individual models to yield a better single model. In this paper, we study the problem of merging individual models built on different training data sets to obtain a single model that performs well both across all data set domains and can generalize on out-of-domain data. We propose a dataless knowledge fusion method that merges models in their parameter space, guided by weights that minimize prediction differences between the merged model and the individual models. Over a battery of evaluation settings, we show that the proposed method significantly outperforms baselines such as Fisher-weighted averaging or model ensembling. Further, we find that our method is a promising alternative to multi-task learning that can preserve or sometimes improve over the individual models without access to the training data. Finally, model merging is more efficient than training a multi-task model, thus making it applicable to a wider set of scenarios.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code release for Dataless Knowledge Fusion by Merging Weights of Language Models (https://openreview.net/forum?id=FCnohuR6AnM)

926Python, Jupyter NotebookFeb 27, 20233 years agoApache-2.0
language-modelmodel-merging

Similar Papers

Cite this paper

@article{jin2022dataless,
  title  = {Dataless Knowledge Fusion by Merging Weights of Language Models},
  author = {Xisen Jin and Xiang Ren and Daniel Preotiuc-Pietro and Pengxiang Cheng},
  year   = {2022},
  eprint = {2212.09849},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.09849}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.09849.svg)](https://codeofpaper.com/paper/2212.09849)

Discussion