NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Best of both worlds: Stochastic & adversarial best-arm identification

Yasin Abbasi-Yadkori, Peter L. Bartlett, Victor Gabillon, Alan Malek, Michal Valko

Abstract

We study bandit best-arm identification with arbitrary and potentially adversarial rewards. A simple random uniform learner obtains the optimal rate of error in the adversarial scenario. However, this type of strategy is suboptimal when the rewards are sampled stochastically. Therefore, we ask: Can we design a learner that performs optimally in both the stochastic and adversarial problems while not being aware of the nature of the rewards? First, we show that designing such a learner is impossible in general. In particular, to be robust to adversarial rewards, we can only guarantee optimal rates of error on a subset of the stochastic problems. We give a lower bound that characterizes the optimal rate in stochastic problems if the strategy is constrained to be robust to adversarial rewards. Finally, we design a simple parameter-free algorithm and show that its probability of error matches (up to log factors) the lower bound in stochastic problems, and it is also robust to adversarial ones.

Introduction

In the Multi-Armed Bandit (MAB) framework, Best-Arm Identification (BAI) is a pure exploration problem where a learner aims to identify the single best arm within a fixed budget of $n$ pulls. Historically, research in this area has been bifurcated into two distinct regimes: the stochastic setting and the adversarial setting.

In the stochastic setting, rewards for each arm are independent and identically distributed (i.i.d.) draws from fixed distributions. Algorithms like Sequential Halving are highly effective here, as they can aggressively eliminate arms that appear suboptimal based on their empirical means. Conversely, in the adversarial setting, rewards are chosen by an opponent who may attempt to mislead the learner. In this scenario, the optimal strategy is surprisingly simple: a Uniform Random sampling of arms. This prevents the adversary from predicting the learner's choices and exploiting them.

The "Best of Both Worlds" (BOB) challenge seeks to bridge this gap. Is it possible to design a single learner that achieves optimal performance in both stochastic and adversarial environments without prior knowledge of which regime it is operating in? Such robustness is vital for real-world applications—such as clinical trials or automated advertising—where data may be generally stable but subject to occasional non-stationary shifts or malicious corruption.

The Price of Robustness: A New Lower Bound

A core contribution of this work is the demonstration of a fundamental impossibility result. The authors prove that any learner designed to be robust against adversarial rewards necessarily sacrifices some performance in specific stochastic settings.

To quantify this, they introduce a new complexity measure, $H_{BOB}$. This measure characterizes the best possible error rate a robust learner can achieve when faced with stochastic rewards. The "Price of Robustness" arises because, to avoid being deceived by an adversary who might provide misleadingly high rewards early on, a learner must continue to explore seemingly suboptimal arms more frequently than a purely stochastic algorithm would. Specifically, if an algorithm is to remain robust to adversaries, it cannot eliminate arms as quickly as Sequential Halving, leading to a higher error rate in certain "difficult" stochastic configurations.

The ProbabilityONE (P1) Algorithm

To address the BOB challenge, the authors propose ProbabilityONE (P1), a simple and parameter-free algorithm. Unlike phase-based elimination algorithms, P1 maintains a continuous ranking of arms and samples them according to a specific probability distribution.

At each round $t$, the algorithm performs the following steps:

  1. Ranking: All $K$ arms are ranked based on their current estimated cumulative rewards.
  2. Sampling: A sampling probability is assigned to the arm with rank $k$. This probability is proportional to $1/(k \cdot \log K)$.
  3. Recommendation: After the budget of $n$ pulls is exhausted, the algorithm recommends the arm with the highest estimated gain.

This ranking-based approach balances exploration and exploitation. By assigning higher probabilities to top-ranked arms, it exploits stochastic patterns. Simultaneously, by ensuring that even the lowest-ranked arms are sampled with a probability no less than roughly $1/(K \log K)$, it maintains the necessary variance control to remain robust against adversarial manipulation.

Empirical Evaluation

The P1 algorithm was evaluated using synthetic Bernoulli bandit problems across eight experimental setups. These setups represent various "gap" structures between the mean rewards of the arms:

  • Flat regimes: Where all suboptimal arms have the same mean.
  • Geometric/Super-linear gaps: Where the performance of arms drops off rapidly.
  • Square-root gaps: A configuration where the trade-off between stochastic optimality and adversarial robustness is particularly pronounced.

The results confirmed the theoretical predictions. In stochastic scenarios, P1 consistently outperformed the uniform strategy. While it was slightly slower to converge than specialized stochastic algorithms like Sequential Halving—as expected due to the $H_{BOB}$ lower bound—it remained highly competitive. Crucially, P1 provided a safety net: in adversarial settings where Sequential Halving would fail entirely, P1 maintained the optimal performance characteristic of a uniform sampler.

Conclusion and Future Directions

This research highlights that robustness in Best-Arm Identification comes at a quantifiable cost. The ProbabilityONE algorithm provides a practical and theoretically grounded solution for practitioners who require performance in "nice" environments without sacrificing reliability in the face of adversarial data.

Future work remains in tightening the logarithmic gaps between the current upper and lower bounds. Additionally, while the current study focuses on the "fixed budget" setting, extending these "Best of Both Worlds" principles to the "fixed confidence" setting—where the goal is to minimize the number of pulls required to reach a target accuracy—presents a significant and promising research path.

Summary updated

BibTeX
@inproceedings{abbasiyadkori2018best,
  author = {Yasin Abbasi-Yadkori and Peter L. Bartlett and Victor Gabillon and Alan Malek and Michal Valko},
  title = {{Best of both worlds: Stochastic \& adversarial best-arm identification}},
  booktitle = {Conference on Learning Theory},
  year = {2018},
  url = {https://openreview.net/forum?id=SAzbtrWxNR},
}
Figure