Self-Tuning Bandits over Unknown Covariate-Shifts

Joseph Suk, Samory Kpotufe

Introduction: The Challenge of a Changing World

In contextual bandit problems, an agent must select actions based on observed contexts to maximize cumulative rewards. Traditional models often assume a stationary environment where the distribution of contexts remains constant. However, real-world applications—ranging from clinical trials to recommendation engines—frequently encounter covariate shift. In these scenarios, the underlying relationship between contexts and rewards is stable, but the distribution of incoming contexts changes over time.

Timeline of covariate shift illustrating the transition from an initial distribution to a current distribution $Q$ at an unknown shift time $n_P$.

Existing approaches typically either ignore these shifts, leading to failure, or adopt adversarial strategies that are overly conservative, discarding valuable historical data. This paper introduces a "self-tuning" nonparametric algorithm designed to bridge this gap by automatically leveraging past experience to accelerate learning in new environments, even without prior knowledge of when or how a shift occurred.

Methodology: Adaptive Dyadic Partitioning

The proposed Adaptive Bandit algorithm utilizes a dyadic partitioning tree to manage the context space. By recursively slicing the context space into smaller "bins," the algorithm can adapt its decision-making resolution locally.

Key components of the approach include:

  • Local Adaptation: The algorithm selects a bin size for each context $X_t$ based on the local sample count. If a region has been extensively explored (even prior to a shift), the algorithm employs a finer resolution for more precise actions.
  • Agnosticism: The system does not require explicit parameters regarding the shift time, the data's intrinsic dimension, or the magnitude of the distribution change.
  • Arm Elimination: Suboptimal actions are pruned within each bin to focus exploration on high-performing arms.

Key Insights: Quantifying Shift with the Transfer Exponent

A central contribution of this work is the use of a transfer exponent ($\gamma$) to quantify the discrepancy between the source distribution ($P$) and the target distribution ($Q$). This parameter captures how much information from the past remains relevant.

Visual representation of covariate shift, showing changes in context support ($\mathcal{X}_P$ vs $\mathcal{X}_Q$) and the resulting density ratios that define the transfer exponent $\gamma$.

The "aha" moment lies in the realization that local covariate counts serve as a natural proxy for information density. When a shift moves data into a novel region, local counts drop, and the algorithm automatically increases exploration. Conversely, in familiar regions, it exploits past data to reduce regret. This mechanism effectively links the difficulty of bandit learning under shift to the fundamental limits of classification under covariate shift.

Empirical Results and Performance

The authors evaluated the algorithm using synthetic simulations on a 2D unit square with complex, non-parametric reward landscapes. The results demonstrate:

  • Tight Regret Bounds: The derived bounds interpolate between standard rates and faster rates that account for "effective" past samples.
  • Superiority over Adversarial Baselines: Unlike adversarial methods that reset or ignore the past, the self-tuning approach successfully utilizes historical data to significantly reduce regret immediately following a shift.

Conclusion and Future Directions

This research provides a robust framework for bandits in non-stationary environments where the context distribution evolves. While the current model assumes a fixed reward function, it sets the stage for future work on "concept drift" (where reward rules change) and high-dimensional feature spaces. By treating past data as a resource rather than a liability, the self-tuning bandit offers a more efficient path for real-world adaptive systems.

Summary updated

BibTeX
@inproceedings{suk2021self,
  author = {Joseph Suk and Samory Kpotufe},
  title = {{Self-Tuning Bandits over Unknown Covariate-Shifts}},
  booktitle = {ALT},
  year = {2021},
  url = {https://openreview.net/forum?id=AGoSGwam6An},
}
Figure