Trajectory-Cost Optimization for Multi-Stage LLM Routing with Finite-Sample Deployment Guarantees
Li, Xueyang, Xu, Naihao, Xu, Gelei, Chiu, Ching-Hao, Huang, Kun, Chen, Danny Z., Shi, Yiyu
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Dec-2-2026
- Country:
- North America > United States (0.28)
- Genre:
- Research Report > Experimental Study (0.46)
- Industry:
- Law (0.69)
- Technology: