arXiv:2611.02431cs.LGNov 2026

Manuscript Offprint

arXiv:2611.02431

A Parameter-Free Best-of-Both-Worlds Policy for Queueing Bandits

Jongyeong Lee, Chansoo Kim

Abstract

We study online channel scheduling for a single queue served by KK channels under bandit feedback. We propose a simple best-of-both-worlds policy that explores when the queue is empty. During busy periods, it selects the empirical best channel while the prescribed conditions hold and, if any condition is violated, switches to a robust bandit policy to clear the queue. For arbitrary arrivals and services determined by an oblivious adversary, our policy achieves O^(KLT)\hat{O}(\sqrt{KL_T}) worst-case queue length regret with high probability, where LTL_T is the longest busy-period length. This result improves the previous T3/4T^{3/4} dependence and matches the worst-case lower bound up to logarithmic factors. Under bounded i.i.d. stochastic models with a unique best stabilizing channel, we show that the cumulative queue length regret converges to a finite problem-dependent constant, and further establish the logarithmic expected worst-case queue length regret bound.

1 Introduction

Bandit problems provide a fundamental framework for sequential decision-making with partial feedback (Latimore and Szepesvári, 2019). In stochastic environments, the learner seeks to identify arms with high expected rewards, whereas adversarial environments require robustness without distributional assumptions. Best-of-both-worlds policies adapt to both regimes within a single policy (Bubeck and Slivkins, 2012). For classical bandits, such policies achieve logarithmic, problem-dependent regret in stochastic environments while retaining near-optimal guarantee in adversarial environments without knowing the regime in advance (Auer and Chiang, 2016; Zimmert and Seldin, 2021; Honda et al., 2023). A natural question is whether such adaptation is possible when decisions have lasting effects on a system and performance depends on the system states induced by past decisions rather than solely on the sum of immediate outcomes.

An important example of such state-dependent decision-making arises in queueing bandits, which model scheduling systems with unknown service outcomes (Krishnasamy et al., 2016, 2021). In this problem, jobs arrive sequentially, and in each round, the scheduler selects one of the channels to serve the queue and observes only the service provided by the selected one. A poor selection may leave more work unserved in the system, inducing additional backlog in subsequent rounds, whereas the accumulated effect of earlier mistakes disappears once the queue becomes empty. Therefore, standard bandit regret does not fully characterize queueing performance since the timing of service losses and the regenerative structure of the queue are both important.

A classical objective in queueing systems is stability (Dai, 1995). One commonly used notion is mean-rate stability, which requires lim⁡T→∞E[QTπ]/T=0\lim_{T \to \infty} \mathbb{E}[Q_T^\pi]/T = 0, where QTπQ_T^\pi is the queue length under the policy π\pi at round TT (Neely, 2010). When service statistics are unknown, one should learn which channels are effective while controlling the queue lengths (Yang et al., 2023; Freund et al., 2024). Stability alone, however, does not

Table 1: Comparison of queue length regret guarantees. Here, (S) indicates that the unique best arm is stabilizing, while (E) and (P) indicate guarantees in expectation and with high-probability, respectively. The quantity LTL_T denotes the length of the longest busy period and satisfies LT≤TL_T \leq T. The queue dynamics considered in Stahlbuhk et al. (2021), given in (8), differ from those considered in Krishnakumar and Sinha (2025) and ours, given in (1).

MetricReferenceAssumptionsRegret
max⁡t∈[T]max⁡i∈[K](Qtπ−Qti)\max_{t\in[T]} \max_{i\in[K]} (Q_t^\pi - Q_t^i)(worst-case regret)Krishnakumar and Sinha (2025)oblivious At≥0,Rt∈[0,1]KA_t \geq 0, R_t \in [0,1]^KO~(KT3/4)\tilde{\mathcal{O}}(\sqrt{K}T^{3/4}) (P)
Algorithm 1 (Theorem 3)oblivious At≥0,Rt∈[0,1]KA_t \geq 0, R_t \in [0,1]^KO~(KLT)\tilde{\mathcal{O}}(\sqrt{K}L_T) (P)
Algorithm 1 (Corollary 5)i.i.d. bounded At,RtA_t, R_t, (S), (4)O(log⁡(KT)/Δmin⁡)\mathcal{O}(\log(KT)/\Delta_{\min}) (E)
\sum_t \mathbb{E}[Q_t^\pi - Q_t^i^*](cumulative regret)Stahlbuhk et al. (2021)i.i.d. Bernoulli At,RtA_t, R_t, (S)O(1)\mathcal{O}(1)
Algorithm 1 (Theorem 4)i.i.d. bounded At,RtA_t, R_t, (S), (4)O(1)\mathcal{O}(1)

