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

面向多个 LLM 专家的高效动态集成

Efficient Dynamic Ensembling for Multiple LLM Experts

South China University of Technology(华南理工大学);Pazhou Laboratory(琶洲实验室);Peng Cheng Laboratory(鹏城实验室);Hong Kong Polytechnic University(香港理工大学);Chongqing University of Posts and Telecommunications(重庆邮电大学);Key Laboratory of Big Data and Intelligent Robot, Ministry of Education(教育部大数据与智能机器人重点实验室)

Jinwu Hu, Yufeng Wang, Shuhai Zhang, Kai Zhou, Guohao Chen, Yu Hu, Bin Xiao, Mingkui Tan

AI总结:

该研究提出 DER 动态集成推理范式,通过 Markov Decision Process、奖励训练的 DER-Agent 与知识迁移提示,按需组合多个 LLM 专家,以更少计算资源超越现有基线。

摘要:

LLM 已在各类语言任务上展现出令人瞩目的性能。然而,由于架构、模型规模、训练数据领域等方面的差异,LLM 的优势可能各不相同。因此,针对不同 LLM 专家的优势进行集成推理,对于在广泛任务的多样化输入上获得稳定且令人满意的性能至关重要。但是,现有的 LLM 集成方法要么计算开销很大,要么无法针对各种输入利用 LLM 专家之间的互补知识。本文提出一种高效的动态集成推理范式,称为 DER,用于根据动态输入整合多个 LLM 专家的优势。具体而言,我们将 LLM 集成推理问题建模为 Markov Decision Process,其中智能体依次接收输入,向某个 LLM 候选请求知识,并将输出传递给后续 LLM 候选。此外,我们设计了奖励函数来训练 DER-Agent,使其根据输入问题动态选择最优回答路径,目标是以尽可能少的计算资源实现最高性能。最后,为充分迁移来自先前 LLM 的专家知识,我们开发了 Knowledge Transfer Prompt,使后续 LLM 候选能够有效迁移互补知识。实验表明,与最先进基线相比,我们的方法使用更少计算资源即可实现更好性能。代码和附录见 https://github.com/Fhujinwu/DER

英文摘要:

LLMs have demonstrated impressive performance across various language tasks. However, the strengths of LLMs can vary due to different architectures, model sizes, areas of training data, etc. Therefore, ensemble reasoning for the strengths of different LLM experts is critical to achieving consistent and satisfactory performance on diverse inputs across a wide range of tasks. However, existing LLM ensemble methods are either computationally intensive or incapable of leveraging complementary knowledge among LLM experts for various inputs. In this paper, we propose an efficient Dynamic Ensemble Reasoning paradigm, called DER to integrate the strengths of multiple LLM experts conditioned on dynamic inputs. Specifically, we model the LLM ensemble reasoning problem as a Markov Decision Process, wherein an agent sequentially takes inputs to request knowledge from an LLM candidate and passes the output to a subsequent LLM candidate. Moreover, we devise a reward function to train a DER-Agent to dynamically select an optimal answering route given the input questions, aiming to achieve the highest performance with as few computational resources as possible. Last, to fully transfer the expert knowledge from the prior LLMs, we develop a Knowledge Transfer Prompt that enables the subsequent LLM candidates to transfer complementary knowledge effectively. Experiments demonstrate that our method uses fewer computational resources to achieve better performance compared to state-of-the-art baselines. Code and appendix are available at https://github.com/Fhujinwu/DER

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

↑