An optimal algorithm for the Thresholding Bandit Problem

Andrea Locatelli, Maurilio Gutzeit, Alexandra CarpentierICML 2016

TL;DR

This paper introduces APT (Anytime Parameter-free Thresholding), the first optimal algorithm for the Thresholding Bandit Problem (TBP) in a fixed-budget setting. Unlike previous approaches that required prior knowledge of the problem's complexity or the total time horizon, APT is entirely parameter-free and achieves matching upper and lower theoretical bounds, closing a long-standing gap in pure exploration bandit research.

The "Exam" vs. The "Contest"

In the world of Multi-Armed Bandits (MAB), most research focuses on the "contest": finding the single best arm or the top $M$ arms. This paper shifts the focus to the "exam": the Thresholding Bandit Problem (TBP).

In TBP, a learner is presented with $K$ arms, each with an unknown mean $\mu_k$. Given a fixed budget of $T$ samples and a threshold $\tau$, the goal is to identify the set of all arms whose means are above $\tau$ (within a precision $\epsilon$).

This formulation is critical for real-world applications where we don't care who is "the best," but rather who is "good enough." Examples include:

  • Industrial Quality Control: Keeping machines active only if their productivity exceeds operating costs.
  • Crowdsourcing: Hiring workers whose accuracy stays above a certain minimum.
  • Anomaly Detection: Identifying data sources that produce "anomalous" signals more frequently than a tolerated threshold.
Prior state-of-the-art bounds showing the missing lower bound for TBP in the fixed-budget (FB) setting.

Prior to this paper, there was a significant "knowledge gap" in the fixed-budget setting. Existing algorithms either weren't optimal or required the user to know the problem's complexity ($H$) in advance—a value that depends on the very means the learner is trying to discover.

The APT Algorithm

The authors propose a new algorithm called APT (Anytime Parameter-free Thresholding) to solve this problem.

The Heuristic

APT is elegantly simple. At each time step $t$, it calculates an empirical estimate of the "gap" for each arm: $$\hat{\Delta}_i(t) = |\hat{\mu}_i(t) - \tau| + \epsilon$$

It then pulls the arm $I_t$ that minimizes the following index: $$B_i(t+1) = \sqrt{T_i(t)} \hat{\Delta}_i(t)$$ where $T_i(t)$ is the number of times arm $i$ has been pulled.

Why it Works

The intuition is to balance exploration. By pulling the arm that minimizes this index, the algorithm naturally spends more time on "difficult" arms (those whose means are close to the threshold) and ensures that the confidence intervals for all arms shrink at a rate proportional to their distance from the threshold.

Key Innovations

  1. Parameter-Free: It doesn't need to know the budget $T$, the sub-Gaussian constant $R$, or the complexity $H$.
  2. Anytime: You can stop the algorithm at any point, and it will provide the best possible estimate for the samples collected so far.
  3. Theoretical Optimality: The authors derive a new minimax lower bound for the TBP and prove that APT’s upper bound matches it (up to logarithmic factors).

Empirical Superiority

As a theoretical machine learning paper, the authors evaluate APT using synthetic simulations. They used Bernoulli distributions across three experimental setups to test different "difficulty" profiles:

  1. 3 Groups Setting: Arms are divided into easy-to-classify and hard-to-classify groups.
  2. Arithmetic Progression: Arm means are spaced linearly away from the threshold.
  3. Geometric Progression: Arm means are spaced exponentially away from the threshold.
Empirical performance of APT compared to baselines across three Bernoulli arm configurations.

In simulations, APT consistently outperformed the CSAR algorithm. It also matched or beat the UCBE algorithm, even though UCBE was given the "unfair" advantage of knowing the problem complexity $H$ for tuning. APT proved robust across different arm mean distributions, whereas uniform allocation strategies failed significantly as the problem became more "unbalanced."

Key Insights and Theoretical Results

  • Closing the Gap: For the fixed-budget setting, previous state-of-the-art algorithms had a gap in their error bounds. APT eliminates this gap, proving that thresholding is fundamentally "easier" to optimize than general combinatorial bandits. The authors prove that the probability of error for APT scales as $\exp(-T / (64R^2H))$, matching their derived lower bound of $\exp(-3T/H)$.
  • The $\mu^*$ Surprise: A striking insight is that if the mean of the best arm ($\mu^*$) is known, APT can solve two traditionally conflicting problems at once: identifying the best arm and maximizing cumulative reward (minimizing regret). Usually, these require different strategies (exploration vs. exploitation), but knowing the threshold $\tau = \mu^*$ bridges them.
  • Active Level Set Detection: The paper shows TBP is a discrete version of level set detection, making it directly applicable to active binary classification and anomaly detection.

Limitations and Future Work

  • Sub-Gaussian Assumption: The primary analysis assumes arms follow an $R$-sub-Gaussian distribution. While the authors suggest that using robust estimators could extend this to heavy-tailed distributions, they do not provide formal proofs for that setting.
  • Fixed Threshold: The study focuses on a single threshold $\tau$. While they mention it can be relaxed to arm-specific thresholds $\tau_k$, the implications for more complex combinatorial structures remain an open area for exploration.
  • Constant Factors: There is still a small gap in the constant factors (3 vs 64) between the lower and upper bounds, suggesting room for even tighter algorithmic refinement.

Summary updated

BibTeX
@inproceedings{locatelli2016optimal,
  author = {Andrea Locatelli and Maurilio Gutzeit and Alexandra Carpentier},
  title = {{An optimal algorithm for the Thresholding Bandit Problem}},
  booktitle = {International Conference on Machine Learning},
  year = {2016},
}
Figure