Abstract
How can we make use of information parallelism in online decision making problems while efficiently balancing the exploration-exploitation trade-off? In this paper, we introduce a batch Thompson Sampling framework for two canonical online decision making problems, namely, stochastic multi-arm bandit and linear contextual bandit with finitely many arms. Over a time horizon $T$, our batch Thompson Sampling policy achieves the same (asymptotic) regret bound of a fully sequential one while carrying out only $O(\log T)$ batch queries. To achieve this exponential reduction, i.e., reducing the number of interactions from $T$ to $O(\log T)$, our batch policy dynamically determines the duration of each batch in order to balance the exploration-exploitation trade-off. We also demonstrate experimentally that dynamic batch allocation dramatically outperforms natural baselines such as static batch allocations.
Introduction
In the traditional multi-armed bandit (MAB) framework, a learner balances exploration and exploitation through a sequential process: pulling a lever, observing a reward, and updating their policy. However, in real-world applications like clinical trials or digital marketing, this sequentiality is a bottleneck. Waiting for individual feedback before taking the next action is often impractical.
The challenge is that batching usually hurts performance. Large batches risk excessive "regret" if the learner continues to pull suboptimal arms before receiving feedback. This research introduces Batch Thompson Sampling (B-TS), a framework that enables parallelized decision-making with near-optimal theoretical guarantees.
Methodology: Dynamic Batching and the Power-of-2 Rule
The core innovation of B-TS is Dynamic Batching. Unlike static batching, which uses fixed intervals (e.g., updating every 100 rounds), B-TS determines batch duration based on information gain.
The algorithm employs a "Power-of-2 Rule": it tracks the number of pulls $k_a$ for each arm $a$. A batch continues as long as $k_a < 2^{l_a}$ for all arms. The moment any arm hits a new power of two in its pull count, the batch ends, rewards are collected, and posterior distributions are updated. This strategy ensures the learner updates more frequently during early exploration and less frequently as confidence in the optimal arm grows.
Empirical Results and Scaling
The researchers evaluated B-TS using synthetic environments and the MovieLens recommendation dataset. The results confirmed that dynamic batching provides an exponential reduction in communication overhead without sacrificing performance.
As illustrated in Figure 1, the number of interactions (queries) scales logarithmically with the time horizon $T$ and linearly with the number of arms $N$. For a horizon of $T=10,000$, a sequential algorithm requires 10,000 interactions, whereas B-TS requires only approximately 50.
Key Insights
- Matching Regret: Theoretically and empirically, B-TS achieves the same asymptotic regret as the fully sequential version.
- Dynamic vs. Static: Dynamic batching naturally adapts, exploring rapidly early on and exploiting with massive batches once confident. Experiments showed that even when a static algorithm was allowed to update four times as often as B-TS, the dynamic approach still achieved lower regret due to more intelligent update timing.
- Versatility: The framework successfully extends to Minimax Optimal Thompson Sampling (MOTS) and Linear Contextual Bandits (B-TS-C).
Limitations and Future Work
While B-TS offers significant efficiency gains, the number of batches still scales linearly with the number of arms $N$, which may be a hurdle in systems with millions of actions. Additionally, the current theoretical bounds rely on specific reward distributions (e.g., sub-Gaussian). Future work could explore extending these tight bounds to heavy-tailed rewards or non-stationary environments where the optimal arm changes over time.
Summary updated