Piecewise-Stationary Bandits with Knapsacks
Xilin Zhang, Wang Chi Cheung
Abstract
We propose a novel inventory reserving algorithm which draws new insights into Bandits with Knapsacks (Bwk) problems in piecewise-stationary environments. Suppose parameters η min , η max P p0, 1s respectively lower and upper bound the ratio between the reward earned and the resources consumed in a round. Our algorithm achieves a provably near-optimal competitive ratio of Oplogpη max η min qq, with a matching lower bound provided. Our performance guarantee is based on a dynamic benchmark that upper bounds the optimum, different from existing works on adversarial Bwk Immorlica et al. (2019); Kesselheim and Singla (2020) who compare with the stationary benchmark. Different from existing non-stationary Bwk work Liu et al. (2022), we do not require a bounded global variation. Adversarial Bwk is firstly considered in Immorlica et al. ( 2019) where pr t , c t q " tpr t paq, c t paqqu aPK can change arbitrarily over the horizon. They achieve a competitive ratio (CR) of Opd logpT qq with respect to a static benchmark when there are d budget constraints. A static benchmark picks a fixed optimal action (or a fixed optimal distribution over arms), and applies the same action (or distribution) in all T rounds. Kesselheim and Singla ( 2020)further improve the CR to Oplogpdq logpT qq. Other papers consider different regimes such as unlimited rounds (Rangi et al. (2018)), large budget B " ΩpT q (Castiglioni et al. (2022a)), strict feasibility (Castiglioni et al. (2022b)) and approximate stationarity (Fikioris and Tardos (2023)). All these works compare with static benchmarks (see Appendix A.1). Moreover, adversarial Bwk could be too conservative in certain real-life scenarios. For instance, sales patterns could be stationary for a duration of time, but only change during periods of hot seasons/promotions/new trends, which fits into our piecewise-stationary Bwk regime. 38th Conference on Neural Information Processing Systems (NeurIPS 2024).
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.
Cited by top-tier papers2
- Learning to price with resource constraints: from full information to machine-learned pricesRuicheng Ao, Jiashuo Jiang, David Simchi-LeviNeurIPS 2025 · 4 citations
- CUPID in the Model Zoo: Online Matchmaking for Selecting Your Dream LLMSon Nguyen, Xinyuan Liu, Ransalu SenanayakeICML 2026
Builds on5
- 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
- Smoothed Adversarial Linear Contextual Bandits with KnapsacksVidyashankar Sivakumar, Shiliang Zuo, Arindam BanerjeeICML 2022 · 22 citations
- Improved Algorithms for Multi-period Multi-class Packing Problems with Bandit FeedbackWonyoung Kim, Garud Iyengar, Assaf ZeeviICML 2023 · 4 citations
Related papers
- Bandits with Knapsacks beyond the Worst CaseKarthik Abinav Sankararaman, Aleksandrs SlivkinsNeurIPS 2021 · 11 citations
- No-Regret is not enough! Bandits with General Constraints through Adaptive Regret MinimizationMartino Bernasconi, Matteo Castiglioni, Andrea CelliICML 2025
- The Symmetry between Arms and Knapsacks: A Primal-Dual Approach for Bandits with KnapsacksXiaocheng Li, Chunlin Sun, Yinyu YeICML 2021 · 24 citations
- Bandits with Replenishable Knapsacks: the Best of both WorldsMartino Bernasconi, Matteo Castiglioni, Andrea Celli, Federico FuscoICLR 2024 · 5 citations
- Bandits with Knapsacks: Advice on Time-Varying DemandsLixing Lyu, Wang Chi CheungICML 2023 · 4 citations
