TL;DR
This paper introduces WISE (Widest Interval Selection with Elimination), the first anytime, rate-optimal algorithm for contextual queueing bandits. By replacing restrictive "context-wise slack" assumptions with a more realistic "capacity slack" condition, the authors achieve a theoretically optimal $\widetilde{\mathcal{O}}(t^{-1/2})$ queue length regret bound that holds even when job features are confined to lower-dimensional subspaces.
What Problem Does This Paper Address?
In modern systems like cloud computing clusters or LLM-based service APIs, schedulers must assign incoming jobs (queries) to servers. This is challenging because:
- Service rates are unknown: We don't know exactly how fast a specific server will handle a specific job type; we have to learn this from experience.
- Context matters: The success probability depends on both the job's specifications and the server's capabilities (modeled here as a logistic function of job-server features).
- Queue Stability: The primary goal isn't just "high reward" (as in standard bandits), but keeping the queue short.
Previous research in Contextual Queueing Bandits (CQB) suffered from three major flaws: they required knowing the time horizon in advance, they assumed "context-wise slack" (meaning every single type of job must be serviceable faster than it arrives), and they required job features to be "diverse" enough to cover all dimensions (a positive minimum eigenvalue of the feature covariance). This paper aims to solve all three.
Methods
The authors propose WISE (Widest Interval Selection with Elimination). The algorithm operates in epochs and follows these key steps:
- Logistic Estimation: It uses regularized logistic maximum likelihood to estimate the unknown service parameters.
- Elimination: It maintains confidence intervals for service probabilities and discards job-server pairs that are statistically guaranteed to be suboptimal.
- Widest Interval Selection: Among the remaining candidates, it selects the pair with the widest confidence interval. This ensures the agent explores the most uncertain options to improve future scheduling.
- Interval Intersection: Within each epoch, it intersects new confidence intervals with previous ones to ensure uncertainty is non-increasing, which is crucial for the mathematical proof of stability.
The theoretical analysis introduces a workload potential function. Instead of just counting the number of jobs, it measures the expected service attempts needed to clear the queue. This allows the authors to prove stability under the weaker "capacity slack" assumption.
Datasets
The paper does not use real-world datasets; instead, it evaluates the algorithm using synthetic simulations designed to test the limits of the theoretical assumptions.
- Setup: $d=5$ feature dimensions, $K=10$ servers, and an arrival rate $\lambda=0.6$.
- Scenarios: The authors tested three context distributions:
- Pointwise: Satisfies the old "context-wise slack" assumption.
- Average ($q=0.15$ and $q=0.50$): These distributions include "difficult" jobs that arrive faster than they can be served, violating previous assumptions but satisfying the new "capacity slack" condition.
Key Insights and Ideas
- Capacity Slack > Context-wise Slack: The "aha moment" here is that a system can remain stable even if some specific job types are "unserviceable" in isolation, provided the average incoming workload is less than the total system capacity.
- Workload as a Lyapunov Function: By focusing on the "effort" required to clear the queue rather than just the number of jobs, the authors found a more robust way to prove that the learner's queue won't blow up during the learning phase.
- Elliptical Potential Count: The authors use this technique to bound how often the algorithm makes "bad" choices due to high uncertainty. Crucially, they show that you don't need a "covariance lower bound"—the algorithm learns enough about the relevant feature subspaces to eventually make near-optimal decisions.
Key Results
- Upper Bound: WISE achieves a queue length regret of $\widetilde{\mathcal{O}}(t^{-1/2})$. This matches the known lower bound for this problem class, making the algorithm rate-optimal.
- Anytime Guarantee: Unlike previous optimal algorithms, WISE does not need to know the total number of rounds ($t$) in advance.
- New Lower Bounds: The paper provides a refined lower bound that explicitly shows how regret scales with the arrival rate ($\lambda$), feature dimension ($d$), and number of servers ($K$). It also introduces the first lower bound quantifying how regret increases as the capacity slack ($\epsilon$) vanishes.
- Empirical Performance: In simulations, WISE maintained low regret even in settings where all baseline algorithms failed because the "context-wise slack" was violated.
Limitations and Future Work
- Threshold Time ($t_0$): The theoretical guarantees hold for "every sufficiently large time $t$." The paper defines a threshold $t_0$, but in practice, this threshold might be large depending on the system parameters.
- I.I.D. Contexts: The model assumes that job contexts are drawn independently from a fixed distribution. Real-world traffic often has temporal correlations or non-stationary patterns (e.g., "bursty" arrivals), which are not addressed here.
- Computational Complexity: The algorithm requires solving a logistic regression and intersecting intervals for all jobs in the queue at every step, which could become a bottleneck for extremely large queues.
Summary updated