Bandits in Prod: Hyperparameter Optimization at Inference Time
Louis Abraham, Tuan-Anh Nguyen, Nicolas Devatine
Key points
From the paper's conclusion- We formalize this setting as Online Hyperparameter Optimization (OHPO) and cast it as an infinitely many-armed bandit over mixed and conditional search spaces.
Abstract
Many production systems can assess a configuration only by using it on live requests and observing noisy feedback. Modern agentic systems are a prominent example, with inference-time choices such as model selection, retrieval depth, prompting strategy, and decoding temperature, yet often with no representative validation data. We formalize this setting as Online Hyperparameter Optimization (OHPO) and cast it as an infinitely many-armed bandit over mixed and conditional search spaces. We introduce IMABO, a general framework that combines any bandit policy for choosing among already sampled configurations with any oracle for proposing new ones. We instantiate it with IMOSS, a restart-free anytime policy whose active set grows as $t^β$, and prove an expected cumulative quantile-regret bound of $O(p_ρ^{-1/β} + T^{(1+β)/2})$, where $β\in(0,1)$ controls active-set growth and $p_ρ$ lower-bounds the probability that a proposed configuration falls in the top-$ρ$ fraction of the search space. We combine IMOSS with three practical oracles: a Tree-structured Parzen Estimator, an incumbent-mutation oracle driven by a per-coordinate bandit, and a pretrained tabular foundation model, all three improving over the uniform random oracle baseline. IMABO outperforms all baselines in terms of regret across diverse OHPO settings, from tuning classical machine-learning models to configuring LLM-based agents. Our implementation is available at https://github.com/Tiime-Software/IMABO.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Ballad: Bandit-Based LLM Routing for Automated Heuristic DiscoveryarXiv · 2026
- Dynamic Budget Allocation for LLM Evaluation under Hard Resource ConstraintsarXiv · 2026
- MLE Agents: Autonomous ML Engineering in Large-scale Recommendation SystemsarXiv · 2026
- Agentic Optimization: LLM Agents Select and Configure Algorithms for Engineering DesignarXiv · 2026
- Nominate-then-Adjudicate: LLM-Assisted One-Pass and Per-Instance MIP Solver TuningarXiv · 2026
- Efficiently Estimating Optimal Hyperparameter Scaling Laws through Power-Law Entropy SearcharXiv · 2026