Adaptive Experimentation in the Presence of Exogenous Nonstationary Variation

Chao Qin, Daniel RussoarXiv 2022

This paper by Chao Qin and Daniel Russo addresses a critical weakness in modern experimental design: how to run efficient, adaptive experiments when the world around the experiment is constantly changing.

TL;DR

The authors introduce Deconfounded Thompson Sampling (DTS), a robust bandit algorithm designed to identify the best treatment for a population even when external factors (like time of day or user location) create nonstationary "noise." Unlike standard algorithms that can be misled by these shifts, DTS "controls for" these factors to ensure reliable post-experiment decisions while maintaining the efficiency of adaptive testing.

What Problem Does This Paper Address?

Multi-armed bandit (MAB) algorithms are the gold standard for efficient A/B testing. By dynamically shifting traffic toward better-performing "arms" (treatments), they reduce the cost of experimentation. However, most MABs assume that an arm’s performance is stable over time (i.e., independent and identically distributed).

In the real world, this assumption is often false. Imagine Spotify testing a new layout for home screen shortcuts (see Figure 1). User behavior on a Monday morning is vastly different from a Friday night. If an adaptive algorithm happens to play "Arm A" mostly on Mondays and "Arm B" mostly on Fridays, it might conclude Arm A is better simply because Mondays have higher baseline engagement. This is a confounding problem: the algorithm’s own adaptivity, coupled with external nonstationarity, creates biased results.

Figure 1: Shortcuts

Methods

The authors propose Deconfounded Thompson Sampling (DTS). The core idea is to use observable "contexts" (like time, weather, or country) not to personalize the experience, but to deconfound the inference.

  • The Model: They use a Bayesian linear model where rewards are influenced by both the chosen arm and the current context.
  • The Algorithm: At each step, DTS samples a version of the world from its posterior distribution. It then selects the arm that would perform best on average across the entire population distribution, rather than the arm that is best for the current specific context.
  • The Innovation: Unlike standard contextual bandits that aim for personalization (different rules for different people), DTS aims for standardization (one best rule for everyone) while using context to filter out exogenous "weather" in the data.
  • Proof Technique: The authors developed a novel analysis using inverse propensity weights to track how the posterior distribution evolves, providing a more robust theoretical foundation than traditional methods.

Datasets

The paper evaluates the algorithm using simulated environments designed to mimic difficult real-world nonstationarity:

  • Day-of-Week Effects: A week-long simulation where rewards vary by day (Example 2).
  • Latent Variation: Scenarios where rewards follow complex temporal trends (illustrated in Figure 2).
  • Information-Gathering Failures: A simplified two-day experiment (Example 3) specifically designed to "break" traditional algorithms.

Key Insights and Ideas

  • Standardization is a Feature, Not a Bug: In many industries (medicine, public policy, UI design), you cannot or should not personalize every decision. DTS is built for the common case where you need one stable, optimal decision for the whole population.
  • The Surprising Failure of UCB: One of the most striking findings is that a deconfounded version of the popular Upper Confidence Bound (UCB) algorithm can fail completely. UCB is deterministic and can get "stuck" playing only one arm if it doesn't encounter a specific context early enough. DTS’s inherent randomness ensures it explores enough to avoid this trap.
  • Attainable Precision: The authors show that regret isn't just a function of time ($T$), but of "attainable precision"—a measure of how much the observed contexts actually allow you to learn about the population.
  • Low Price of Deconfounding: The theoretical bounds show that adding more contextual features to "control for" variation has a very low cost in terms of performance, encouraging practitioners to use rich feature sets.

Key Results

The authors provide rigorous regret bounds for both within-experiment (cost of testing) and post-experiment (quality of the final choice) performance.

DTS (labeled 'TS') balances exploration and exploitation, achieving low regret both during and after the experiment.

As shown in Figure 3, DTS (labeled 'TS' in the teaser) successfully identifies near-optimal arms by the end of the experiment while significantly reducing the "utilitarian regret" (cost) during the trial compared to standard "round-robin" (RCT) approaches. In contrast, "context-unaware" versions of Thompson Sampling fail to converge on the correct arm when the context order is challenging (e.g., seeing all "Mondays" before any "Tuesdays").

Limitations and Future Work

  • Gaussian Assumptions: The current theoretical results rely on Gaussian priors and noise. While the authors conjecture these results hold for sub-Gaussian distributions, the current proofs are tied to the analytical form of the Gaussian posterior.
  • Prior Tuning: Like all Bayesian methods, DTS requires setting a prior. Choosing the "bandwidth" of nonstationarity (how fast the world changes) remains a delicate task for practitioners.
  • Observation Delay: While the paper introduces a framework for delayed rewards, deeper exploration into how extreme delays impact deconfounding would be a valuable next step.

Summary updated

BibTeX
@misc{qin2022adaptive,
  author = {Chao Qin and Daniel Russo},
  title = {{Adaptive Experimentation in the Presence of Exogenous Nonstationary Variation}},
  year = {2022},
  eprint = {2202.09036},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.09036},
}
Figure