quantify the additional backlog incurred by learning, since two policies may both stabilize the system while producing substantially different queue trajectories.

This limitation motivates finer performance metrics for queueing bandits that compare learning policies with an informed oracle. For the single queue model, Krishnasamy et al. (2016) introduce the queue length regret E[QTπ−QT∗]\mathbb{E}[Q_T^\pi - Q_T^*] where the oracle knows the service statistics and always selects the best channel. They show that this quantity initially behaves similarly to classical bandit regret, but eventually decreases at rate O~(1/T)\tilde{\mathcal{O}}(1/T). Subsequent work extends this analysis to multiple queues (Krishnasamy et al., 2021; Kim and Oh, 2024) and contextual systems (Bae et al., 2026).

Another criterion is the cumulative queue length regret, ∑tE[Qtπ−Qt∗]\sum_t \mathbb{E}[Q_t^\pi - Q_t^*], which measures the backlog accumulated over the horizon. For a stochastic single queue system with at least one stabilizing channel, Stahlbuhk et al. (2021) construct queue-dependent policies with O(1)\mathcal{O}(1) cumulative regret. This is fundamentally stronger than summing a queue length regret of order 1/t1/t, which would yield logarithmic cumulative regret. Complementarily, Freund et al. (2023) study the maximum increase in expected time-averaged queue length.

These results rely mainly on stochastic assumptions on arrivals and services, and much less is known when both processes can vary arbitrarily. In the oblivious adversarial regime, Krishnakumar and Sinha (2025) study the largest queue length regret over the horizon relative to the best constant policy. For a single queue served by KK channels, they obtain a high-probability bound of O~(KT3/4)\tilde{\mathcal{O}}(\sqrt{K}T^{3/4}). Since a reduction from adversarial bandits gives a lower bound Ω(KT)\Omega(\sqrt{KT}), this result leaves a gap in the dependence on TT. Moreover, an adversarially robust policy is particularly desirable if it retains the stronger guarantees available in stochastic regimes. Therefore, it is desirable to design a single policy that achieves near-optimal worst-case queue length regret in adversarial regimes while retaining constant expected cumulative regret in stochastic regimes.

The main difficulty is that queue length regret is governed by service losses accumulated over the current busy period, whose endpoints depend on the policy itself and may therefore be random. Hence, a bandit regret measured over the entire horizon can be too coarse, and the analysis must instead control regret over data-dependent intervals. Exploration must also be adapted to the queue state, since repeated exploration in the presence of new arrivals can cause backlog to accumulate and persist into subsequent rounds.

We address these difficulties by a parameter-free, queue-dependent policy, which collects observations through uniform exploration when the queue is empty, exploits the resulting estimates when a new busy period begins. When a queue-dependent test indicates that continued greedy exploitation may be unsafe, it switches to a robust bandit policy, Exp3-IX (Neu, 2015).

Contributions. In the oblivious adversarial regime with non-negative arrivals and bounded services, our policy achieves O~(KLT)\tilde{\mathcal{O}}(\sqrt{KL_T}) worst-case queue length regret with high-probability for the length of the longest busy period LTL_T. Since LT≤TL_T \leq T, this matches the Ω(KT)\Omega(\sqrt{KT}) lower bound up to logarithmic factors, while providing a sharper guarantee when busy periods are short. Under i.i.d. bounded arrivals and services with a unique stabilizing best channel, the same policy obtains O(1)\mathcal{O}(1) expected cumulative regret and also O(log⁡(KT)/Δmin⁡)\mathcal{O}(\log(KT)/\Delta_{\min}) expected worst-case regret. Hence, combined with the adversarial result, it establishes a best-of-both-worlds guarantee. Table 1 summarizes our results and those of prior work.