Bandits in Prod: Hyperparameter Optimization at Inference Time

Louis Abraham, Tuan-Anh Nguyen, Nicolas Devatine
9/1/2026
cs.LGcs.AI

Official code: Tiime-Software/IMABO (0 stars, last commit 2026-09-02).

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.

View on arXivView PDF

Code Implementations(1)

IMABO: an infinitely many-armed bandit with an oracle, for hyperparameter optimization at inference time.

00Shell, PythonJun 12, 20261 months ago

Similar Papers

Cite this paper

@article{abraham2026bandits,
  title  = {Bandits in Prod: Hyperparameter Optimization at Inference Time},
  author = {Louis Abraham and Tuan-Anh Nguyen and Nicolas Devatine},
  year   = {2026},
  eprint = {2609.01335},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.01335v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.01335.svg)](https://codeofpaper.com/paper/2609.01335)

Discussion