Nonstationary stochastic multiarmed bandits: UCB policies and minimax regret

Lai Wei, Vaibhav Srivastava

Abstract

We study the nonstationary stochastic Multi-Armed Bandit (MAB) problem in which the distribution of rewards associated with each arm are assumed to be time-varying and the total variation in the expected rewards is subject to a variation budget. The regret of a policy is defined by the difference in the expected cumulative rewards obtained using the policy and using an oracle that selects the arm with the maximum mean reward at each time. We characterize the performance of the proposed policies in terms of the worst-case regret, which is the supremum of the regret over the set of reward distribution sequences satisfying the variation budget. We extend Upper-Confidence Bound (UCB)-based policies with three different approaches, namely, periodic resetting, sliding observation window and discount factor and show that they are order-optimal with respect to the minimax regret, i.e., the minimum worst-case regret achieved by any policy. We also relax the sub-Gaussian assumption on reward distributions and develop robust versions the proposed polices that can handle heavy-tailed reward distributions and maintain their performance guarantees.

Introduction

In the classic stochastic Multi-Armed Bandit (MAB) framework, an agent seeks to maximize cumulative rewards by selecting from $K$ available arms, typically under the assumption that reward distributions are stationary. However, real-world applications—such as robotic foraging, dynamic resource allocation in communication networks, and financial market modeling—frequently involve environments where reward distributions evolve over time.

This paper addresses the nonstationary stochastic MAB problem. To model the degree of nonstationarity, we employ a "variation budget" $V_T$, which bounds the total change in the expected rewards across all arms over a time horizon $T$. The primary challenge lies in the "remembering-versus-forgetting" tradeoff: an algorithm must utilize historical data to estimate arm means accurately while simultaneously discarding outdated information that no longer reflects the current state of the environment.

Proposed Algorithms: Extending MOSS

The proposed policies are built upon the Minimax Optimal Strategy in the Stochastic case (MOSS) algorithm. MOSS is preferred over the standard UCB1 because it achieves a tighter regret bound in stationary settings, lacking the additional logarithmic factor that often leads to sub-optimal performance in nonstationary extensions. We introduce three variants to handle nonstationarity:

  1. Resetting MOSS (R-MOSS): This policy periodically resets the algorithm's memory. By clearing all past observations at fixed intervals, R-MOSS ensures that the bias introduced by stale data is bounded.
  2. Sliding-Window MOSS (SW-MOSS): Instead of discrete resets, SW-MOSS maintains a moving window of the most recent observations. This approach provides a smoother adaptation to changes and is generally more data-efficient, though it requires higher memory overhead to store the windowed history.
  3. Discounted UCB (D-UCB): This variant applies a discount factor to past rewards, giving exponentially more weight to recent data. D-UCB is highly memory-efficient as it only requires storing summary statistics, though this efficiency comes at a slight cost in theoretical regret.

Robustness to Heavy-Tailed Distributions

Standard UCB algorithms typically assume that rewards follow sub-Gaussian distributions. In practice, many data sources exhibit "heavy tails," where extreme values occur more frequently than a Gaussian model would predict. To address this, we develop robust versions of our policies using a saturated empirical mean estimator. By truncating (capping) rewards at a specific threshold, we prevent outliers from disproportionately affecting the confidence bounds, allowing the algorithms to maintain performance guarantees even in the presence of heavy-tailed noise.

Performance and Regret Analysis

The performance of these policies is evaluated using minimax regret, the worst-case regret over all reward sequences satisfying the variation budget $V_T$.

  • Order-Optimality: We prove that both R-MOSS and SW-MOSS achieve a regret bound of $O((KV_T)^{1/3} T^{2/3})$. This matches the theoretical lower bound for nonstationary bandits, establishing these algorithms as order-optimal.
  • The Price of Memory Efficiency: The D-UCB policy achieves a regret of $O(\ln(T)(KV_T)^{1/3} T^{2/3})$. The additional $\ln(T)$ factor represents the performance trade-off for its reduced memory footprint.
  • Simulation Results: Monte Carlo simulations using the SMPyBandits framework demonstrate that MOSS-based policies consistently outperform adversarial bandit algorithms (like Rexp3). While adversarial algorithms are robust to any change, they fail to exploit the stochastic structure of the rewards as effectively as our proposed UCB-based methods.

Conclusion

This work provides a comprehensive framework for nonstationary stochastic MAB problems, offering algorithms that are both theoretically optimal and practically robust. While the current policies require prior knowledge of the variation budget $V_T$ or horizon $T$ for parameter tuning, they set a benchmark for "passive" adaptation. Future research will focus on "active" adaptation methods, such as integrated change-point detection, to eliminate the need for prior knowledge of the environment's volatility.

Summary updated

BibTeX
@misc{wei2021nonstationary,
  author = {Lai Wei and Vaibhav Srivastava},
  title = {{Nonstationary stochastic multiarmed bandits: UCB policies and minimax regret}},
  year = {2021},
  eprint = {2101.08980},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.08980},
}
Figure