Ensemble Learning for Heterogeneous Large Language Models with Deep Parallel Collaboration

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Huang, Yichong, Feng, Xiaocheng, Li, Baohang, Xiang, Yang, Wang, Hui, Qin, Bing, Liu, Ting
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917679079620608
author Huang, Yichong
Feng, Xiaocheng
Li, Baohang
Xiang, Yang
Wang, Hui
Qin, Bing
Liu, Ting
author_facet Huang, Yichong
Feng, Xiaocheng
Li, Baohang
Xiang, Yang
Wang, Hui
Qin, Bing
Liu, Ting
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2404_12715
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Ensemble Learning for Heterogeneous Large Language Models with Deep Parallel Collaboration
Huang, Yichong
Feng, Xiaocheng
Li, Baohang
Xiang, Yang
Wang, Hui
Qin, Bing
Liu, Ting
Computation and Language
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.
title Ensemble Learning for Heterogeneous Large Language Models with Deep Parallel Collaboration
topic Computation and Language
url https://arxiv.org/abs/2404.12715