arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.12715cs.CL
收藏

面向异构大型语言模型的深度并行协作集成学习

Ensemble Learning for Heterogeneous Large Language Models with Deep Parallel Collaboration

Harbin Institute of Technology(哈尔滨工业大学);Peng Cheng Laboratory(鹏城实验室)

Yichong Huang, Xiaocheng Feng, Baohang Li, Yang Xiang, Hui Wang, Bing Qin, Ting Liu

AI总结:

本文提出免训练集成框架 DeePEn,通过相对表示理论将异构 LLM 的概率分布映射至通用相对空间进行融合聚合,再经逆变换确定下一个 token,在多个基准上取得一致提升并与其他集成方法互补。

摘要:

大型语言模型(LLM)在各种任务中展现出互补优势,这推动了 LLM 集成学习的研究。然而,现有工作侧重于训练额外的奖励模型或融合模型来选择或组合所有候选答案,这对在未见数据分布上的泛化能力构成了巨大挑战。此外,先前的方法使用文本响应作为通信媒介,忽略了内部表示中的宝贵信息。在本研究中,我们提出了一个免训练的集成框架 DeePEn,在每个解码步骤融合不同 LLM 生成的信息丰富的概率分布。遗憾的是,由于 token 不对齐,异构 LLM 之间的词表差异直接导致对分布进行平均变得不可行。为了应对这一挑战,DeePEn 基于相对表示理论,将每个模型的概率分布从其自身的概率空间映射到一个通用的相对空间,并进行聚合。接下来,我们设计了一种基于搜索的逆变换,将聚合结果转换回其中一个集成 LLM(主模型)的概率空间,以确定下一个 token。我们在不同数量的 LLM 集成、不同架构的 LLM 集成以及 LLM 与专家模型之间的集成上进行了广泛实验。实验结果表明:(i) DeePEn 在涵盖学科考试、推理和知识的六个基准上取得了一致的提升;(ii) 表现良好的专家模型可以通过分布融合从效果较差的 LLM 中获益;(iii) DeePEn 与投票等其他集成方法具有互补优势。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