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

AQA:基于上下文多臂老虎机的LLM社会中的自适应问答

AQA: Adaptive Question Answering in a Society of LLMs via Contextual Multi-Armed Bandit

Radboud University(拉德堡德大学);University of Amsterdam(阿姆斯特丹大学)

Mohanna Hoveyda, Arjen P. de Vries, Maarten de Rijke, Harrie Oosterhuis, Faegheh Hasibi

AI总结:

本文将自适应问答建模为上下文多臂老虎机问题,通过训练线性UCB模型学习问题特征与多LLM通信图配置的最优映射,实现了根据问题类型动态选择最优问答策略,兼顾复杂策略的高性能与简单策略的低开销。

摘要:

在问答(QA)中,不同的问题可以通过不同的回答策略得到有效解决。有些问题只需简单的查找,而另一些则需要复杂的多步推理才能充分回答。这一观察促使我们开发一种动态方法,为每个问题自适应地选择最合适的QA策略,使系统能更高效、更广泛地应对各类问题类型。为此,我们基于多个大型语言模型(LLM)编排的最新进展,将自适应QA构建为一个动态编排挑战。我们将其定义为上下文多臂老虎机问题,其中上下文由输入问题的特征定义,动作空间由LLM智能体间潜在的通信图配置组成。随后,我们训练了一个线性置信区间上界(UCB)模型,以学习不同问题类型与其对应的最优多LLM通信图表示之间的最优映射。实验表明,所提方案适用于多模块QA系统的自适应编排,它结合了复杂策略的卓越性能,同时在简单策略即可满足需求时避免了其开销。

英文摘要:

In question answering (QA), different questions can be effectively addressed with different answering strategies. Some require a simple lookup, while others need complex, multi-step reasoning to be answered adequately. This observation motivates the development of a dynamic method that adaptively selects the most suitable QA strategy for each question, enabling more efficient and effective systems capable of addressing a broader range of question types. To this aim, we build on recent advances in the orchestration of multiple large language models (LLMs) and formulate adaptive QA as a dynamic orchestration challenge. We define this as a contextual multi-armed bandit problem, where the context is defined by the characteristics of the incoming question and the action space consists of potential communication graph configurations among the LLM agents. We then train a linear upper confidence bound model to learn an optimal mapping between different question types and their corresponding optimal multi-LLM communication graph representation. Our experiments show that the proposed solution is viable for adaptive orchestration of a QA system with multiple modules, as it combines the superior performance of more complex strategies while avoiding their costs when simpler strategies suffice.

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

↑