Trajectory-Cost Optimization for Multi-Stage LLM Routing with Finite-Sample Deployment Guarantees
Xueyang Li, Naihao Xu, Gelei Xu, Ching-Hao Chiu, Kun Huang, Danny Z. Chen, Yiyu Shi
Abstract
Multi-stage LLM routing reduces serving cost by deciding after each model call whether to commit the current answer, continue to another model, or defer to a human. Existing cost-aware routers lack finite-sample deployment guarantees, whereas risk-control methods certify prespecified policy families and typically treat cost only post hoc. Consequently, they may spend expensive model calls on queries unlikely to benefit from escalation and cannot directly minimize cost under explicit deployment constraints. To address this gap, we introduce Boundary-Adaptive Bellman Routing (BABR), a certified constrained-control framework for minimizing expected trajectory cost over finite acyclic model graphs under joint selective-risk and minimum-automation-coverage constraints. Its central principle is that routing should depend not only on the current-answer risk, but also on whether any legal continuation is worth its trajectory cost. BABR turns this principle into certified trajectory-level control: using action costs and downstream continuation values, it determines when to commit, which legal successor to invoke, and when to defer, while providing independent finite-sample certification of the selected policy for selective risk and minimum automation coverage. We further establish theoretical guarantees for policy structure, within-class population cost near-optimality, and joint finite-sample deployment validity. To the best of our knowledge, BABR is the first framework to combine post-call trajectory-cost optimization with finite-sample guarantees on both constraints. Across all evaluated settings, BABR outperforms strong topology-matched baselines in paired trajectory cost while preserving a certified operating region comparable to, and often larger than, those of the baselines. Code is available at https://github.com/XLIAaron/BABR.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG
- Comments
- Accepted to the Main Technical Track of AAAI 2027
Related papers
AutoCon: A Multi-Agent System for Autonomous Clinical Model Post-Training
Shared title terminologycs.AIAkshat Choube, Mohsen Sharifi Renani, Meysam Ghaffari et al.
SwayBench: A Two-Way Benchmark for Sycophancy Across Multi-Turn Conversations
Shared title terminologycs.AITanish Taneja, Ritvik Rastogi, Anshuman Mishra et al.
SynPath-MAS: Multi-Agent Generation of Patient-Specific Clinical Pathways After Emergency Department Admission
Shared title terminologycs.AIJingyao Cai, Bao Huarui, William Poulett et al.
RectifyFlow: Plan Upfront, Rectify Selectively for Cost-Efficient Edge-Cloud Tool-Using Agents
Shared title terminologycs.AIWeixiang Han, Linzhuang Zou, Yi Liu et al.
DecoTrace: Reducing Topology Traces in LLM Multi-Agent Systems
Shared title terminologycs.AIJunhui Chen, Yu Zhang, Lantian Li et al.
CP-MOPD: Consensus Policy-Guided Multimodal Multi-Expert On-Policy Distillation
Shared title terminologycs.AIQinxuan Wang, Shuo Tang, Zheyu Zhang et al.