Debiasing Samples from Online Learning Using Bootstrap

Ningyuan Chen, Xuefeng Gao, Yi Xiong

Introduction: The Bias of Adaptive Sampling

In standard statistical inference, we typically assume that data is collected independently and identically distributed (i.i.d.). However, in modern online learning contexts—such as clinical trials, A/B testing, or ad placement—data collection is inherently adaptive. Algorithms like Upper Confidence Bound (UCB) or Thompson Sampling use past observations to decide which "arm" to pull next, prioritizing options that appear to perform better.

This sequential decision-making creates a significant "selective sampling" bias. If an inferior arm happens to yield poor results early on due to random noise, a bandit algorithm will stop exploring it. Because the data collection ceases precisely when the empirical average is low, the sample mean is never corrected by subsequent data. Consequently, sample averages for sub-optimal arms are almost always negatively biased, leading to inaccurate post-experiment evaluations.

Distribution of raw sample means for Gaussian rewards. The dashed lines (empirical means) are shifted to the left of the solid red lines (true means), illustrating the negative bias inherent in adaptive sampling.

Existing debiasing techniques, such as Inverse Propensity Weighting (IPW), rely on the probability of an arm being chosen. However, for deterministic algorithms like UCB or Explore-Then-Commit (ETC), these probabilities are often zero or one, causing propensity-based methods to fail or exhibit extreme variance.

The Multiplier Bootstrap Method

To address this, we propose a Multiplier Bootstrap approach that focuses on replicating the algorithm's logic rather than just modeling the reward distribution. The procedure involves four primary steps:

  1. Construct a Bootstrap World: Using the collected data, create a proxy for the reward distribution of each arm (e.g., a Gaussian distribution centered at the observed sample mean).
  2. Simulate the Algorithm: Re-run the exact bandit algorithm (e.g., UCB) thousands of times within this simulated environment.
  3. Estimate Bootstrap Bias: Since the "true" mean in the bootstrap world is known (it is the sample mean from the real data), we can calculate the exact bias the algorithm generates across these simulations.
  4. Correct the Real-World Estimates: Subtract the average bootstrap bias from the original real-world sample averages to produce a debiased estimate.

This method captures the "intertemporal dependence" of the algorithm, allowing for effective debiasing even when propensity scores are unavailable.

Empirical Results and Theoretical Insights

The effectiveness of the Multiplier Bootstrap was evaluated across various synthetic environments, including Gaussian and Bernoulli rewards. In all tested scenarios, the bootstrap-corrected means were significantly more accurate than raw sample averages.

Distribution of Multiplier Bootstrap (MB) corrected sample means. The dashed lines now align closely with the solid red true means, demonstrating successful bias removal.

Key findings from the study include:

  • Significant Bias Reduction: In a UCB trial with Gaussian rewards, the raw bias for the inferior arm was reduced by approximately 60% using the bootstrap correction.
  • Stability in Small Samples: Unlike IPW or Augmented IPW (AIPW), which suffer from high variance in small-sample regimes (e.g., $T=25$), the bootstrap method remains stable and provides lower Mean Squared Error (MSE).
  • Theoretical Foundation: For the Explore-Then-Commit (ETC) algorithm, we proved that the bias in the real world and the bootstrap world decay at the same exponential rate as the exploration phase grows. For Gaussian rewards, the ratio of bootstrap bias to real bias converges to 1 asymptotically.

Conclusion and Future Work

The Multiplier Bootstrap provides a robust, algorithm-centric framework for debiasing adaptive data. While the current theoretical proofs focus on the ETC algorithm, empirical evidence suggests the method is broadly applicable to UCB and Thompson Sampling. Future research will aim to extend these rigorous guarantees to fully adaptive algorithms and explore the impact of non-Gaussian tail behaviors on the bootstrap's accuracy.

Summary updated

BibTeX
@inproceedings{chen2022debiasing,
  author = {Ningyuan Chen and Xuefeng Gao and Yi Xiong},
  title = {{Debiasing Samples from Online Learning Using Bootstrap}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
}
Figure