A General Recipe for the Analysis of Randomized Multi-Armed Bandit Algorithms

Dorian Baudry, Kazuya Suzuki, Junya Honda · OpenReview

Abstract

In the study of multi-armed bandit (MAB) problems, randomized algorithms like Thompson Sampling (TS) have demonstrated exceptional empirical performance. However, providing rigorous regret bounds for these algorithms often requires bespoke mathematical proofs tailored to specific reward distributions. This paper introduces a unified methodology—a "general recipe"—to derive logarithmic regret bounds for randomized bandit algorithms. By establishing sufficient conditions on sampling probabilities and divergence functions, the authors unify the analysis of Minimum Empirical Divergence (MED) and Thompson Sampling. Furthermore, they introduce h-NPTS, a non-parametric algorithm designed for heavy-tailed distributions with bounded moments, offering significant computational advantages over existing methods.

Introduction

The Multi-Armed Bandit problem represents the classic trade-off between exploration (gathering information) and exploitation (acting on current knowledge). While deterministic strategies like Upper Confidence Bound (UCB) are well-understood, randomized strategies are often preferred in practice for their flexibility and performance. Despite this, the theoretical analysis of randomized policies has historically been fragmented. Researchers often have to reconstruct proofs from scratch when moving from simple Bernoulli rewards to more complex distributions, such as those with heavy tails or unknown variances.

Baudry et al. (2024) address this gap by providing a general framework that simplifies the derivation of instance-dependent regret bounds. Their approach not only clarifies the relationship between different randomized strategies but also facilitates the creation of new, efficient algorithms for complex reward models.

The General Recipe: A Unified Framework

The core of the paper is a "recipe" consisting of two primary components that, when satisfied, guarantee a logarithmic regret bound via Theorem 1.

1. Assumption on Sampling Probabilities

The first component concerns the algorithm's design. It requires that the probability of selecting a sub-optimal arm is bounded by an exponential function of the "divergence" between that arm's empirical performance and the performance of the current best arm. This ensures the algorithm does not spend excessive time on clearly inferior choices.

2. Assumption on Divergence Properties

The second component focuses on the family of reward distributions. The chosen divergence function (typically a Kullback-Leibler divergence or a variant) must satisfy four properties, including continuity and specific deviation bounds. This ensures the mathematical tools used to measure "distance" between distributions are compatible with the regret analysis.

Applications and Algorithmic Innovations

To demonstrate the utility of this framework, the authors apply it to several prominent algorithms and introduce new variants.

Unifying MED and Thompson Sampling

The analysis reveals that Minimum Empirical Divergence (MED) and Thompson Sampling are fundamentally linked. TS can be viewed as a randomized approximation of the MED strategy. The authors prove that MED is asymptotically optimal for a wide range of models, including Single Parameter Exponential Families (SPEF) and Gaussian distributions with unknown variances.

$TS^\star$: Improving Efficiency

The authors propose $TS^\star$, a modified version of Thompson Sampling that only performs posterior sampling for arms that appear sub-optimal based on empirical means. This modification simplifies the theoretical analysis and results in a faster implementation, particularly as the time horizon $T$ grows.

h-NPTS: Handling Heavy Tails

A significant contribution is the introduction of h-NPTS (h-moment Non-Parametric Thompson Sampling). Most bandit literature assumes light-tailed (sub-Gaussian) rewards. However, many real-world applications involve heavy-tailed data. h-NPTS is designed for distributions where only a moment condition is known (e.g., the variance is bounded by a constant $B$). By utilizing a "Bayesian Bootstrap" approach with a simple algebraic check instead of expensive optimization, h-NPTS provides a robust solution for non-parametric settings.

Experimental Results

The authors validated their framework through synthetic simulations across various settings:

  • Parametric Models: Bernoulli and Gaussian distributions.
  • Non-Parametric Bounded Models: Beta distributions on $[0, 1]$.
  • Heavy-Tailed Models: Gaussian Mixtures were used to test h-NPTS against robust benchmarks.

Key findings include:

  • Computational Speed: h-NPTS achieved performance comparable to state-of-the-art robust algorithms but was approximately 1000x faster than standard MED implementations.
  • Scalability: $TS^\star$ maintained the same regret performance as standard TS while being up to 7x faster in non-parametric simulations.
  • Optimality: The framework successfully proved the asymptotic optimality of MED across all tested distribution families.

Conclusion

This work provides a powerful abstraction for the bandit community, moving away from bespoke proofs toward a generalized theory of randomized exploration. While the current recipe is limited to randomized algorithms and instance-dependent bounds, it sets the stage for future research into unified proofs that could encompass deterministic algorithms and achieve tighter minimax (worst-case) regret bounds. The introduction of h-NPTS, in particular, offers a practical and computationally efficient tool for practitioners dealing with complex, heavy-tailed reward distributions.

Summary updated

Abstract

In this paper we propose a general methodology to derive regret bounds for randomized multi-armed bandit algorithms. It consists in checking a set of sufficient conditions on the sampling probability of each arm and on the family of distributions to prove a logarithmic regret. As a direct application we revisit two famous bandit algorithms, Minimum Empirical Divergence (MED) and Thompson Sampling (TS), under various models for the distributions including single parameter exponential families, Gaussian distributions, bounded distributions, or distributions satisfying some conditions on their moments. In particular, we prove that MED is asymptotically optimal for all these models, but also provide a simple regret analysis of some TS algorithms for which the optimality is already known. We then further illustrate the interest of our approach, by analyzing a new Non-Parametric TS algorithm (h-NPTS), adapted to some families of unbounded reward distributions with a bounded h-moment. This model can for instance capture some non-parametric families of distributions whose variance is upper bounded by a known constant.
BibTeX
@misc{baudry2023general,
  author = {Dorian Baudry and Kazuya Suzuki and Junya Honda},
  title = {{A General Recipe for the Analysis of Randomized Multi-Armed Bandit Algorithms}},
  year = {2023},
  eprint = {2303.06058},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.06058},
}
Figure