Abstract
In the realm of online learning, the Bandits with Knapsack (BwK) problem extends the classic multi-armed bandit framework by introducing resource constraints. Historically, algorithms have been optimized for either stable stochastic environments or volatile adversarial ones, but rarely both. This paper presents the first "Best of Both Worlds" (BoBW) algorithms for BwK. By introducing a novel efficiency-based regret metric and adaptive exploration strategies, the proposed algorithms—EXP3.BwK and EXP3++.BwK—achieve order-optimal performance in adversarial settings while maintaining near-optimal performance in stochastic environments, effectively bridging the gap between these two fundamental paradigms.
Introduction
The Multi-Armed Bandit (MAB) problem is a cornerstone of sequential decision-making under uncertainty. However, many real-world applications—such as medical trials or dynamic pricing in advertising—operate under strict resource limitations. The Bandits with Knapsack (BwK) framework models these scenarios by assigning a cost to each action and a total budget to the agent. The game ends immediately once the budget is exhausted.
Traditionally, BwK research has been bifurcated. Stochastic models assume rewards and costs are drawn from fixed distributions, allowing for algorithms that exploit stability. Conversely, adversarial models assume rewards and costs are chosen by an adversary, necessitating robust exploration to prevent exploitation. The challenge lies in the fact that algorithms designed for one environment typically perform poorly in the other. This paper addresses this gap by seeking a unified approach that adapts to the environment's nature without prior knowledge.
Methodology and Algorithmic Framework
The authors propose a shift in how regret is measured and how actions are selected, moving from a focus on pure rewards to a focus on "efficiency."
Efficiency as a Core Metric
In standard bandit problems, the goal is to maximize cumulative rewards. In BwK, the agent must maximize the "bang for the buck." The authors define efficiency as the ratio of reward to cost ($r/c$). By defining regret relative to the best fixed action in hindsight based on efficiency, they make sub-linear regret achievable even in adversarial settings.
EXP3.BwK
Building on the classic Exponential weights for Exploration and Exploitation (EXP3) algorithm, the authors introduce EXP3.BwK. This algorithm updates action weights based on their observed efficiency. This adaptation ensures that the agent prioritizes actions that are resource-efficient, which is critical when the horizon is determined by a budget rather than a fixed number of rounds.
EXP3++.BwK: The Best of Both Worlds
The flagship algorithm, EXP3++.BwK, is designed to be environment-agnostic. It employs time-varying exploration and exploitation parameters guided by Upper and Lower Confidence Bounds (UCB and LCB) on action efficiency.
- In Stochastic Environments: The confidence bounds narrow quickly, allowing the algorithm to decay exploration at a rate of roughly $1/t^2$, focusing on the optimal arm.
- In Adversarial Environments: The algorithm maintains a sufficient level of exploration (a constant rate $\gamma$) to remain robust against adversarial shifts, preventing the agent from being "tricked" by temporary fluctuations.
Theoretical Analysis and Results
As a theoretical contribution, the paper relies on rigorous mathematical proofs rather than empirical datasets. The performance is evaluated through regret analysis, comparing the algorithm's performance against an optimal stationary policy.
Key Findings
- Adversarial Optimality: The authors prove that
EXP3.BwKachieves an expected regret of $O(\sqrt{BK \log K})$, where $B$ is the budget and $K$ is the number of arms. They further establish a lower bound of $\Omega(\sqrt{KB})$, confirming that their adversarial performance is order-optimal. - Stochastic Performance:
EXP3++.BwKachieves $O(\log^2 B)$ regret in stochastic settings. While this includes an additional logarithmic factor compared to specialized stochastic algorithms (which typically achieve $O(\log B)$), it represents a significant breakthrough for a unified algorithm. - The Impact of Large Costs: The research identifies a critical threshold for action costs. If the maximum cost of an action scales as $B^\alpha$ (where $\alpha > 1/2$), the standard $\sqrt{B}$ regret becomes theoretically impossible to achieve. This highlights a fundamental limitation in BwK problems where individual actions can consume a significant portion of the total budget.
Discussion and Future Work
This work provides a robust framework for resource-constrained online learning, yet several avenues for future research remain. While EXP3++.BwK is nearly optimal in stochastic settings, closing the $O(\log^2 B)$ vs $O(\log B)$ gap remains an open theoretical challenge. Additionally, the current analysis assumes an "oblivious" adversary—one who determines the sequence of rewards and costs before the game begins. Extending these "Best of Both Worlds" guarantees to "adaptive" adversaries, who can react to the player's previous choices, would further enhance the practical applicability of the framework in highly dynamic environments.
Summary updated