TL;DR
Imagine running a multi-LLM cluster or a cloud server where heterogeneous jobs constantly arrive, and you have to figure out which server finishes which type of job fastest—all while keeping the waiting line short. Existing algorithms for this "contextual queueing bandit" problem shrink the gap between their final queue length and an omniscient oracle's at a sluggish rate of $\widetilde{\mathcal{O}}(T^{-1/4})$ because they keep experimenting with random choices forever. By realizing that you can safely turn off random exploration right before the finish line and let the queue's natural "negative drift" wash away early mistakes, the authors achieve the fundamental speed limit of $\widetilde{\mathcal{O}}(T^{-1/2})$.
What Problem Does This Paper Address?
Every day, online platforms—from call centers to LLM routers—play a high-stakes game of learning while scheduling. Jobs arrive carrying specific features ("contexts"), and the system assigns each job to one of $K$ servers, observing only binary feedback: did the job finish and depart in this round, or is it still stuck in the queue? Because the true context-dependent service rates (modeled via a logistic function) are unknown, the scheduler faces a classic exploration-exploitation dilemma, with a twist: every bad routing decision leaves a job lingering in the queue, compounding future congestion.
Performance here is measured by queue length regret: the expected difference in queue length at a final time horizon $T$ between the learning algorithm and an oracle that knows all true departure probabilities. Unlike standard bandit regret, which adds up every mistake ever made, queue length regret only cares about the state of the line at time $T$. Prior contextual queueing bandit algorithms achieved a queue length regret of $\widetilde{\mathcal{O}}(T^{-1/4})$. The open question was whether this $T^{-1/4}$ bottleneck is a fundamental law of contextual queues, or merely an artifact of previous algorithms forcing random exploration all the way until round $T$.
Methods
The authors introduce CQB-$\eta$-2, an algorithm built around standard logistic bandit machinery—a regularized maximum likelihood estimator and Upper Confidence Bound (UCB) routing—wrapped in a novel three-phase exploration schedule:
- Phase 1 ($t \le \tau_1$, Pure Exploration): Whenever a new job arrives, the algorithm routes it to a uniformly random server. This builds a rough initial map of the system.
- Phase 2 ($\tau_1 < t \le \tau_2$, Mixed Exploration & UCB): On new arrivals, the algorithm explores randomly with a small probability $\eta = \epsilon/4$ (where $\epsilon$ is the "traffic slackness," or how much faster the optimal server is than the arrival rate $\lambda$) and uses UCB otherwise. Crucially, this $\eta$ is small enough that the queue maintains negative drift—meaning the line actively shrinks on average even while collecting $\Theta(T)$ clean random samples.
- Phase 3 ($t > \tau_2$, Pure UCB): Random exploration is completely cut off ($\eta = 0$). The algorithm relies purely on its UCB estimates for the home stretch.
To prove this rate cannot be beaten, the authors also construct a minimax lower bound using two statistically indistinguishable problem instances whose optimal server sets are exact opposites, paired with a queue-specific coupling argument at round $T-1$.
Datasets
No real-world or pre-existing benchmark datasets are used. Instead, the authors evaluate their method using synthetic simulations ($T = 2000$ rounds, feature dimension $d = 10$, $K = 5$ servers, arrival rate $\lambda = 0.7$, and traffic slackness $\epsilon = 0.1$), where job features and true parameters are sampled uniformly from $[-1, 1]$ and filtered to satisfy model assumptions.
Key Insights and Ideas
- Queue amnesia via negative drift: Why don't early random guesses ruin the final queue length at time $T$? Because a stable queue has negative drift—it naturally drains over time. Any extra queue buildup caused by suboptimal exploration before the cutoff $\tau_2$ decays exponentially fast before horizon $T$ arrives.
- Breaking the monotone-bound trap: Previous proofs relied on a mathematical decomposition that required bounding estimation error monotonically across the entire horizon, forcing algorithms to explore forever. Splitting the analysis at $\tau_2$ lets negative drift erase the past (before $\tau_2$), while $\Theta(T)$ accumulated samples ensure pure UCB makes tiny, $\mathcal{O}(T^{-1/2})$-scale errors in the present (after $\tau_2$).
- A single late mistake sets the speed limit: In the lower-bound proof, even if an algorithm plays almost perfectly for $T-2$ rounds, statistical uncertainty of order $T^{-1/2}$ on a job arriving right before the end translates directly into an $\Omega(T^{-1/2})$ expected queue difference at horizon $T$.
Key Results
- Rate-Optimal Regret: CQB-$\eta$-2 improves queue length regret under stochastic contexts from $\widetilde{\mathcal{O}}(T^{-1/4})$ to $\widetilde{\mathcal{O}}(T^{-1/2})$.
- Matching Lower Bound: The authors prove a minimax lower bound of $\Omega(T^{-1/2})$ (specifically, at least $\frac{\lambda(1-\lambda-\epsilon)e^{-1/6}}{16\sqrt{T}}$ for $T \ge 3$), proving the horizon dependence is tight up to logarithmic factors.
- Empirical Performance: Across 10 independent simulation runs ($T=2000$), CQB-$\eta$-2 (with $\tau_1 = 0.2T, \tau_2 = 0.3T$) and baseline CQB-$\varepsilon$ achieved the lowest final queue length regret (approaching 0 by $T=2000$), substantially outperforming ACQB, Q-UCB, Q-ThS, and random baselines. Performance scaled smoothly across server counts $K \in \{3, 5, 10\}$ and improved with larger slackness $\epsilon \in \{0.05, 0.1, 0.15\}$.
Limitations and Future Work
- Non-horizon parameters aren't tight yet: While the $T^{-1/2}$ dependence is locked in, finding optimal dependencies on feature dimension $d$, slackness $\epsilon$, logistic nonlinearity $\kappa$, and feature diversity $\sigma_0^{-1}$ remains open.
- Requires knowing $T$ and $\epsilon$ in advance: Setting the phase cutoffs $\tau_1$ and $\tau_2$ requires prior knowledge of the horizon $T$ and traffic slackness $\epsilon$. The authors suggest future "anytime" algorithms could eliminate this using lower confidence bounds on service slack combined with a queue-preserving doubling trick.
- Context-dependent holding costs: Extending the framework so that different jobs incur different waiting penalties based on their context is left for future exploration.
Summary updated