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

基于两阶段强化学习智能体的LLM集成动态优化

Dynamic Optimizations of LLM Ensembles with Two-Stage Reinforcement Learning Agents

Georgia Institute of Technology(佐治亚理工学院);Cisco Systems(思科系统)

Selim Furkan Tekin, Gaowen Liu, Ramana Rao Kompella, Ling Liu

AI总结:

提出两阶段强化学习框架RL-Focal,通过Decider智能体动态选择小规模LLM集成,并利用Fusion智能体解决推理冲突,在五个基准上以8.48%的性能提升超越最佳单个LLM。

摘要:

LLM的进步及其可访问性引发了对多智能体强化学习的重新关注,将其作为动态变化环境中稳健且自适应的框架。本文提出RL-Focal,一个两阶段强化学习智能体框架,用于路由和集成LLM。首先,我们开发了Decider RL-agent,它通过迭代更新任务自适应奖励和策略,最大化所选集成的错误多样性和推理性能,学习在N个LLM中为来自用户定义下游任务i的查询动态选择小规模($m_i$)集成($m_i \ll N$)。其次,为实现动态选择LLM的有效融合,我们开发了第二阶段Fusion RL-agent,它学习解决不同LLM间的推理冲突,并动态适应Decider Agent为不同下游任务组成的集成团队。第三,我们引入焦点多样性指标,以更好地建模多个LLM间的错误相关性,进一步提升Decider Agent的泛化性能,该智能体主动修剪集成组合。通过焦点多样性,我们有效促进了奖励感知和策略自适应的集成选择与推理融合,增强了跨任务性能。在五个基准上的广泛评估表明,与池中最佳单个LLM相比,RL-Focal以小规模集成实现了8.48%的性能提升,并提供了更强的稳健性。代码可在https://github.com/sftekin/rl-focal获取。

英文摘要:

The advancement of LLMs and their accessibility have triggered renewed interest in multi-agent reinforcement learning as robust and adaptive frameworks for dynamically changing environments. This paper introduces \texttt{RL-Focal}, a two-stage RL agent framework that routes and ensembles LLMs. \textit{First}, we develop the Decider RL-agent, which learns to dynamically select an ensemble of small size ($m_i$) among $N$ LLMs ($m_i \ll N$) for incoming queries from a user-defined downstream task $i$, by maximizing both error-diversity and reasoning-performance of the selected ensemble through iterative updates of task-adaptive rewards and policy. \textit{Second}, to enable effective fusion of dynamically selected LLMs, we develop the stage-2 Fusion RL-agent, which learns to resolve reasoning conflicts from different LLMs and dynamically adapt to different ensemble teams composed by the Decider Agent for different downstream tasks. {\em Third}, we introduce the focal diversity metric to better model the error correlations among multiple LLMs further improving the generalization performance of the Decider Agent, which actively prunes the ensemble combinations. By focal diversity, we enhance performance across tasks by effectively promoting reward-aware and policy-adaptive ensemble selection and inference fusion. Extensive evaluations on five benchmarks show that RL-Focal achieves the performance improvement of 8.48\% with an ensemble of small size compared to the best individual LLM in a pool and offers stronger robustness. Code is available \href{https://github.com/git-disl/RL-Focal}{here}.

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

↑