Cool-Fusion: Fuse Large Language Models without Training

Cong Liu, Xiaojun Quan, Yan Pan, Liang Lin, Weigang Wu +1 more
7/29/2024
cs.CL

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

We focus on the problem of fusing two or more heterogeneous large language models (LLMs) to leverage their complementary strengths. One of the challenges of model fusion is high computational load, specifically in fine-tuning or aligning vocabularies. To address this, we propose Cool-Fusion, a simple yet effective approach that fuses the knowledge of source LLMs, which does not require training. Unlike ensemble methods, Cool-Fusion is applicable to any set of source LLMs that have different vocabularies. To overcome the vocabulary discrepancies among LLMs, we ensemble LLMs on text level, allowing them to rerank the generated texts by each other with different granularities. Extensive experiments have been conducted across a variety of benchmark datasets. On GSM8K, Cool-Fusion increases accuracy from three strong source LLMs by a significant margin of 17.4\%.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2024coolfusion,
  title  = {Cool-Fusion: Fuse Large Language Models without Training},
  author = {Cong Liu and Xiaojun Quan and Yan Pan and Liang Lin and Weigang Wu and Xu Chen},
  year   = {2024},
  eprint = {2407.19807},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.19807v2}
}

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

Discussion