Abstract
The PhD thesis of Maillard (2013) presents a rather obscure algorithm for the $K$-armed bandit problem. This less-known algorithm, which we call Maillard sampling (MS), computes the probability of choosing each arm in a closed form, which is not true for Thompson sampling, a widely-adopted bandit algorithm in the industry. This means that the bandit-logged data from running MS can be readily used for counterfactual evaluation, unlike Thompson sampling. Motivated by such merit, we revisit MS and perform an improved analysis to show that it achieves both the asymptotical optimality and $\sqrt{KT\log{T}}$ minimax regret bound where $T$ is the time horizon, which matches the known bounds for asymptotically optimal UCB. We then propose a variant of MS called MS$^+$ that improves its minimax bound to $\sqrt{KT\log{K}}$. MS$^+$ can also be tuned to be aggressive (i.e., less exploration) without losing the asymptotic optimality, a unique feature unavailable from existing bandit algorithms. Our numerical evaluation shows the effectiveness of MS$^+$.
Introduction
In multi-armed bandit problems, balancing exploration (trying new actions) and exploitation (choosing the best-known action) is a fundamental challenge. While Upper Confidence Bound (UCB) and Thompson Sampling (TS) are industry standards, they possess distinct drawbacks. Thompson Sampling often excels in practice but lacks a closed-form expression for action probabilities, complicating off-policy evaluation from logged data. Conversely, UCB provides deterministic choices that can be too rigid for certain counterfactual analyses.
This paper breathes new life into "Maillard Sampling" (MS), an algorithm from a 2013 PhD thesis by Odalric-Ambrym Maillard. MS serves as a mathematically "corrected" version of Boltzmann exploration. It offers the best of both worlds: the practical performance of randomized algorithms like TS and the theoretical rigor of UCB, all while providing a closed-form expression for arm selection probabilities.
Methodology
The authors analyze the original Maillard Sampling (MS) and introduce an enhanced version, MS+.
Maillard Sampling (MS)
Unlike standard Boltzmann exploration which uses linear empirical means, MS selects arms based on the square of the "empirical gap"—the difference between an arm's performance and the current best arm—scaled by an arm-specific step size determined by its pull count. This modification ensures the algorithm is theoretically sound while remaining easy to calculate.
MS+ and the Booster Parameter
MS+ modifies the sampling rule to "inflate" the probability of selecting the optimal-looking arm. This adjustment improves the theoretical minimax regret bound from $O(\sqrt{KT \log T})$ to $O(\sqrt{KT \log K})$.
A key innovation in MS+ is the booster parameter $B$. This parameter allows practitioners to tune the algorithm for more aggressive exploitation. Unlike UCB or TS, where aggressive tuning can lead to catastrophic failure (linear regret), MS+ is proven to maintain asymptotic optimality even with high $B$ values. This provides a safety net for practitioners who want to minimize exploration costs without risking long-term performance.
Experimental Evaluation
The algorithms were evaluated using synthetic bandit problems with Gaussian and Bernoulli rewards across varying numbers of arms ($K \in \{2, 10, 100\}$).
Key Results
Empirical results demonstrate that MS+ (specifically with $B=8$ or $16$) performs on par with or better than established benchmarks like Thompson Sampling and UCB variants. Notably, MS+ remains highly competitive in Bernoulli environments, despite its underlying sub-Gaussian assumptions, showing robustness across different reward distributions.
Discussion and Conclusion
Maillard Sampling effectively "fixes" Boltzmann exploration, providing a theoretically sound alternative to UCB with the added benefit of closed-form sampling probabilities. This makes it exceptionally well-suited for applications requiring Inverse Propensity Scoring (IPS) for off-policy evaluation, as it avoids the computational expense of simulating Thompson Sampling thousands of times.
While MS+ shows excellent average performance, it can exhibit higher variance than UCB when the booster parameter is set very high. Future work includes extending this framework to linear bandits and exponential family rewards, as well as investigating its performance in settings with delayed rewards.
Summary updated