Queue Length Regret Bounds for Contextual Queueing Bandits
Seoungbin Bae, Garyeong Kang, Dabeen Lee
TL;DR
This work introduces contextual queueing bandits, a framework where jobs arrive with heterogeneous contextual features and the departure rate follows a logistic model with unknown server parameters, requiring simultaneous learning and scheduling. A novel coupling-based technique using policy-switching queues addresses queue-state misalignment, enabling a decomposition of queue-length regret into short-term and long-term effects. The authors propose two algorithms, CQB-$\varepsilon$ for stochastic contexts and CQB-Opt for adversarial contexts, achieving a decaying $\widetilde{O}(T^{-1/4})$ regret in the stochastic setting and $\mathcal{O}(\log^2 T)$ in the adversarial setting, both supported by experimental validation. The results advance understanding of learning-while-scheduling under context-rich arrivals and provide practical insights for designing stable, learning-enabled queueing systems with context-aware decision making.
Abstract
We introduce contextual queueing bandits, a new context-aware framework for scheduling while simultaneously learning unknown service rates. Individual jobs carry heterogeneous contextual features, based on which the agent chooses a job and matches it with a server to maximize the departure rate. The service/departure rate is governed by a logistic model of the contextual feature with an unknown server-specific parameter. To evaluate the performance of a policy, we consider queue length regret, defined as the difference in queue length between the policy and the optimal policy. The main challenge in the analysis is that the lists of remaining job features in the queue may differ under our policy versus the optimal policy for a given time step, since they may process jobs in different orders. To address this, we propose the idea of policy-switching queues equipped with a sophisticated coupling argument. This leads to a novel queue length regret decomposition framework, allowing us to understand the short-term effect of choosing a suboptimal job-server pair and its long-term effect on queue state differences. We show that our algorithm, CQB-$\varepsilon$, achieves a regret upper bound of $\widetilde{\mathcal{O}}(T^{-1/4})$. We also consider the setting of adversarially chosen contexts, for which our second algorithm, CQB-Opt, achieves a regret upper bound of $\mathcal{O}(\log^2 T)$. Lastly, we provide experimental results that validate our theoretical findings.
