RouteWeaver: Weaving Mode Selection and Execution into Unified LLM Routing
Xiaohan Wang, Haozhen Zhang, Qingyuan Liu, Tao Feng, Wenya Wang
Abstract
LLM routing dynamically selects and coordinates heterogeneous language models across diverse tasks. However, existing approaches are largely built around a predefined execution paradigm, such as single-round, multi-round, or agentic routing, which fixes how model calls are organized and limits adaptation to different query needs. We propose RouteWeaver, a unified routing framework that integrates these routing modes within a single LLM policy, jointly learning which mode to use and how to select models within that mode. To jointly optimize mode selection and within-mode execution, we develop COMET-GRPO (COordinated Mode-Execution Training), which decouples the trajectory-level advantage into separate signals for mode selection and within-mode execution, enabling more targeted credit assignment to each decision level. We further introduce progressive exploration, which gradually shifts training from externally assigned modes to autonomous selection, so that the router first learns how to execute each mode before deciding when to use it. We evaluate RouteWeaver across mathematics, coding, knowledge, logical reasoning, and factual recall. RouteWeaver achieves an average accuracy of 61.4%, an 11.03% relative improvement over the strongest baseline, and outperforms all compared baselines in each of the five domains. Ablations show that both COMET-GRPO and progressive exploration are important for adaptive routing; without progressive exploration, the routing policy collapses entirely to single-round execution.
Create a lesson
Related papers
Explore Separately, Adopt Selectively: Execution-Guided Tool Use over Large Tool Libraries
Shared title terminologycs.CLAnna Mazhar, Seiji Maekawa, Nikita Bhutani
Voyag: Joint Multi-Intent Detection and Execution-Relation Classification for In-Vehicle Voice Assistants
Shared title terminologycs.CLSen Luo
ESGPT: A Data-Centric ESG Language Model with Unified Instruction and Benchmark Resources
Shared title terminologycs.CLJaeyoung Lee, Misuk Kim
Broad and Efficient PII Detection with Unified Labels
Shared title terminologycs.CLAndy Hsu, Konstantin Berlin
alkhder at ImageEval 2026 Shared Tasks: Constrained Selection and Rotation-Averaged Logit Scoring for Multimodal Hallucination Detection
Shared title terminologycs.CLMaher Pasa, Maria Hanini, Amro Najjar et al.
AuditKIT: A Unified Evaluation Spine for Benchmarking, Judging, and Comparing Large Language Models and Agentic Systems
Shared title terminologycs.CLShreeyans Arora, Utsav Avaiya, Zera Lyngkhoi et al.