Ensemble Learning for Heterogeneous Large Language Models with Deep Parallel Collaboration

Yi-Chong Huang, Xiaocheng Feng, Baohang Li, Yang Xiang, Hui Wang +2 more
2/3/2026

No official code found. Best implementation: OrangeInSouth/DeePEn (62 stars, last commit 2024-08-07).

Abstract

Large language models (LLMs) exhibit complementary strengths in various tasks, motivating the research of LLM ensembling. However, existing work focuses on training an extra reward model or fusion model to select or combine all candidate answers, posing a great challenge to the generalization on unseen data distributions. Besides, prior methods use textual responses as communication media, ignoring the valuable information in the internal representations. In this work, we propose a training-free ensemble framework DeePEn, fusing the informative probability distributions yielded by different LLMs at each decoding step. Unfortunately, the vocabulary discrepancy between heterogeneous LLMs directly makes averaging the distributions unfeasible due to the token misalignment. To address this challenge, DeePEn maps the probability distribution of each model from its own probability space to a universal relative space based on the relative representation theory, and performs aggregation. Next, we devise a search-based inverse transformation to transform the aggregated result back to the probability space of one of the ensembling LLMs (main model), in order to determine the next token. We conduct extensive experiments on ensembles of different number of LLMs, ensembles of LLMs with different architectures, and ensembles between the LLM and the specialist model. Experimental results show that (i) DeePEn achieves consistent improvements across six benchmarks covering subject examination, reasoning, and knowledge, (ii) a well-performing specialist model can benefit from a less effective LLM through distribution fusion, and (iii) DeePEn has complementary strengths with other ensemble methods such as voting.

View on arXivView PDF

Code Implementations(1)

A method of ensemble learning for heterogeneous large language models.

628PythonMay 30, 20242 years ago

Similar Papers

Cite this paper

@article{huang2026ensemble,
  title  = {Ensemble Learning for Heterogeneous Large Language Models with Deep Parallel Collaboration},
  author = {Yi-Chong Huang and Xiaocheng Feng and Baohang Li and Yang Xiang and Hui Wang and Bing Qin and Ting Liu},
  year   = {2026},
  eprint = {2404.12715},
  archivePrefix = {arXiv},
  doi    = {10.52202/079017-3808},
  url    = {https://arxiv.org/abs/2404.12715},
  journal = {NEURIPS 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/2404.12715.svg)](https://codeofpaper.com/paper/2404.12715)

Discussion