Faculty of Informatics(信息学系);Information Technologies, Slovak University of Technology in Bratislava(信息技术,斯洛伐克技术大学布拉迪斯拉发分校);Centre for Machine Learning, University of Southern Denmark(机器学习中心,丹麦南部大学)
Richard Šléher, William Brach, Tibor Sloboda, Kristián Košťál, Lukas Galke
Query routing, the task to route user queries to different large language model (LLM) endpoints, can be considered as a text classification problem. However, out-of-distribution queries must be handled properly, as those could be about unrelated domains, queries in other languages, or even contain unsafe text. Here, we thus study a guarded query routing problem, for which we first introduce the Guarded Query Routing Benchmark (GQR-Bench, released as Python package gqr), covers three exemplary target domains (law, finance, and healthcare), and seven datasets to test robustness against out-of-distribution queries. We then use GQR-Bench to contrast the effectiveness and efficiency of LLM-based routing mechanisms (GPT-4o-mini, Llama-3.2-3B, and Llama-3.1-8B), standard LLM-based guardrail approaches (LlamaGuard and NVIDIA NeMo Guardrails), continuous bag-of-words classifiers (WideMLP, fastText), and traditional machine learning models (SVM, XGBoost). Our results show that WideMLP, enhanced with out-of-domain detection capabilities, yields the best trade-off between accuracy (88%) and speed (<4ms). The embedding-based fastText excels at speed (<1ms) with acceptable accuracy (80%), whereas LLMs yield the highest accuracy (91%) but are comparatively slow (62ms for local Llama-3.1:8B and 669ms for remote GPT-4o-mini calls). Our findings challenge the automatic reliance on LLMs for (guarded) query routing and provide concrete recommendations for practical applications. Source code is available: https://github.com/williambrach/gqr.
ConsRoute:Consistency-Aware Adaptive Query Routing for Cloud-Edge-Device Large Language Models
Department of Computer Science and Technology, Harbin Institute of Technology(哈尔滨工业大学计算机科学与技术系);National Key Laboratory of Smart Farm Technologies and Systems(国家智能农业技术与系统重点实验室);Department of Computer Science and Technology, Harbin Institute of Technology (ShenZhen)(哈尔滨工业大学(深圳)计算机科学与技术系)
Routing Should Pay for Itself: Sparse Supervision for Economical LLM Routing
School of Artificial Intelligence, Nanjing University(南京大学人工智能学院);National Key Laboratory for Novel Software Technology, Nanjing University(南京大学计算机软件新技术全国重点实验室);The Hong Kong University of Science and Technology(香港科技大学);SinapisAI
Beyond Top-$k$ Skill Retrieval: Diversity-Aware Skill Routing for LLM Agents
Virginia Tech(弗吉尼亚理工大学);University of Southern California(南加州大学);Adobe Research(Adobe研究院);Dolby Labs(杜比实验室);Texas A&M University(德克萨斯A&M大学);Arizona State University(亚利桑那州立大学)
IRT-Router: Effective and Interpretable Multi-LLM Routing via Item Response Theory
State Key Laboratory of Cognitive Intelligence, University of Science and Technology of China(认知智能国家重点实验室,中国科学技术大学);Institute of Artificial Intelligence, Hefei Comprehensive National Science Center(人工智能研究院,合肥综合性国家科学中心);School of Computing, National University of Singapore(计算学院,新加坡国立大学);NetEase Fuxi AI Lab(网易伏羲AI实验室)
Beyond Gemini-3-Pro: Revisiting LLM Routing and Aggregation at Scale
Shanghai AI Lab(上海人工智能实验室);The Chinese University of Hong Kong(香港中文大学);Fudan University(复旦大学);University of Science and Technology of China(中国科学技术大学);Northwestern Polytechnical University(西北工业大学);Northeastern University(东北大学)
RealRoute: Dynamic Query Routing System via Retrieve-then-Verify Paradigm
Technical University of Denmark(技术大学);University of Exeter(埃克塞特大学);University of Toronto(多伦多大学);Rutgers University(罗格斯大学);NJIT(新 jersey 工业技术学院);University of Georgia(佐治亚大学);Wake Forest University(威克森林大学)
RouterDC: Query-Based Router by Dual Contrastive Learning for Assembling Large Language Models
Southern University of Science and Technology(南方科技大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));The Hong Kong University of Science and Technology(香港科技大学)
Learning Query-Aware Budget-Tier Routing for Runtime Agent Memory
Nanyang Technological University(南洋理工大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Illinois Chicago(伊利诺伊大学香槟分校);Tsinghua University(清华大学);Sun Yat-sen University(中山大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科学与技术大学(广州))
CR^2: Cost-Aware Risk-Controlled Routing for Wireless Device-Edge LLM Inference
Cooperative Medianet Innovation Center, Shanghai Jiao Tong University(合作中位网创新中心,上海交通大学);Department of Broadband Communication, Pengcheng Laboratory(宽带通信部,鹏城实验室);Future Network of Intelligent Institute (FNii), the Chinese University of Hong Kong (Shenzhen)(智能网络研究所(FNii),香港中文大学(深圳));Meta
First-Order Rewritability of Frontier-Guarded Ontology-Mediated Queries
Millennium Institute for Foundational Research on Data(千年基础数据研究研究所);University of Chile(智利大学);TU Wien(维也纳工业大学);University of Bremen(不来梅大学);University of Edinburgh(爱丁堡大学)
SymRAG: Efficient Neuro-Symbolic Retrieval Through Adaptive Query Routing
Department of Information Systems, University of Maryland, Baltimore County, USA(信息系统系,马里兰大学巴尔的摩县分校);Department of Computer Science and Engineering, University at Buffalo, USA(计算机科学与工程系,布法罗大学);Department of Computer Science, University of Colorado Boulder, USA(计算机科学系,科罗拉多大学波德分校)
Co-adaptive Rule Routing and Constraining for Structured Knowledge Retrieval
University of Georgia(佐治亚大学);Michigan State University(密歇根州立大学);Georgia Institute of Technology(佐治亚理工学院);Amazon(亚马逊);Adobe Systems(奥多比系统公司);PNNL(太平洋西北国家实验室);Texas A&M University(德克萨斯农工大学)