Triple-Optimistic Learning for Stochastic Contextual Bandits with General Constraints

Abstract

We study contextual bandits with general constraints, where a learner observes contexts and aims to maximize cumulative rewards while satisfying a wide range of general constraints. We introduce the Optimistic$^3$ framework, a novel learning and decision-making approach that integrates optimistic design into parameter learning, primal decision, and dual violation adaptation (i.e., triple-optimism), combined with an efficient primal-dual architecture. Optimistic$^3$ achieves $\tilde{O}(\sqrt{T})$ regret and constraint violation for contextual bandits with general constraints. This framework not only outperforms the state-of-the-art results that achieve $\tilde{O}(T^{\frac{3}{4}})$ guarantees when Slater’s condition does not hold but also improves on previous results that achieve $\tilde{O}(\sqrt{T}/\delta)$ when Slater’s condition holds ($\delta$ denotes the Slater’s condition parameter), offering a $O(1/\delta)$ improvement. Note this improvement is significant because $\delta$ can be arbitrarily small when constraints are particularly challenging. Moreover, we show that Optimistic$^3$ can be extended to classical multi-armed bandits with both stochastic and adversarial constraints, recovering the best-of-both-worlds guarantee established in the state-of-the-art works, but with significantly less computational overhead.

Cite

Text

Guo et al. "Triple-Optimistic Learning for Stochastic Contextual Bandits with General Constraints." Proceedings of the 42nd International Conference on Machine Learning, 2025.

Markdown

[Guo et al. "Triple-Optimistic Learning for Stochastic Contextual Bandits with General Constraints." Proceedings of the 42nd International Conference on Machine Learning, 2025.](https://mlanthology.org/icml/2025/guo2025icml-tripleoptimistic/)

BibTeX

@inproceedings{guo2025icml-tripleoptimistic,
  title     = {{Triple-Optimistic Learning for Stochastic Contextual Bandits with General Constraints}},
  author    = {Guo, Hengquan and Zu, Lingkai and Liu, Xin},
  booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
  year      = {2025},
  pages     = {21252-21276},
  volume    = {267},
  url       = {https://mlanthology.org/icml/2025/guo2025icml-tripleoptimistic/}
}