Abstract
Recently, FuseLLM introduced the concept of knowledge fusion to transfer the collective knowledge of multiple structurally varied LLMs into a target LLM through lightweight continual training. In this report, we extend the scalability and flexibility of the FuseLLM framework to realize the fusion of chat LLMs, resulting in FusionChat. FusionChat comprises two main stages. Firstly, we undertake knowledge fusion for structurally and scale-varied source LLMs to derive multiple target LLMs of identical structure and size via lightweight fine-tuning. Then, these target LLMs are merged within the parameter space, wherein we propose a novel method for determining the merging weights based on the variation ratio of parameter matrices before and after fine-tuning. We validate our approach using three prominent chat LLMs with diverse architectures and scales, namely NH2-Mixtral-8x7B, NH2-Solar-10.7B, and OpenChat-3.5-7B. Experimental results spanning various chat domains demonstrate the superiority of FusionChat-7B across a broad spectrum of chat LLMs at 7B and 34B scales, even surpassing GPT-3.5 (March) and approaching Mixtral-8x7B-Instruct.
Introduction
The quest to build more powerful Large Language Models (LLMs) usually involves massive compute budgets and training from scratch. However, the open-source community is flooded with high-quality chat models that often possess different "specialties" and architectures. Combining these strengths into a single model presents a significant challenge: ensemble methods are computationally expensive, standard model merging requires identical architectures, and traditional knowledge distillation often fails to capture the collective intelligence of a diverse committee of models.
FuseChat addresses these challenges by introducing a "fuse-then-merge" framework. This approach integrates the capabilities of structurally varied source models into a single, efficient target model without the prohibitive cost of training from scratch.
Methodology: The Fuse-then-Merge Framework
The FuseChat framework operates in two distinct stages to achieve knowledge fusion across diverse architectures.
1. Pairwise Knowledge Fusion
The first stage involves selecting a "pivot" model (e.g., OpenChat-3.5-7B). For every other source model—including those with different architectures like the Mixture-of-Experts (MoE) based Mixtral—the pivot model undergoes lightweight fine-tuning. During this process, the pivot is trained to mimic the probability distributions of the source model. This results in several "target" models that share the pivot's architecture but have internalized the unique knowledge of different sources.
2. Model Merging via VARM
Once multiple target models of the same size are obtained, they are merged in the parameter space. FuseChat introduces a novel method called Variation Ratio Merge (VARM). Instead of simple averaging, VARM assigns weights to parameter matrices based on their variation ratio—the degree to which they changed during the fine-tuning stage. The intuition is that matrices with higher variation ratios have captured more critical "new" knowledge from the source model and should be prioritized during the merge.
Experimental Setup and Results
To facilitate fusion, the team curated FUSIONCHAT MIXTURE, a high-quality dataset of 95,000 dialogues combining general instructions (Orca-Best, ShareGPT) and specialized skills (math, code). Evaluation was performed using MT-Bench, a rigorous benchmark using GPT-4 to grade multi-turn dialogues across eight domains.
The results demonstrate that FuseChat-7B punches significantly above its weight class:
- Superior Performance: FuseChat-7B VARM achieved an average MT-Bench score of 8.22, surpassing GPT-3.5 (7.94) and Claude-1.0 (7.90).
- Efficiency: As shown in the performance-parameter trade-off, the 7B fused model approaches the performance of the Mixtral-8x7B source model (8.33), despite having roughly 1/6th the active parameters during inference.
- Methodological Advantage: VARM outperformed other popular merging techniques like SLERP, TIES, and DARE, validating the importance of variation-based weighting.
Conclusion and Future Work
FuseChat demonstrates that knowledge fusion is a viable and efficient path toward creating high-performance LLMs. By treating the ratio of parameter change as a proxy for importance, the framework allows for automatic, fine-grained weight allocation.
Future work will focus on scaling the framework to a larger number of source models and investigating methods to better mitigate "catastrophic forgetting" during the pairwise fusion stage. The current results already indicate that FuseChat-7B is a competitive alternative to much larger models, offering a scalable "plug-and-play" solution for model improvement.
Summary updated