Can Heterogeneous Language Models Be Fused?
Organizations: School of Computer Science and Technology, East China Normal University · Shanghai AI Laboratory
Abstract
Model merging aims to integrate multiple expert models into a single model that inherits their complementary strengths without incurring the inference-time cost of ensembling. Recent progress has shown that merging can be highly effective when all source models are homogeneous, i.e., derived from the same pretrained backbone and therefore share aligned parameter coordinates or compatible task vectors. Yet this assumption is increasingly unrealistic in open model ecosystems, where useful experts are often built on different families such as Llama, Qwen, and Mistral. In such heterogeneous settings, direct weight-space fusion becomes ill-posed due to architectural mismatch, latent basis misalignment, and amplified cross-source conflict. We address this problem with HeteroFusion for heterogeneous language model fusion, which consists of two key components: topology-based alignment that transfers knowledge across heterogeneous backbones by matching functional module structures instead of raw tensor coordinates, and conflict-aware denoising that suppresses incompatible or noisy transfer signals during fusion. We further provide analytical justification showing that preserving the target adapter basis while predicting structured updates leads to a stable and well-conditioned transfer process. Across heterogeneous transfer, multi-source fusion, noisy-source robustness, and cross-family generalization settings, HeteroFusion consistently outperforms strong merging, fusion, and ensemble baselines.
Figures & tables
| Method | NER | RE | ET | Avg | ||||||||||
| Mit-Movie | TweetNER7 | New York Times | CoNLL04 | FindVehicle | FabNER | |||||||||
| P | F1 | P | F1 | P | F1 | P | F1 | P | F1 | P | F1 | P | F1 | |
| Homogeneous merging baselines | ||||||||||||||
| Llama Merge | 56.05 | |||||||||||||
| EMR-Merging | ||||||||||||||
| TIES-Merging | 69.57 | |||||||||||||
| Method | Prec | F1 |
| HeteroFusion | 74.57 | 72.20 |
| w/o Alignment | 45.65 | 36.49 |
| w/o Denoising | 69.81 | 66.28 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Experiment Setup | Role | Base Model | Task |
| Llama Target Fusion (Corresponding to Table 2 ) | Target | Llama-3.1-8B-Instruct | mit-movie |
| Source | Qwen2.5-7B-Instruct | TweetNER7 | |
| Source | Qwen2.5-7B-Instruct | conll04 | |
| Source | Qwen2.5-7B-Instruct | New York Times | |
| Source | Mistral-7b-v0.3 | FabNER | |
| Source | Mistral-7b-v0.3 | FindVehicle |
| Alpha | NER | RE | ET | Avg | ||||||||||
| Mit-Movie | TweetNER7 | New York Times | Conll04 | FindVehicle | FabNER | |||||||||
| Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | |
| 0p05 | 84.96 | 83.86 | 59.16 | 55.53 | 68.41 | 62.64 | 62.55 | 60.12 | 86.40 | 86.38 | 75.59 | 75.60 | 72.85 | 70.69 |
| 0p1 | 84.19 | 83.02 | 62.27 | 55.61 | 67.53 | 60.12 | 64.30 | 60.48 | 85.68 | 85.66 | 76.04 | 76.04 | 73.34 | 70.16 |
| 0p15 | 84.65 | 83.61 | 58.33 | 54.70 | 66.31 | 59.67 | 66.41 | 62.64 | 83.93 | 83.93 | 76.01 | 76.03 | 72.61 | 70.10 |
| 0p2 | 83.98 | 82.90 | 59.96 | 56.18 | 66.28 | 59.58 | 63.43 | 60.08 | 86.48 | 86.48 | 76.58 | 76.58 | 72.79 | 70.30 |
| Setting | NER | RE | ET | Avg | ||||||||||
| Mit-Movie | TweetNER7 | New York Times | Conll04 | FindVehicle | FabNER | |||||||||
| Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | |
| alpha_0p3_mu_m0p05 | 83.44 | 82.52 | 61.57 | 56.69 | 68.79 | 62.54 | 66.93 | 62.81 | 85.05 | 85.03 | 75.85 | 75.84 | 73.60 | 70.90 |
| alpha_0p3_mu_m0p10 | 84.25 | 83.03 | 61.61 | 54.65 | 70.90 | 62.84 | 66.88 | 61.70 | 85.69 | 85.69 | 75.89 | 75.90 | 74.20 | 70.64 |
| alpha_0p3_mu_m0p15 | 83.53 | 82.41 | 59.14 | 54.46 | 67.03 | 60.91 | 67.57 | 62.56 | 86.56 | 86.56 | 76.11 | 76.10 | 73.32 | 70.50 |
| alpha_0p3_mu_m0p20 | 83.91 | 82.78 | 59.44 | 54.15 | 68.21 | 61.80 | 64.79 | 61.80 | 85.36 | 85.36 | 75.50 | 75.51 | 72.87 | 70.23 |
| Base Model | NER | RE | ET | Avg | ||||||||||
| Mit-Movie | TweetNER7 | New York Times | Conll04 | FindVehicle | FabNER | |||||||||
| Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | |
| BaseMitMovie | 84.46 | 83.29 | 59.24 | 55.04 | 68.46 | 62.26 | 67.40 | 63.48 | 86.71 | 86.71 | 77.49 | 77.48 | 73.96 | 71.38 |
| BaseConll04 | 81.57 | 79.61 | 60.90 | 56.63 | 68.14 | 60.56 | 71.46 | 68.93 | 86.09 | 86.08 | 73.31 | 73.31 | 73.58 | 70.85 |
| BaseFabNER | 80.70 | 78.61 | 62.35 | 55.13 | 67.96 | 58.48 | 65.91 | 62.05 | 85.69 | 85.69 | 83.04 | 83.02 | 74.28 | 70.50 |
| BaseFindVehicle | 79.90 | 78.26 | 60.69 | 54.53 | 66.94 | 59.52 | 66.82 | 63.18 | 84.94 | 84.94 | 75.46 | 75.46 | 72.46 | 69.32 |
| Method | NER | RE | ET | Avg | ||||||||||
| Mit-Movie | TweetNER7 | New York Times | Conll04 | FindVehicle | FabNER | |||||||||
| Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | Prec | F1 | |
| EMR-Merging | 68.69 | 47.39 | 54.89 | 44.36 | 10.11 | 9.17 | 0.87 | 0.87 | 48.80 | 28.14 | 34.68 | 19.90 | 36.34 | 24.97 |
| Breadcrumbs | 57.88 | 40.00 | 51.12 | 39.63 | 3.45 | 3.06 | 2.16 | 2.16 | 58.56 | 37.27 | 40.83 | 25.54 | 35.67 | 24.61 |
| TIES-Merging | 60.95 | 41.34 | 52.53 | 40.08 | 7.97 | 7.29 | 0.87 | 0.87 | 47.94 | 28.16 | 35.24 | 20.32 | 34.25 | 23.01 |
| Task Arithmetic | 58.52 | 39.93 | 50.22 | 38.41 | 2.34 | 1.98 | 2.16 | 2.16 | 52.91 | 31.10 | 36.30 | 21.46 | 33.74 | 22.51 |
| Role | Base Model | Task | Type |
| Target | Llama-3.1-8B-Instruct | NER: mit-movie | Anchor |
| Source | Qwen2.5-7B-Instruct | TweetNER7 | Useful Experts |
| Source | Qwen2.5-7B-Instruct | conll04 | |
| Source | Qwen2.5-7B-Instruct | New York Times | |
| Source | Qwen2.5-7B-Instruct | FabNER | |
| Source | Qwen2.5-7B-Instruct | FindVehicle |
| Method | SST-2 | QNLI | RTE | MRPC (F1/Acc) | CoLA | Avg |
| EMR-Merging | 96.4 | 91.3 | 83.8 | 82.1/75.5 | 44.7 | 79.66 |
| TIES-Merging | 96.5 | 91.5 | 83.2 | 81.7/75.2 | 41.6 | 78.90 |
| Breadcrumbs | 96.5 | 90.6 | 84.7 | 82.0/75.8 | 51.4 | 81.04 |
| DELLA | 97.0 | 90.9 | 82.6 | 80.6/73.9 | 38.8 | 77.98 |
| DARE (TIES+) | 96.7 | 91.0 | 82.7 | 80.4/73.7 | 38.9 | 77.94 |
| Task Arithmetic | 96.8 | 91.0 | 83.7 | 81.0/74.5 | 45.2 | 79.54 |
Language Model Merging
Language model merging combines capabilities from multiple models or adapters by composing their weights, updates, or outputs.
See all 110 papers