Chance-Constrained Personalized LLM Routing with Online Preference Learning
Abstract
We study personalized LLM routing, where a router selects among heterogeneous models with different costs and capabilities. The router must minimize cumulative inference cost while ensuring reliable realized response quality, even though user preferences are unknown and must be learned from feedback during deployment. We formulate this problem as a constrained contextual bandit and develop an algorithm that learns preferences while balancing cost and quality. Under a logistic preference model and a strict-feasibility condition, we establish sublinear expected cost regret relative to an optimal stationary randomized contextual oracle and a high-probability guarantee on realized cumulative satisfaction. The framework extends beyond LLM routing to broader online model-selection problems with reliability requirements.
Figures & tables
| Method | Online | Personalized | Safety |
|---|---|---|---|
| FrugalGPT | |||
| RouteLLM | |||
| PersonalizedRouter | |||
| MetaRouter | |||
| BaRP | |||
| Conformal Routing |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
LLM Routing
Large language model routing selects models, tools, experts, or inference strategies to balance answer quality, cost, latency, and deployment constraints.
See all 349 papers