Knowledge Fusion of Large Language Models

Fanqi Wan, Xinting Huang, Deng Cai, Xiaojun Quan, Wei Bi +1 more
2/12/2026

No official code found. Best implementation: fanqiwan/FuseAI (602 stars, last commit 2025-01-25).

Abstract

While training large language models (LLMs) from scratch can generate models with distinct functionalities and strengths, it comes at significant costs and may result in redundant capabilities. Alternatively, a cost-effective and compelling approach is to merge existing pre-trained LLMs into a more potent model. However, due to the varying architectures of these LLMs, directly blending their weights is impractical. In this paper, we introduce the notion of knowledge fusion for LLMs, aimed at combining the capabilities of existing LLMs and transferring them into a single LLM. By leveraging the generative distributions of source LLMs, we externalize their collective knowledge and unique strengths, thereby potentially elevating the capabilities of the target model beyond those of any individual source LLM. We validate our approach using three popular LLMs with different architectures--Llama-2, MPT, and OpenLLaMA--across various benchmarks and tasks. Our findings confirm that the fusion of LLMs can improve the performance of the target model across a range of capabilities such as reasoning, commonsense, and code generation. Our code, model weights, and data are public at \url{https://github.com/fanqiwan/FuseLLM}.

View on arXivView PDF

Code Implementations(1)

fanqiwan/FuseAICommunity100%

FuseAI Project

60237ANTLR, ShellJan 18, 20241 years ago
large-language-modelsmachine-learningmodel-fusion

Similar Papers

Cite this paper

@article{wan2026knowledge,
  title  = {Knowledge Fusion of Large Language Models},
  author = {Fanqi Wan and Xinting Huang and Deng Cai and Xiaojun Quan and Wei Bi and Shuming Shi},
  year   = {2026},
  eprint = {2401.10491},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2401.10491},
  journal = {ICLR 2024 2024}
}

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

Discussion