MOTS: Minimax Optimal Thompson Sampling

Tianyuan Jin, Pan Xu, Jieming Shi, Xiaokui Xiao, Quanquan Gu

Introduction

For decades, Thompson Sampling (TS) has been a favorite among practitioners for its simplicity and empirical power in solving multi-armed bandit (MAB) problems. However, a theoretical gap has long remained: could a TS-style algorithm ever be "minimax optimal," matching the best possible theoretical lower bound? This paper introduces MOTS (Minimax Optimal Thompson Sampling), which uses adaptive clipping and variance inflation to finally achieve the optimal $O(\sqrt{KT})$ regret bound, closing a long-standing open problem in the field.

The Theoretical Gap in Multi-Armed Bandits

The Multi-Armed Bandit problem is the classic framework for decision-making under uncertainty. An agent is faced with $K$ "arms" (choices), each with an unknown reward distribution. The goal is to maximize cumulative rewards over $T$ steps, which is equivalent to minimizing regret—the difference between the earned reward and the theoretical maximum from always pulling the best arm.

Algorithm performance is typically measured in two ways:

  1. Asymptotic Optimality: Performance as $T \to \infty$ for a specific set of arms.
  2. Minimax Optimality: The "worst-case" performance across all possible bandit environments for a fixed $T$. The theoretical lower bound here is $\Omega(\sqrt{KT})$.

While Upper Confidence Bound (UCB) algorithms like MOSS had already achieved minimax optimality, Thompson Sampling—which samples from a posterior distribution to make decisions—always seemed to carry an extra logarithmic factor in its theoretical regret (e.g., $O(\sqrt{KT \log K})$). The core question addressed by this research is whether Thompson Sampling can be modified to be truly minimax optimal without losing its practical edge.

The MOTS Approach

The authors propose MOTS, a variant of Thompson Sampling that introduces two clever modifications to the standard Gaussian sampling process to balance exploration and exploitation safely:

  1. Adaptive Clipping: The primary reason standard TS fails the minimax test is that it occasionally overestimates a bad arm by a large margin. By the time the algorithm realizes the arm is bad, it has already accumulated too much regret. MOTS mitigates this by "clipping" the sample. It calculates a threshold $\tau_i(t)$ based on the arm's history and the total time horizon. If the random sample exceeds this threshold, it is capped, providing a "safety ceiling" against over-optimism.
  2. Variance Inflation: Clipping samples introduces a new risk: never picking the best arm if its current estimate is artificially low. To counter this, MOTS samples from a Gaussian with a variance inflated by a factor of $1/\rho$ (where $\rho \in (1/2, 1)$) before clipping. This ensures there is always enough "spread" in the samples to give the optimal arm a chance to be selected.

A major theoretical insight of the paper is that previous lower bounds established for Thompson Sampling were specific to Gaussian priors. By moving to clipped distributions, these bounds can be bypassed. Building on this, the authors also introduce MOTS-J, a variant using a clipped Rayleigh distribution instead of a Gaussian.

Experimental Setup

As a theoretical machine learning paper, the authors evaluate their algorithms using synthetic bandit simulations to rigorously test edge cases. They evaluated three specific settings:

  • Setting 1: $K=50$ arms, where one arm is slightly better than the other 49 (which all share the same mean).
  • Setting 2: $K=100$ arms, similar to Setting 1 but with more suboptimal arms to test scaling.
  • Setting 3: $K=50$ arms with a "diverse" set of mean rewards, creating a more complex and realistic environment.

Key Results

  • Theoretical Proof: The authors successfully prove that MOTS achieves a regret of $O(\sqrt{KT})$, making it the first TS-type algorithm to reach minimax optimality.
  • Simultaneous Optimality: MOTS-J is shown to be both minimax optimal and asymptotically optimal, matching the best possible performance in both the short and long term for Gaussian rewards.
  • Empirical Superiority: In simulations, MOTS and MOTS-J consistently outperformed standard TS, UCB, and MOSS. For example, in a 50-arm setting over $10^7$ steps, MOTS-J achieved a regret of ~9,245, while standard TS trailed at ~14,058 and UCB at ~37,781.

Limitations and Future Work

While MOTS represents a significant theoretical leap, it comes with a few limitations:

  • Fixed Parameters: The basic MOTS algorithm requires a fixed parameter $\rho$ and knowledge of the horizon $T$, though the authors suggest "anytime" versions are possible.
  • SubGaussian vs. Gaussian: While MOTS works for general 1-subGaussian rewards, the "perfect" simultaneous optimality of MOTS-J was specifically proven for Gaussian reward distributions.
  • Open Questions: In experiments, the basic MOTS (Gaussian) performed just as well as MOTS-J. The authors leave it as an open question to prove whether the Gaussian version can also theoretically achieve simultaneous asymptotic and minimax optimality.

Summary updated

BibTeX
@inproceedings{jin2021mots,
  author = {Tianyuan Jin and Pan Xu and Jieming Shi and Xiaokui Xiao and Quanquan Gu},
  title = {{MOTS: Minimax Optimal Thompson Sampling}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=H6-aIuR8TPY},
}
Figure