Asymptotically Optimal and Computationally Efficient Average Treatment Effect Estimation in A/B testing

Vikas Deep, Achal Bassamboo, Sandeep Kumar JunejaICML 2024

Introduction

In fields ranging from clinical trials to web optimization, A/B testing is the gold standard for measuring the difference in performance between two variants, known as the Average Treatment Effect (ATE). Traditionally, these tests use a fixed 50/50 randomized assignment. However, this uniform allocation is often inefficient, particularly when one treatment exhibits much higher variance than the other.

This paper introduces a new framework for sequential A/B testing designed to minimize the number of participants needed to estimate the ATE with a pre-specified precision and confidence. The authors tackle the "sequential" version of this problem: as individuals arrive one by one, the experimenter must dynamically decide which treatment to assign to reach a target confidence interval (CI) width $\epsilon$ with an error probability $\delta$ as quickly as possible. By moving beyond standard 50/50 assignment to an adaptive allocation rule, researchers can achieve up to a 50% reduction in sample size while maintaining "anytime-valid" confidence intervals.

Methodology

The researchers approach the problem of minimizing expected sample size in three stages:

  1. Establishing a Lower Bound: Using information-theoretic tools, they prove the theoretical minimum number of samples required for any adaptive policy to meet the $(\epsilon, \delta)$ requirements. This involves solving a complex, non-convex max-min optimization problem.
  2. The "Plug-in" Policy ($\mathcal{P}_1$): They develop an adaptive policy that estimates the distribution parameters on the fly and "plugs" them into the optimization problem to decide the next assignment. While mathematically optimal as the error probability $\delta \to 0$, it is computationally expensive because it requires solving a hard optimization problem at every single step.
  3. The Efficient Policy ($\mathcal{P}_2$): The authors discover a key insight: as the desired interval width $\epsilon$ becomes small, the optimal allocation rule simplifies significantly. It converges to Neyman’s allocation rule, where the fraction of samples assigned to a group is proportional to its standard deviation. $\mathcal{P}_2$ uses this insight to assign treatments by simply tracking the running standard deviations, making it much faster than $\mathcal{P}_1$ while remaining theoretically optimal.

Crucially, both policies provide anytime-valid confidence sequences. This allows for "continuous monitoring" (or "peeking"), where an experimenter can stop the test early if the results are already clear, without inflating the false positive rate.

Key Insights and Ideas

  • Neyman's Rule is the Limit: The most surprising finding is that even though the goal is to minimize the total sample size (a stopping time problem), the optimal strategy for small intervals is the same as the strategy for minimizing variance in a fixed-length test.
  • Insensitivity to Precision: The optimal assignment of treatments is remarkably "insensitive" to the exact value of the target width $\epsilon$. This justifies using the simpler $\mathcal{P}_2$ policy even when $\epsilon$ isn't extremely small.
Optimal treatment assignment fraction vs. CI width
  • The Cost of Uniformity: Standard 50/50 assignment is only optimal when the two treatments have identical variances. If one group is much noisier than the other, uniform assignment wastes a significant number of samples.

Key Results

The paper evaluates the proposed policies using numerical simulations on synthetic datasets, including Bernoulli (binary outcomes) and Exponential (continuous outcomes) distributions.

  • Sample Size Reduction: In simulations with Exponential distributions (means of 10 vs 0.1), the $\mathcal{P}_2$ policy reduced the required sample size by approximately 50% compared to standard randomized controlled trials (RCT).
  • Computational Efficiency: $\mathcal{P}_2$ performed nearly identically to the complex $\mathcal{P}_1$ policy in terms of sample size but with a fraction of the computational overhead.
  • Superiority over Benchmarks: The authors compared their approach to other recent adaptive methods (like Clip-OGD). Their policy required significantly fewer samples (e.g., 2,672 vs 4,034 in one Bernoulli trial) because it specifically optimizes for the ATE confidence interval rather than general variance reduction.

Limitations and Future Work

While highly effective, the framework has a few limitations. The current proof of optimality focuses on Single-Parameter Exponential Families (SPEF) or distributions with bounded support, which doesn't cover all possible real-world data types. Furthermore, the proof of optimality for $\mathcal{P}_1$ relies on a technical assumption of "joint strict quasi-concavity" of the objective function; while shown to hold for Gaussian data, a universal analytical proof remains open.

Finally, the model assumes all arriving individuals are identical. In many online platforms, users have "context" (features like location or device) that could be used to further optimize the test. The authors highlight Contextual A/B testing as a primary direction for future research.

Summary updated

BibTeX
@inproceedings{deep2024asymptotically,
  author = {VIKAS DEEP and Achal Bassamboo and Sandeep Kumar Juneja},
  title = {{Asymptotically Optimal and Computationally Efficient Average Treatment Effect Estimation in A/B testing}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=eqIGoEoI10},
}
Figure