Abstract
Most contextual bandit algorithms minimize regret against the best fixed policy, a benchmark that fails in non-stationary environments where user preferences or reward distributions change over time. This work develops several efficient contextual bandit algorithms for non-stationary environments by equipping existing methods for i.i.d. problems with sophisticated statistical tests to dynamically adapt to distribution changes. We analyze various regret notions, including interval, switching, and dynamic regret. Our algorithms achieve near-optimal regret bounds, such as $O(\sqrt{ST})$ for $S$ stationary periods or $O(\Delta^{1/3}T^{2/3})$ for non-stationarity measure $\Delta$, matching inefficient baselines. We also introduce a parameter-free algorithm that improves upon existing results for simpler bandit problems.
Introduction
In the classic Contextual Bandit problem, an algorithm observes a context (e.g., a user profile), chooses an action (e.g., showing an ad), and receives a reward. Most existing algorithms assume a stationary environment where underlying reward probabilities remain constant. However, real-world applications like news recommendation or seasonal retail involve shifting trends and evolving user interests.
In these non-stationary environments, the goal shifts from competing with a single fixed policy to competing with the best policy at every moment. This presents two major challenges:
- Statistical: Detecting distribution shifts with only partial feedback (rewards are only seen for chosen actions).
- Computational: Maintaining efficiency without tracking an exponential or infinite set of policies.
Adaptive Algorithms for Non-Stationary Worlds
The authors propose a family of "ADA" (Adaptive) algorithms that build upon stationary contextual bandit methods by integrating a NONSTATTEST procedure. This test monitors performance across different time intervals; if it detects that a different policy would have performed significantly better recently, the algorithm assumes a distribution shift and restarts its learning process.
Key Algorithm Variants:
- ADA-GREEDY and ADA-ILTCB: These wrap base algorithms (like EPOCH-GREEDY or ILOVETOCONBANDITS) with the change-detection test. They are Oracle Efficient, meaning they reduce the bandit problem to a series of supervised learning problems, allowing them to handle large policy classes efficiently.
- ADA-BINGREEDY: A more advanced, parameter-free version. Unlike other methods that require knowing the "budget" of non-stationarity (e.g., the number of shifts $S$), ADA-BINGREEDY uses a bin-based exploration strategy to adapt automatically.
Theoretical Results and Performance
This research establishes rigorous mathematical regret bounds for the proposed algorithms. A key insight is that if an algorithm can guarantee low regret on any stationary interval, it can be mathematically extended to handle complex scenarios like switching regret (discrete changes) and dynamic regret (continuous drift).
As shown in the table above, the efficient ADA-ILTCB algorithm achieves a regret bound of $O(\Delta^{1/3}T^{2/3})$, which nearly matches the performance of Exp4.S, a classic but computationally inefficient baseline. Furthermore, ADA-BINGREEDY achieves a regret of $\min\{S^{1/4}T^{3/4}, \Delta^{1/5}T^{4/5}\}$ without prior knowledge of $S$ or $\Delta$, significantly improving upon previous results limited to two-armed bandits.
Limitations and Future Directions
While these algorithms provide strong theoretical guarantees, they currently rely on a "restart" mechanism that discards all previous learning upon detecting a change. Future work could explore "long-term memory" to recognize and reuse previously seen distributions. Additionally, while oracle-efficient, practical performance depends on the speed of the underlying optimization oracle. The statistical tests also involve constants that may require empirical tuning for specific real-world applications.
Summary updated