Beyond Primal-Dual Methods in Bandits with Stochastic and Adversarial Constraints
Martino Bernasconi, Matteo Castiglioni, Andrea Celli, Federico Fusco
Abstract
We address a generalization of the bandit with knapsacks problem, where a learner aims to maximize rewards while satisfying an arbitrary set of long-term constraints. Our goal is to design best-of-both-worlds algorithms that perform optimally under both stochastic and adversarial constraints. Previous works address this problem via primal-dual methods, and require some stringent assumptions, namely the Slater's condition, and in adversarial settings, they either assume knowledge of a lower bound on the Slater's parameter, or impose strong requirements on the primal and dual regret minimizers such as requiring weak adaptivity. We propose an alternative and more natural approach based on optimistic estimations of the constraints. Surprisingly, we show that estimating the constraints with an UCB-like approach guarantees optimal performances. Our algorithm consists of two main components: (i) a regret minimizer working on moving strategy sets and (ii) an estimate of the feasible set as an optimistic weighted empirical mean of previous samples. The key challenge in this approach is designing adaptive weights that meet the different requirements for stochastic and adversarial constraints. Our algorithm is significantly simpler than previous approaches, and has a cleaner analysis. Moreover, ours is the first best-of-both-worlds algorithm providing bounds logarithmic in the number of constraints. Additionally, in stochastic settings, it provides regret without Slater's condition.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 5d42a282-e8d9-4c53-99f9-18fa19c7e864Cited by top-tier papers6
- Online Bidding under RoS Constraints without Knowing the ValueSushant Vijayan, Zhe Feng, Swati Padmanabhan, Karthikeyan Shanmugam et al.WWW 2025 · 4 citations
- Triple-Optimistic Learning for Stochastic Contextual Bandits with General ConstraintsHengquan Guo, Lingkai Zu, Xin LiuICML 2025
- Online Learning in the Random-Order ModelMartino Bernasconi, Andrea Celli, Riccardo Colini-Baldeschi, Federico Fusco et al.ICML 2025
- Auto-bidding under Return-on-Spend Constraints with Uncertainty QuantificationJiale Han, Chun Gan, Chengcheng Zhang, Jie He et al.WWW 2026
- Contextual Multi-Armed Bandits with Minimum Aggregated Revenue ConstraintsAhmed Ben Yahmed, Hafedh El Ferchichi, Marc Abeille, Vianney PerchetICLR 2026
Builds on9
- A Unifying Framework for Online Optimization with Long-Term ConstraintsMatteo Castiglioni, Andrea Celli, Alberto Marchesi, Giulia Romano et al.NeurIPS 2022 · 59 citations
- Online Learning with Knapsacks: the Best of Both WorldsMatteo Castiglioni, Andrea Celli, Christian KroerICML 2022 · 47 citations
- Non-stationary Bandits with KnapsacksShang Liu, Jiashuo Jiang, Xiaocheng LiNeurIPS 2022 · 34 citations
- Non-monotonic Resource Utilization in the Bandits with Knapsacks ProblemRaunak Kumar, Robert KleinbergNeurIPS 2022 · 17 citations
- No-Regret Algorithms in non-Truthful Auctions with Budget and ROI ConstraintsGagan Aggarwal, Giannis Fikioris, Mingfei ZhaoWWW 2025 · 13 citations
Related papers
- No-Regret is not enough! Bandits with General Constraints through Adaptive Regret MinimizationMartino Bernasconi, Matteo Castiglioni, Andrea CelliICML 2025
- Smoothed Adversarial Linear Contextual Bandits with KnapsacksVidyashankar Sivakumar, Shiliang Zuo, Arindam BanerjeeICML 2022 · 22 citations
- An Efficient Pessimistic-Optimistic Algorithm for Stochastic Linear Bandits with General ConstraintsXin Liu, Bin Li, Pengyi Shi, Lei YingNeurIPS 2021 · 63 citations
- Improved Best-of-Both-Worlds Regret for Bandits with Delayed FeedbackOfir Schlisselberg, Tal Lancewicki, Peter Auer, Yishay MansourNeurIPS 2025 · 2 citations
- On Stochastic Contextual Bandits with Knapsacks in Small Budget RegimeHengquan Guo, Xin LiuICLR 2025
