A framework for Multi-A(rmed)/B(andit) testing with online FDR control

Fanny Yang, Aaditya Ramdas, Kevin Jamieson, Martin J. Wainwright

This paper, titled "A framework for Multi-A(rmed)/B(andit) testing with online FDR control," presents a powerful synthesis of two major statistical fields: adaptive sampling (Multi-Armed Bandits) and multiple hypothesis testing (False Discovery Rate control). It offers a robust solution for organizations that need to run a continuous stream of experiments—like tech companies testing website features or pharmaceutical firms screening drug candidates—without falling into the traps of "p-hacking" or inefficient resource allocation.

TL;DR

The authors propose a "doubly-sequential" framework that replaces traditional A/B tests with Multi-Armed Bandit (MAB) algorithms while maintaining strict False Discovery Rate (FDR) control across a sequence of experiments. By using "always-valid" p-values, the framework allows for continuous monitoring and early stopping, significantly reducing sample complexity while ensuring that the rate of false discoveries remains below a user-defined threshold.

What Problem Does This Paper Address?

Traditional A/B/n testing in industry suffers from three main inefficiencies:

  1. Static Allocation: Standard tests split traffic uniformly between a control and several alternatives. This is wasteful; we should intuitively spend less time on variants that are clearly underperforming.
  2. The "Peeking" Problem: Data scientists often want to monitor results in real-time and stop tests early. However, repeatedly checking a p-value until it looks significant (peeking) drastically inflates the Type I error rate.
  3. Multiple Testing: When running hundreds of tests over time, the probability of at least one false discovery approaches 100%. Standard methods to control this (like Bonferroni correction) are often too conservative, killing the "power" to find real improvements.

Methods

The authors introduce a MAB-FDR meta-algorithm that interleaves an online FDR procedure with an adaptive bandit algorithm.

  • Adaptive Sampling: Instead of uniform A/B testing, they use a modified Lower and Upper Confidence Bound (LUCB) algorithm. This focuses samples on the most promising "arms" to identify the best one quickly.
  • Always-Valid P-Values: They derive p-values based on the Law of the Iterated Logarithm (LIL). Unlike standard p-values, these are valid at any stopping time, allowing for "guilt-free" continuous monitoring.
  • Online FDR Control: They wrap the individual experiments in an online procedure called LORD (Level-based Online Rates of Discovery). This algorithm manages an "alpha-wealth" that is spent on new tests and earned back when a discovery is made, ensuring the False Discovery Rate is controlled over the entire lifetime of the system.
Figure 1. Diagram of the MAB-FDR meta algorithm designed to achieve online FDR control along with near-optimal sample complexity. The green arrows symbolize interaction between the MAB and FDR procedures via the FDR test levels αj and rejection indicator variables Rj. Notice that the P j-values are now dependent as each αj depends on R1, . . . , Rj−1. The eyes represent possible continuous monitoring by the scientist.

Datasets

The framework was evaluated using:

  • Synthetic Simulations: Gaussian and Bernoulli trials where the "gaps" between the means of different arms were explicitly controlled to measure power and sample complexity.
  • The New Yorker Cartoon Caption Contest: A real-world dataset where users rate captions as "unfunny," "somewhat funny," or "funny." The authors treated each caption as an arm in a bandit, aiming to find the funniest one while controlling for false discoveries across multiple weekly contests.

Key Insights and Ideas

  • Asymmetric Null Hypotheses: The authors define a practical null hypothesis: "no alternative is at least $\epsilon$ better than the control." This $\epsilon$ "slack" accounts for the fact that implementing a new feature has a cost, so we only care about alternatives that provide a non-negligible improvement.
  • Shaping the P-Value: A major theoretical hurdle was that the p-values in this framework are not independent (since the significance level $\alpha_j$ for a test depends on previous results). The authors prove that the bandit algorithm actually "shapes" the p-value distribution under the null in a way that preserves FDR guarantees.
  • Best of Both Worlds: The framework achieves the sample efficiency of bandits (stopping early when the answer is clear) without sacrificing the rigorous error control required for scientific or business integrity.
Figure 2. (a) The means of arms {1, 2, 3} are within ϵ of the best arm, but only arms {1, 2} are at least ϵ better than the control arm 0. Thus, returning any of arms {3, 4, 5} would result in a false discovery when ϵ > 0. (b) An example of the stopping condition being critically met and returning a non-control arm ht. While LCBht > UCBℓt −ϵ is satisfied with some slack, LCBht > UCB0 + ϵ is just barely satisfied.

Key Results

  • Sample Efficiency: In simulations, MAB-FDR reached high power (discovery rate) with significantly fewer samples than standard A/B testing (AB-FDR). For example, in Gaussian trials, MAB-FDR achieved near-perfect power while AB-FDR was still struggling at the same truncation time.
  • Power Gains: Because MAB-FDR identifies the best arm faster, it can "save" samples and move on to the next experiment, effectively increasing the overall discovery rate of the system.
  • Robust FDR Control: The experiments confirmed that even under "adversarial" conditions where p-values were drawn to be as difficult as possible, the LORD-based wrapper kept the false discovery proportion strictly below the target $\alpha$.

Limitations and Future Work

  • Univariate Rewards: The current framework assumes each arm produces a single scalar reward (e.g., click-through rate). Extending this to multivariate or non-parametric settings is a suggested next step.
  • Contextual Bandits: The paper does not account for "context" (e.g., user demographics). Integrating contextual bandits would allow for personalized A/B testing while maintaining FDR control.
  • Arm Dependence: The model assumes arms are independent. In practice, two website designs might be very similar; leveraging this correlation could further speed up discovery.

Summary updated

BibTeX
@inproceedings{yang2017framework,
  author = {Fanny Yang and Aaditya Ramdas and Kevin Jamieson and Martin J. Wainwright},
  title = {{A framework for Multi-A(rmed)/B(andit) testing with online FDR control}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
}
Figure