Abstract: This paper introduces LOE2D, a novel Lyapunov Optimization Based Estimation to Decision framework for stochastic constrained contextual bandits (CCB). By integrating online regression oracles with virtual queue management, LOE2D achieves near-optimal regret and constraint violation bounds without requiring prior knowledge of the environment's feasibility margin (the Slater constant). Our theoretical analysis demonstrates that LOE2D improves upon existing methods like LagrangeCBwLC by handling vanishing margins and eliminating the need for manual parameter tuning.
Introduction
Contextual bandits are fundamental to modern personalized systems, from recommendation engines to clinical trial management. In these settings, an agent must select actions based on context to maximize a reward. However, real-world applications often involve long-term constraints—such as budget limits in advertising or fairness requirements in crowdsourcing. These are modeled as Stochastic Constrained Contextual Bandits (CCB).
The primary challenge in CCB is that both reward and cost functions are typically unknown and must be learned through interaction. Previous state-of-the-art approaches, such as LagrangeCBwLC, often required prior knowledge of the "Slater constant" ($\epsilon$)—a measure of the problem's feasibility margin—to tune learning rates. Furthermore, they often failed when this margin was small or vanished over time.
The LOE2D Framework
To address these limitations, we propose LOE2D (Lyapunov Optimization Based Estimation to Decision). The framework is built on three core components:
- Online Regression Oracles: LOE2D leverages general function classes and online regression to estimate expected rewards and costs for any given context.
- Virtual Queues (Lyapunov Optimization): The algorithm maintains a virtual queue ($Q_t$) that tracks cumulative constraint violations. This queue acts as a dynamic "price" for violating constraints; as the queue grows, the algorithm automatically prioritizes safety.
- Lyapunov Optimization Index: Instead of simple reward maximization, LOE2D selects actions that maximize a combined index: $\text{Estimated Reward} - (Q_t / V) \times \text{Estimated Cost}$, where $V$ is a scaling parameter.
- Violation-Adaptive Exploration: An "inverse-gap weighting" strategy is employed for action selection, where the exploration rate dynamically adjusts based on the state of the virtual queue.
Theoretical Advancements
LOE2D provides significant theoretical improvements over existing baselines. It establishes a regret and constraint violation bound of $\tilde{O}(T^{3/4} U^{1/4})$ in general settings. Under the Slater condition, this bound is refined to $\tilde{O}(\min\{\sqrt{TU}/\epsilon^2, T^{3/4}U^{1/4}\})$.
As shown in the table above, LOE2D is the only framework that provides robust guarantees across all standard CCB and Bandits with Knapsacks (CBwK) settings without requiring prior knowledge of the Slater constant. Notably, it remains stable even when the feasibility margin is as tight as $\epsilon = \Omega(\sqrt{U/T})$, a regime where previous methods lacked guarantees.
Experimental Validation
We evaluated LOE2D against the LagrangeCBwLC baseline using two real-world datasets:
- Pendigits: A handwritten digit classification task adapted for bandits, where the "cost" is tied to error rates.
- Microsoft MSLR-WEB30k: A large-scale learning-to-rank dataset simulating search engine constraints.
In both benchmarks, LOE2D consistently outperformed the baseline, achieving higher cumulative rewards while maintaining significantly lower constraint violations. The "knowledge-free" nature of LOE2D proved particularly advantageous, as it maintained high performance without the need for the extensive hyperparameter tuning required by Lagrange-based methods.
Conclusion
LOE2D represents a significant step forward in making constrained contextual bandits practical for real-world deployment. By replacing static learning rates with dynamic Lyapunov-based queue management, the framework achieves superior theoretical bounds and empirical performance while removing the need for sensitive prior information about the environment's feasibility. Future work will focus on further tightening the dependency on the Slater constant and exploring lower bounds for the CCB problem.
Summary updated