RouterHGC: Optimized Router for LLM-based Multi-Agent Systems via Heterogeneous Graph Contrastive Learning
Year: 2026
Type: conference-paper
Abstract: Leveraging powerful planning and reasoning capabilities, Large Language Models (LLMs)driven Multi-Agent Systems (MAS) have demonstrated remarkable scalability and generalizability across complex tasks.However, dynamically routing the optimal combination of agents and collaboration modes for a given query to balance performance and cost remains challenging.To address the limitation of prior work, which focuses on single-agent settings and overlooks collaborative structures and role assignment in MAS, we propose ROUTER-HGC, the first heterogeneous graph contrastive learning framework for MAS routing.We formalize routing as node selection through edge-weight prediction on a heterogeneous graph whose node types include user queries, collaboration modes, agent roles, and LLMs, with message passing capturing their highorder dependencies.We further design a novel global-local contrastive loss function to jointly optimize graph-level representations and edgelevel selections, pulling each query graph toward high-performing positives while pushing it away from underperforming or costly negatives.Experiments on five public datasets covering mathematical reasoning, code generation, and knowledge question answering show that ROUTERHGC outperforms the best single LLM and baselines, achieving 0.8%-6.17%accuracy gains on MATH and HotpotQA while reducing inference cost by 27.40%.
Language: English
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: hybrid
Award: G2406220052
OpenAlex ID: W7166819426
