The rapidly growing number and variety of Large Language Models (LLMs) present significant challenges in efficiently selecting the appropriate LLM for a given query, especially considering the trade-offs between performance and computational cost. Current LLM selection methods often struggle to generalize across new LLMs and different tasks because of their limited ability to leverage contextual interactions among tasks, queries, and LLMs, as well as their dependence on a transductive learning framework. To address these shortcomings, we introduce a novel inductive graph framework, named as GraphRouter, which fully utilizes the contextual information among tasks, queries, and LLMs to enhance the LLM selection process. GraphRouter constructs a heterogeneous graph comprising task, query, and LLM nodes, with interactions represented as edges, which efficiently captures the contextual information between the query's requirements and the LLM's capabilities. Through an innovative edge prediction mechanism, GraphRouter is able to predict attributes (the effect and cost of LLM response) of potential edges, allowing for optimized recommendations that adapt to both existing and newly introduced LLMs without requiring retraining. Comprehensive experiments across three distinct effect-cost weight scenarios have shown that GraphRouter substantially surpasses existing routers, delivering a minimum performance improvement of 12.3%. In addition, it achieves enhanced generalization across new LLMs settings and supports diverse tasks with at least a 9.5% boost in effect and a significant reduction in computational demands. This work endeavors to apply a graph-based approach for the contextual and adaptive selection of LLMs, offering insights for real-world applications. Our codes for GraphRouter is released at https://github.com/ulab-uiuc/GraphRouter.
Investigating the Potential of Large Language Model-Based Router Multi-Agent Architectures for Foundation Design Automation: A Task Classification and Expert Selection Study
King Mongkut's University of Technology Thonburi(国王科技大学)
School of Electronic and Electrical Engineering, Shanghai University of Engineering Science(电子电气工程学院,上海工程技术大学);Key Laboratory of Computational Neuroscience and Brain-Inspired Intelligence, Fudan University(计算神经科学与脑启发智能重点实验室,复旦大学)
Agentic Router: An Execution-Grounded Continual Learning Approach With Memory
Zhejiang University(浙江大学);Zhejiang Lab(之江实验室);State Grid Hebei Electric Power Co., Ltd.(国网河北省电力有限公司);Macau University of Science and Technology(澳门科技大学)
RACER: Risk-Aware Calibrated Efficient Routing for Large Language Models
Southern University of Science and Technology, China(南方科技大学);The Chinese University of Hong Kong, Shenzhen, China(香港中文大学(深圳));Shenzhen Loop Area Institute, China(深圳环湖研究院)
Do LLM Agents Execute the Plans They Declare? From Planning-Mode Declaration to Pattern-Specific Execution
ADIA Lab(ADIA实验室);University of Granada(格拉纳达大学);Luxembourg Institute of Science and Technology(卢森堡科学技术研究院);Cornell University(康奈尔大学);Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室)
CASTER: Breaking the Cost-Performance Barrier in Multi-Agent Orchestration via Context-Aware Strategy for Task Efficient Routing
Qingdao Institute of Software, College of Computer Science;Technology, China University of Petroleum (East China);Shandong Key Laboratory of Intelligent Oil \& Gas Industrial Software;School of computing;artificial intelligence, Southwest Jiaotong University;Computer Engineering Department, University of Houston
EAC-MoE: Expert-Selection Aware Compressor for Mixture-of-Experts Large Language Models
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Nanjing University of Science and Technology(南京理工大学);AIRIA