arXiv Machine Learning
Nov 5

Pathwise-Budgeted LLM Routing: Online Allocation with K-Bit Tail-Cost Learning

The paper introduces Pathwise-Budgeted LLM Routing, a contextual bandit policy called ADP-HT designed for firms that must allocate a fixed budget across large language model calls. ADP-HT learns each model’s task‑specific success probability and builds conservative cost estimates using coarsened response‑length labels on a quantile grid with $2^K$ intervals, balancing predicted success against these costs and adjusting penalties based on actual spending and remaining budget. Experiments show that ADP-HT solves more than twice as many MATH500 and GPQA tasks as the best baseline, achieves the highest mean cumulative score on most RouterBench budgets, and outperforms a commercial router on LiveCodeBench at low budgets.

By Hanzhang Qin, Sophie H. Yu, Yuewei Zhang, Zhi-Hai Zhang
arXiv AI
Sep 2

Drift-Aware LLM Routing with Sparse Contexts and Shared Budgets

The paper introduces Drift‑Aware Sparse Routing (DRS), a method for routing requests in a multi‑model language service while respecting compute, latency, memory, or cost budgets. DRS estimates reward and resource use from a rolling audit window, routes using pessimistic reward and optimistic cost estimates, updates resource shadow prices online, and applies a hard meter before commitment. The authors provide theoretical regret bounds that separate control from statistics, showing how the method adapts to non‑stationary prompt distributions and model changes.

By Cheung Hao Lee, Patrick Wong
arXiv AI
Sep 2

Bandits in Prod: Hyperparameter Optimization at Inference Time

The paper introduces Online Hyperparameter Optimization (OHPO), framing it as an infinitely many‑armed bandit problem over mixed and conditional search spaces. It proposes the IMABO framework, which couples any bandit policy with any oracle for proposing new configurations, and presents IMOSS—a restart‑free anytime policy with provable regret bounds. Experiments show that IMABO, combined with practical oracles such as TPE, an incumbent‑mutation oracle, and a pretrained tabular foundation model, outperforms random search across a range of settings from classical ML models to LLM‑based agents.

By Louis Abraham, Tuan-Anh Nguyen, Nicolas Devatine