cs.CLFeb 6, 2025

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

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

Organizations: Georgia Institute of Technology · Cisco Systems

Abstract

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 (mim_i) among NN LLMs (mi≪Nm_i \ll N) for incoming queries from a user-defined downstream task ii, 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}.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Mixture of Complementary Agents for Robust LLM Ensemble

    May 21, 2026Yichi Zhang, Kevin Lu, Yuang Zhang +3EnsembleComplementarity

  2. When Does Multi-Agent RL Improve LLM Workflows? Workflow, Scale, and Policy-Sharing Tradeoffs

    May 22, 2026Yifan Zeng, Yiran Wu, Yaolun Zhang +4Large Language Model WorkflowsMulti-Agent Reinforcement Learning