Posterior Tracking for Best-Arm Identification in Bernoulli Bandits

Kaito Ariu, Junpei KomiyamaNeurIPS 2026

TL;DR

When running an A/B test across $K$ binary options to find the single best one as fast as possible, standard optimal algorithms rely on an awkward crutch: manually forcing the system to keep testing terrible-looking options just in case early bad luck made a winner look like a loser. This paper proves you can throw that crutch away. By combining Bayesian posterior sampling with theoretical optimal-allocation math, natural uncertainty alone provides enough exploration to guarantee finding the true winner in the mathematically minimum number of tries.

What Problem Does This Paper Address?

Imagine you have $K$ slot machines (a Bernoulli bandit, where each pull gives a 0 or 1 reward with an unknown probability) and you want to find the single highest-paying machine. Specifically, you are in the fixed-confidence setting: you want to stop testing as soon as possible while guaranteeing your chance of picking a wrong arm is at most $\delta$ (say, 1%).

We have known the theoretical speed limit (expected sample complexity) for this problem since 2016, achieved by an algorithm called Track-and-Stop. Track-and-Stop plugs your current empirical win rates into an optimization problem to find the ideal testing proportions (the oracle allocation). However, if the true best arm gets unlucky early on, its empirical win rate drops, and the algorithm might stop pulling it forever. To prevent this, classical tracking algorithms bolt on an explicit forced exploration rule—essentially a rigid schedule that forces pulls of under-sampled arms.

Meanwhile, Bayesian approaches (like Top-Two Thompson Sampling) explore naturally using randomness, without forced schedules. However, existing exact optimality guarantees for these methods only hold for Gaussian rewards, 2-armed bandits, or require sneaking forced exploration back into the general $K$-arm case. The authors ask: Can posterior-driven randomness alone achieve exact asymptotic optimality in $K$-armed Bernoulli bandits without ongoing forced exploration?

Methods

The authors introduce Posterior Tracking, a remarkably clean marriage of Bayesian sampling and frequentist stopping rules:

  1. Initialization: Pull each of the $K$ arms once. Model each arm's unknown win rate using a standard independent Beta distribution (which updates cleanly with every win or loss).
  2. Posterior-Tracking Sampling (The Novelty): Instead of computing the ideal testing allocation from raw empirical averages (like Track-and-Stop), at each round $t$, you draw a random "fantasy" set of win rates $\theta_t$ from your current Beta posteriors. You compute the exact theoretical oracle allocation $w^\star(\theta_t)$—a probability vector over the arms—for that fantasy world, and randomly pick your next arm according to those probabilities. No forced-exploration thresholds required.
  3. Stopping Rule (Standard): After updating your counts, compute a Generalized Likelihood Ratio (GLR) statistic, which measures how confident you are that the current empirical leader beats all alternatives. When this score crosses a pre-calibrated, time-dependent threshold $\beta(t, \delta)$, stop and declare the leader the winner.

Datasets

Not discussed in the paper. (This is a purely theoretical work proving mathematical guarantees rather than evaluating empirical benchmarks.)

Key Insights and Ideas

  • Posterior spread prevents premature lock-in: Why doesn't the algorithm abandon an unlucky best arm? Because an under-sampled arm has a wide, uncertain Beta posterior. Using a clever "long-gap" proof inspired by Thompson sampling analyses, the authors show that if a subset of arms is ignored for a long block of rounds, their posteriors stay frozen and wide (anti-concentrated), while the frequently pulled arms have posteriors that shrink tightly around their true means. Eventually, a random draw from an ignored arm's wide distribution will spike high enough that the oracle math demands you pull it.
  • Logarithmic exploration happens organically: Because of this natural "escape" mechanism, every arm is guaranteed to be sampled at least logarithmically often ($\Omega(\log t)$) with high probability (specifically, with summable polynomial tail probabilities).
  • Fast stabilization: Once every arm gets at least logarithmic attention, the posterior draws concentrate around the true win rates. Consequently, there is a finite (integrable) random "stabilization time" after which the true best arm permanently takes the empirical lead, and the GLR confidence score grows linearly at the exact information-theoretic maximum speed.

Key Results

  • $\delta$-Correctness (Theorem 1): For any confidence parameter $\delta \in (0, 1)$, the algorithm stops in finite time and the probability of recommending the wrong arm is strictly $\le \delta$. (This holds non-asymptotically).
  • Asymptotic Optimality (Theorem 2): As the allowed error $\delta \to 0$, the expected stopping time $\mathbb{E}[\tau_\delta]$ satisfies $\limsup_{\delta \to 0} \frac{\mathbb{E}[\tau_\delta]}{\log(1/\delta)} \le T^\star(\mu)$, where $T^\star(\mu)$ is the exact instance-dependent information-theoretic lower bound established by Garivier and Kaufmann (2016). It matches the ultimate speed limit for $K$ Bernoulli arms without forced exploration.

Limitations and Future Work

  • Reward and Task Scope: The proofs rely heavily on mathematical properties specific to Beta-Binomial distributions and Bernoulli KL divergence. Extending these guarantees to broader one-parameter exponential families (like Poisson or exponential rewards) or other goals (like finding the top-$m$ arms) remains open.
  • Asymptotic Sample Complexity: While the error guarantee ($\le \delta$) holds for any $\delta$, the sample complexity optimality is asymptotic ($\delta \to 0$) and leaves many instance-dependent constants implicit rather than providing finite-time bounds.
  • Exact Oracle Math: The theory assumes you compute the exact optimal allocation $w^\star(\theta_t)$ at every single step, leaving open how numerical approximation tolerances might affect the guarantees in practice.

Summary updated

Abstract

We study fixed-confidence best-arm identification in Bernoulli bandits. A learner sequentially samples from $K$ arms and aims to identify the unique best arm while keeping the error probability at most $\delta$. We ask whether the classical lower bound on expected sample complexity can be matched asymptotically without ongoing forced exploration. We propose a posterior-tracking algorithm that first samples each arm once, then repeatedly draws a bandit instance from the posterior, computes the oracle allocation for that instance, and randomly selects the next arm according to that allocation. Stopping is based on a Bernoulli generalized likelihood ratio test. Since the algorithm has no explicit forced-exploration mechanism after initialization, the main technical challenge is to show that posterior randomness alone sustains sufficient exploration. We prove that, with summable tail probabilities, every arm is sampled at least logarithmically often. This yields an integrable stabilization time after which the true best arm remains the empirical leader and the corresponding generalized likelihood ratio statistic grows linearly at the information-theoretic lower-bound rate. Consequently, the proposed procedure identifies the best arm with error probability at most $\delta$ and achieves asymptotically optimal expected sample complexity.
BibTeX
@inproceedings{ariu2026posterior,
  author = {Kaito Ariu and Junpei Komiyama},
  title = {{Posterior Tracking for Best-Arm Identification in Bernoulli Bandits}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=RiUqt2Ryf5},
}
Figure