Latency-Aware Contextual Bandit: Application to Cryo-EM Data Collection
Lai Wei, Ambuj Tewari, Michael A. Cianfrocco
TL;DR
Latency-aware contextual bandits extend the contextual bandit framework to account for action latency and multi-arm decisions by formulating the problem as a semi-Markov decision process and deriving a Bellman-optimality characterization. The COAF algorithm combines stochastic approximation with UCB-based confidence sets to estimate the optimal average reward $Γ^*$ and filter arms accordingly, achieving sublinear regret. Theoretical results give regret bounds for both oracle and learned reward settings across linear and general function classes, matching standard contextual bandit rates. Empirical evaluations on MovieLens and cryo-EM data collection demonstrate improved time-efficient reward accumulation and promise for automated, high-throughput experimental workflows.
Abstract
We introduce a latency-aware contextual bandit framework that generalizes the standard contextual bandit problem, where the learner adaptively selects arms and switches decision sets under action delays. In this setting, the learner observes the context and may select multiple arms from a decision set, with the total time determined by the selected subset. The problem can be framed as a special case of semi-Markov decision processes (SMDPs), where contexts and latencies are drawn from an unknown distribution. Leveraging the Bellman optimality equation, we design the contextual online arm filtering (COAF) algorithm, which balances exploration, exploitation, and action latency to minimize regret relative to the optimal average-reward policy. We analyze the algorithm and show that its regret upper bounds match established results in the contextual bandit literature. In numerical experiments on a movie recommendation dataset and cryogenic electron microscopy (cryo-EM) data, we demonstrate that our approach efficiently maximizes cumulative reward over time.
