A Change-Detection Based Framework for Piecewise-Stationary Multi-Armed Bandit Problem

Fang Liu, Joohyun Lee, Ness B. Shroff

Standard Multi-Armed Bandit (MAB) algorithms often struggle in non-stationary environments where reward distributions shift over time. This paper, originally presented at AAAI 2018, introduces CD-UCB, a framework that integrates active statistical change-detection with Upper Confidence Bound (UCB) policies. By explicitly monitoring for breakpoints and resetting learning statistics, the proposed method achieves state-of-the-art regret bounds and superior performance in dynamic environments.

The Challenge of Non-Stationarity

In the classical MAB problem, a decision-maker balances exploration and exploitation to maximize rewards from $K$ different arms. Standard algorithms assume reward distributions are stationary. However, real-world applications like stock markets or user news preferences are often piecewise-stationary: rewards are stable for a duration but then shift abruptly at unknown "breakpoints."

Existing "passively adaptive" solutions, such as using a sliding window of recent data (SW-UCB) or discounting old observations (D-UCB), often react too slowly to changes or discard useful data too quickly. The challenge lies in detecting a change in an arm that isn't currently being pulled and distinguishing true environmental shifts from statistical noise.

The CD-UCB Framework

The authors propose an "active" adaptation strategy that decouples the decision-making policy from the environment monitoring process.

The CD-UCB framework architecture, showing the interaction between change detection, the bandit algorithm, and the environment.

As illustrated in Figure 1, the framework consists of two primary components:

  1. The Bandit Algorithm: A modified UCB policy that selects arms based on current statistics.
  2. The Change-Detection (CD) Algorithm: A monitor (such as CUSUM or the Page-Hinkley Test) that watches the reward stream.

When the CD component detects a significant shift in an arm's reward distribution, it triggers an "alarm" that resets the statistics for that specific arm. This allows the bandit algorithm to relearn the arm's value without interference from stale, pre-change data.

Key Innovations

  • Tailored CUSUM: The authors adapted the Cumulative Sum (CUSUM) algorithm for the bandit setting. Since true reward means are unknown, they use an initial batch of samples after a reset to estimate a baseline before running two-sided random walks to detect drifts.
  • Forced Exploration ($\alpha$): To ensure CD monitors receive fresh data for all arms—even those currently perceived as sub-optimal—the framework occasionally forces the agent to sample all arms. This prevents the system from "missing" a change that makes a previously poor arm the new best option.

Experimental Results

The framework was evaluated using synthetic environments and a massive real-world dataset of Yahoo! news click-through rates.

Regret performance as a function of the change magnitude parameter Δ, comparing CUSUM-UCB against passive baselines.

A critical finding, shown in Figure 2, is the framework's sensitivity to the magnitude of changes ($\Delta$). In "flipping" environments, as the difference in reward means becomes smaller, the performance gap between CUSUM-UCB and passive methods like SW-UCB grows. Passive methods struggle to distinguish subtle shifts from noise, whereas the active reset mechanism of CD-UCB provides a much cleaner break.

On the Yahoo! dataset, both CUSUM-UCB and PHT-UCB (using the Page-Hinkley Test) demonstrated significantly better "sub-linear" regret compared to passive policies, which often suffered from linear regret, indicating they failed to keep up with rapidly changing news trends.

Conclusion

CD-UCB provides a robust solution for piecewise-stationary MAB problems, achieving a theoretical regret bound of $O(\sqrt{T \gamma_T \log T})$ (where $\gamma_T$ is the number of changes). While CUSUM-UCB offers strong theoretical guarantees, the authors found PHT-UCB to be particularly stable in complex switching environments. Future research may focus on automated parameter tuning for environments where the frequency of change is entirely unknown.

Summary updated

BibTeX
@inproceedings{liu2018change,
  author = {Fang Liu and Joohyun Lee and Ness B. Shroff},
  title = {{A Change-Detection Based Framework for Piecewise-Stationary Multi-Armed Bandit Problem}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11746},
}
Figure