On Universally Optimal Algorithms for A/B Testing

Po-An Wang, Kaito Ariu, Alexandre Proutière · DOI

Abstract

We study the problem of best-arm identification with fixed budget in stochastic multi-armed bandits with Bernoulli rewards. For the problem with two arms, also known as the A/B testing problem, we prove that there is no algorithm that (i) performs as well as the algorithm sampling each arm equally (referred to as the uniform sampling algorithm) in all instances, and that (ii) strictly outperforms uniform sampling on at least one instance. In short, there is no algorithm better than the uniform sampling algorithm. To establish this result, we first introduce the natural class of consistent and stable algorithms, and show that any algorithm that performs as well as the uniform sampling algorithm in all instances belongs to this class. The proof then proceeds by deriving a lower bound on the error rate satisfied by any consistent and stable algorithm, and by showing that the uniform sampling algorithm matches this lower bound. Our results provide a solution to two open problems. For the general problem with more than two arms, we characterize the asymptotic error rate of the Successive Rejects (SR) algorithm and show that, surprisingly, the uniform sampling algorithm outperforms the SR algorithm in some instances.

Introduction

In the world of A/B testing, the goal is often to identify the best option under a strict resource constraint. This is formally known as Fixed-Budget Best-Arm Identification (FB-BAI). Imagine running an experiment with exactly $T$ trials to determine which of two website layouts has a higher conversion rate. While adaptive algorithms—those that adjust their sampling strategy based on observed results—are highly effective in regret minimization or fixed-confidence settings, their performance in the fixed-budget setting has been a long-standing mystery.

This research addresses two fundamental questions: Is there an algorithm that is always as good as uniform sampling but sometimes better? And is there a fundamental lower bound for the error rate that all reasonable algorithms must obey?

Theoretical Framework: Stability and Change-of-Measure

The authors establish their results by first defining a class of consistent and stable algorithms. A stable algorithm is one that behaves symmetrically and continuously; for instance, if two arms have nearly identical means, the algorithm should split its budget nearly evenly. The paper proves that any algorithm aiming to compete with uniform sampling across all possible bandit instances must belong to this class.

Analysis of the parameter space $(\mu_1, \mu_2)$ and the regions defining algorithm stability and optimality.

Using information-theoretic tools, specifically change-of-measure arguments and KL-divergence, the authors derive a lower bound on the asymptotic error rate for any stable algorithm. This theoretical foundation allows for a rigorous comparison between adaptive strategies and the simple 50/50 split.

The Optimality of Uniform Sampling

The core finding of the paper is a "no free lunch" theorem for A/B testing ($K=2$). For Bernoulli rewards, uniform sampling is universally optimal. If an algorithm is designed to outperform uniform sampling on one specific instance (by allocating more budget to a "likely" winner), it must necessarily perform worse on another instance.

Theoretical error rate functions $g(x, \mu)$ for symmetric bandit instances. The plots demonstrate how optimizing for one set of means leads to performance degradation in others, supporting the universal optimality of uniform sampling.

This result suggests that for fixed-budget A/B testing, the "hope" of finding a clever adaptive strategy that beats static uniform sampling is a mathematical impossibility. Stability is a natural requirement; without it, an algorithm essentially over-fits to early noise, leading to catastrophic failures in other scenarios.

Beyond Two Arms: Successive Rejects vs. Uniform Sampling

The study extends to the general $K$-armed case, providing the first exact characterization of the error rate for the popular Successive Rejects (SR) algorithm. SR is a standard benchmark that discards arms in fixed phases. Surprisingly, the authors show that uniform sampling can actually outperform SR in certain instances.

For example, in a three-armed instance with means $(0.5, 0.3, 0.3)$, uniform sampling achieves a lower error rate than SR. This occurs because SR's rigid phase-based commitment can be less efficient when the gap between the best and second-best arm is small relative to other arms.

Conclusion and Future Directions

While this work provides a definitive answer for the two-arm Bernoulli case, several avenues for future research remain:

  • Distributional Generalization: The current proofs focus on Bernoulli rewards. Extending these results to general one-parameter exponential families (like Gaussian distributions) is a natural next step.
  • The $K > 2$ Landscape: While uniform sampling can beat SR, it hasn't been proven to be universally optimal for all $K$-armed instances.
  • Unknown Variance: In Gaussian settings with unknown variance, the problem complexity increases significantly, requiring new analytical techniques.

This research underscores a powerful lesson in experimental design: sometimes, the simplest approach—splitting your budget equally—is not just a baseline, but the theoretical peak of performance.

Summary updated

BibTeX
@inproceedings{wang2024universally,
  author = {Po-An Wang and Kaito Ariu and Alexandre Proutière},
  title = {{On Universally Optimal Algorithms for A/B Testing}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=ft5jK9uPgC},
}
Figure