Approximately Stationary Bandits with Knapsacks
- 18 December 2025
- journal article
- Published by Institute for Operations Research and the Management Sciences (INFORMS) in Mathematics of Operations Research
Abstract
Bandits with knapsacks (BwK), the generalization of the multiarmed bandits problem under global budget constraints, has received a lot of attention in recent years. It has numerous applications, including dynamic pricing, repeated auctions, ad allocation, network scheduling, etc. Previous work focuses on one of the two extremes: stochastic BwK in which the rewards and consumptions of the resources of each round are sampled from an independent and identical distribution and adversarial BwK in which these parameters are picked by an adversary. Achievable guarantees in the two cases exhibit a massive gap: no-regret learning is achievable in the stochastic case, but in the adversarial case, only competitive ratio style guarantees are achievable, in which the competitive ratio depends on either the budget or both the time and the number of resources. What makes this gap so vast is that, in adversarial BwK, the guarantees get worse in the typical case when the budget is more binding. Whereas best of both worlds–type algorithms are known (single algorithms that provide the best achievable guarantee in each extreme case), their known theoretical bounds degrade to the adversarial case as soon as the environment is not fully stochastic. Our work aims to bridge this gap, offering guarantees for a workload that is not exactly stochastic but is also not worst case. We define a condition, approximately stationary BwK, that parameterizes how close to stochastic or adversarial an instance is. Based on these parameters, we explore what is the best competitive ratio attainable in BwK. We explore two algorithms that are oblivious to the values of the parameters but guarantee competitive ratios that smoothly transition between the best possible guarantees in the two extreme cases, depending on the values of the parameters. Our guarantees offer great improvement over the adversarial guarantee, especially when the available budget is small. We also prove bounds on the achievable guarantee, showing that our results are approximately tight when the budget is small. Funding: This work was supported by the Air Force Office of Scientific Research [Grants FA9550-19-1-0183, FA9550-23-1-0068], the U.S. Department of Defense (National Defense Science & Engineering Graduate (N), and the Alexander S. Onassis Public Benefit Foundation [Grant F ZS 068-1/2022-2023].Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- Adversarial Bandits with KnapsacksJournal of the ACM, 2022
- Book announcement: Introduction to Multi-Armed BanditsACM SIGecom Exchanges, 2020
- Near Optimal Online Algorithms and Fast Approximation Algorithms for Resource Allocation ProblemsJournal of the ACM, 2019
- Stochastic bandits robust to adversarial corruptions2018
- Learning in Repeated Auctions with Budgets2017
- Bandits with concave rewards and convex knapsacks2014
- Bandits with Knapsacks2013
- Online Learning of Rested and Restless BanditsIEEE Transactions on Information Theory, 2012
- The Nonstochastic Multiarmed Bandit ProblemSIAM Journal on Computing, 2002
- A Decision-Theoretic Generalization of On-Line Learning and an Application to BoostingJournal of Computer and System Sciences, 1997