Knowledge Fusion By Evolving Weights of Language Models

Guodong Du, Jing Li, Hanting Liu, Runhua Jiang, Shuyang Yu +3 more
6/18/2024
cs.CLcs.AIcs.CV

Official code: duguodong7/model-evolution (40 stars, Apache-2.0, last commit 2024-09-19).

Abstract

Fine-tuning pre-trained language models, particularly large language models, demands extensive computing resources and can result in varying performance outcomes across different domains and datasets. This paper examines the approach of integrating multiple models from diverse training scenarios into a unified model. This unified model excels across various data domains and exhibits the ability to generalize well on out-of-domain data. We propose a knowledge fusion method named Evolver, inspired by evolutionary algorithms, which does not need further training or additional training data. Specifically, our method involves aggregating the weights of different language models into a population and subsequently generating offspring models through mutation and crossover operations. These offspring models are then evaluated against their parents, allowing for the preservation of those models that show enhanced performance on development datasets. Importantly, our model evolving strategy can be seamlessly integrated with existing model merging frameworks, offering a versatile tool for model enhancement. Experimental results on mainstream language models (i.e., encoder-only, decoder-only, encoder-decoder) reveal that Evolver outperforms previous state-of-the-art models by large margins. The code is publicly available at {https://github.com/duguodong7/model-evolution}.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ACL 2024] Knowledge Fusion by Evolving Weights of Language Models

400Python, Jupyter NotebookJun 4, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{du2024knowledge,
  title  = {Knowledge Fusion By Evolving Weights of Language Models},
  author = {Guodong Du and Jing Li and Hanting Liu and Runhua Jiang and Shuyang Yu and Yifei Guo and Sim Kuan Goh and Ho-Kin Tang},
  year   = {2024},
  eprint = {2406.12208},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.12208v1}
}

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/2406.12208.svg)](https://codeofpaper.com/paper/2406.12208)

Discussion