Algorithm for Contextual Queueing Bandits with Rate-Optimal Queue Length Regret

Seoungbin Bae, Dabeen LeearXiv 2026

TL;DR

Contextual queueing bandits balance learning unknown, job-specific service rates with keeping queues short, but previous methods suffered from sub-optimal queue length regret. This paper introduces CQB-$\eta$-2, a three-phase algorithm that strategically cuts off random exploration, achieving a rate-optimal regret of $\widetilde{\mathcal{O}}(T^{-1/2})$. The authors also prove a matching minimax lower bound, pinning down the fundamental limits of learning-while-scheduling.

What Problem Does This Paper Address?

In modern service platforms—such as cloud computing, call centers, and multi-LLM routing systems—heterogeneous jobs arrive dynamically, and scheduling decisions must be made online. These jobs carry specific "contexts" (features) that dictate their service rates across different servers, but these context-dependent rates are typically unknown beforehand.

This setup is formalized as a contextual queueing bandit problem. Unlike standard bandits that minimize accumulated reward loss, queueing bandits care about queue length regret: the expected difference between the learner's queue length and an omniscient oracle's queue length at a terminal horizon $T$. Suboptimal decisions don't just lose immediate rewards; they cause jobs to pile up, impacting all future queue states.

Prior algorithms only managed to achieve a queue length regret of $\widetilde{\mathcal{O}}(T^{-1/4})$. This paper addresses a fundamental question: Is this slower rate an intrinsic penalty of queueing systems, or can we achieve the standard $\mathcal{O}(T^{-1/2})$ scaling found in classical bandit problems?

Methods

The authors introduce CQB-$\eta$-2, a three-phase scheduling algorithm built on a crucial insight: random exploration is vital early on, but keeping it active until the very end of the horizon ruins terminal queue lengths.

The algorithm progresses through three distinct phases:

  1. Phase 1 (Pure Random Exploration): For the first $\tau_1$ rounds, the algorithm assigns arriving jobs to servers uniformly at random. This ensures sufficient feature diversity to construct a reliable initial model estimator.
  2. Phase 2 ($\eta$-Random Exploration + UCB): From round $\tau_1$ to $\tau_2$, the algorithm blends random exploration (with a small probability $\eta = \epsilon/4$) with an Upper Confidence Bound (UCB) rule. This continues parameter learning while maintaining a "negative drift" to keep the queue stable.
  3. Phase 3 (Pure UCB): After the cutoff round $\tau_2$, random exploration is completely terminated. The algorithm relies entirely on the pure UCB rule, exploiting the highly accurate model built from the $\Theta(T)$ exploration samples collected in the first two phases.

To prove the optimality of this approach, the authors also construct a matching minimax lower bound using a two-instance testing argument combined with a queue-specific coupling framework.

Datasets

The paper does not use real-world datasets. Instead, the algorithm is validated using synthetic experiments designed to simulate stochastic queueing environments:

  • Configuration: Horizon $T = 2000$, feature dimension $d = 10$, $K = 5$ servers, arrival rate $\lambda = 0.7$, and traffic slackness $\epsilon = 0.1$.
  • Generation: Feature vectors and unknown true parameters are sampled coordinate-wise from a uniform distribution $\text{Unif}[-1, 1]$. Instances failing to meet traffic slackness or model assumptions are filtered out.

Key Insights and Ideas

  • The Exploration Cutoff: Previous algorithms failed to break the $T^{-1/4}$ barrier because they maintained random exploration throughout the entire horizon. CQB-$\eta$-2 proves that stopping random exploration after a strategic cutoff allows pure UCB decisions to achieve exceptionally small departure-rate gaps ($\mathcal{O}(T^{-1/2})$).
  • Negative Drift as a Buffer: Before the cutoff, even though random exploration forces suboptimal choices, the system's inherent negative drift (traffic slackness) suppresses the long-term impact of these errors, preventing the queue from blowing up.
  • Statistical Indistinguishability: The lower bound proof elegantly constructs two "hard instances" that are statistically identical based on history up until the very last decision round. This demonstrates that a terminal queue length regret of $\Omega(T^{-1/2})$ is a fundamental mathematical limit that no algorithm can bypass.

Key Results

  • Rate-Optimal Upper Bound: The authors mathematically prove that CQB-$\eta$-2 achieves a queue length regret of $\widetilde{\mathcal{O}}(T^{-1/2})$, significantly improving upon the previous state-of-the-art $\widetilde{\mathcal{O}}(T^{-1/4})$ rate.
  • Matching Lower Bound: They establish a minimax lower bound of $\Omega(T^{-1/2})$, proving that their algorithm's dependence on the horizon $T$ is tight up to logarithmic factors.
  • Empirical Superiority: In synthetic simulations, CQB-$\eta$-2 and its variant (CQB-$\epsilon$) consistently achieved the lowest final queue lengths compared to baseline policies like ACQB, FIFO+Random, and Pure Random scheduling.
Algorithm Exploration Strategy Queue Length Regret Rate
Previous Works (Bae et al.) Continuous Exploration $\widetilde{\mathcal{O}}(T^{-1/4})$
CQB-$\eta$-2 (This Paper) Three-Phase / Cutoff $\widetilde{\mathcal{O}}(T^{-1/2})$ (Optimal)

Limitations and Future Work

While this paper successfully closes the gap regarding the time horizon $T$, it leaves open the exact minimax dependence on other system parameters. Specifically, the current lower bound does not tightly characterize how regret scales with the feature dimension $d$ or the logistic model's condition constant $\kappa$. The authors note that deriving lower bounds that match the upper bounds for $d$ and $\kappa$ is a vital direction for future research.

Summary updated

BibTeX
@misc{bae2026algorithm,
  author = {Seoungbin Bae and Dabeen Lee},
  title = {{Algorithm for Contextual Queueing Bandits with Rate-Optimal Queue Length Regret}},
  year = {2026},
  eprint = {2606.09668},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.09668},
}
Figure