Best of Three Worlds: Adaptive Experimentation for Digital Marketing in Practice

Tanner Fiez, Houssam Nassif, Yu-Cheng Chen, Sergio Gamez, Lalit Jain

TL;DR

This paper introduces Cumulative Gain Successive Elimination (CGSE), a new framework for adaptive experimentation designed for the messy, non-stationary reality of digital marketing. By shifting the focus from empirical means to "cumulative gain" and utilizing always-valid inference, CGSE identifies the best-performing treatments faster than traditional A/B tests while avoiding the biased pitfalls of standard bandit algorithms like Thompson Sampling.

What Problem Does This Paper Address?

In industry, traditional A/B/N testing is the gold standard for inference but is often slow and expensive. To speed things up, engineers often turn to Adaptive Experimental Design (AED), such as Multi-Armed Bandits, which dynamically shift traffic toward winning treatments.

However, standard AED methods rely on a "stationary" assumption—the idea that an arm's performance doesn't change over time. In digital marketing, this is rarely true; performance fluctuates due to day-of-week effects, seasonal trends, and external shocks (see Figure 2). When stationarity fails, standard bandits can fall victim to Simpson’s Paradox: an algorithm might shift all traffic to Arm A because its running average looks high, even if Arm B actually performs better on every individual day (see Figure 1). This creates a "vicious cycle" where biased traffic allocation leads to even more biased estimates, resulting in incorrect business decisions.

Figure 2: Real-world marketing data showing significant non-stationarity (trends and cycles) across different experiments.

Methods

The authors propose a "Best of Three Worlds" approach that balances identification (finding the best arm), regret minimization (reducing opportunity cost), and robustness to time variation.

  1. Metric: Cumulative Gain (CG): Instead of tracking the running empirical mean, they use Cumulative Gain. This answers the counterfactual question: "How much reward would this arm have earned if it had received all the traffic?"
  2. Estimator: Inverse Propensity Weighting: To keep the CG estimate unbiased even when traffic levels change, they use inverse propensity weighting. This prevents the "Simpson's Paradox" bias inherent in standard averages.
  3. Inference: Always-Valid Confidence Intervals: They utilize the Mixture Sequential Probability Ratio Test (MSPRT) to create confidence intervals that remain valid even if you "peek" at the data continuously.
  4. Algorithm: CGSE: The Cumulative Gain Successive Elimination algorithm maintains a set of "active" arms and samples them uniformly. At the end of each period (e.g., a day), it uses the always-valid intervals to prune arms that are provably suboptimal. This concentrates traffic on the remaining contenders without the extreme bias of greedy bandit methods.

Datasets

The authors evaluated their approach using:

  • Logged Production Data: A variation of past online experiments used for offline simulations.
  • Live Production Experiments: Dozens of live tests conducted within Amazon's marketing systems, comparing CGSE directly against Thompson Sampling (TS) implementations.

Key Insights and Ideas

  • The Bias of Adaptivity: Standard empirical means are biased estimators when traffic is allocated adaptively. If an algorithm stops showing an arm because it thinks it's bad, it may never collect the data needed to realize the arm has improved.
  • Regret Minimization $\neq$ Good Experimentation: Algorithms like Thompson Sampling are designed to maximize immediate reward (minimize regret). This often happens at the expense of statistical power, making them poor tools for identifying the best treatment for future use.
  • Stable Gaps in Unstable Environments: While absolute performance (e.g., click-through rate) varies wildly day-to-day, the gap between treatments is often relatively stable. CGSE exploits this stability to make robust eliminations.

Key Results

  • Catastrophic Failure of Thompson Sampling: In live experiments, Thompson Sampling sometimes shifted nearly 100% of traffic to the worst performing arm due to non-stationary bias (see Figure 4).
  • Faster Identification: In offline simulations, CGSE identified the optimal arm significantly faster than uniform sampling (A/B testing) and Top-Two Thompson Sampling, while maintaining lower regret than uniform sampling (see Figure 3).
  • Production Success: In live tests, CGSE successfully eliminated suboptimal arms early, allowing for higher traffic allocation to top performers and faster experiment termination with statistically significant results.
Figure 3: Offline results showing CGSE (green) identifies the optimal arm faster than baselines while maintaining low regret.

Limitations and Future Work

  • Assumption of a Single Best Arm: The theoretical guarantees for CGSE rely on the existence of a single counterfactual optimal arm that remains the best over the experiment's duration.
  • Aggressive Elimination: While the authors argue CGSE is robust, an aggressive elimination strategy could still mistakenly prune an arm that would have performed better in a future, drastically different environment.
  • Future Directions: The authors suggest extending this framework to more complex settings, such as linear bandits or experiments with heteroskedastic variance.

Summary updated

BibTeX
@inproceedings{fiez2023best,
  author = {Tanner Fiez and Houssam Nassif and Yu-Cheng Chen and Sergio Gamez and Lalit Jain},
  title = {{Best of Three Worlds: Adaptive Experimentation for Digital Marketing in Practice}},
  booktitle = {TheWebConf24},
  year = {2023},
  url = {https://openreview.net/forum?id=mPMpyPs59D},
}
Figure