Overview
This paper introduces the first formal framework for replicable policies in stochastic bandits. The authors prove that it is possible to design algorithms that pull the exact same sequence of arms across different executions (given a shared random seed) while still achieving near-optimal regret bounds. This work effectively bridges the gap between rigorous reproducibility and efficient exploration in interactive machine learning.
The Reproducibility Challenge in Bandits
The "reproducibility crisis" is a well-known challenge in science and machine learning, where researchers often fail to replicate results even when using identical code. In the world of Multi-Armed Bandits (MAB)—a framework for decision-making under uncertainty—this problem is baked into the mathematics.
Standard algorithms rely heavily on randomness to balance "exploration" (trying new actions) and "exploitation" (sticking with known, high-reward actions). Because environmental rewards are stochastic, two different runs of the exact same algorithm will likely observe slightly different data. This divergence causes the algorithms to make different choices, ultimately leading to entirely different sequences of actions. Until now, it was unclear if a bandit algorithm could be forced to be "replicable" (producing the identical action sequence across independent runs) without severely degrading its performance.
Defining and Achieving Replicability
The authors define a $\rho$-replicable algorithm as one that, when provided the same internal random seed but exposed to different independent reward realizations, pulls the exact same sequence of arms with a probability of at least $1 - \rho$.
To achieve this stability, the researchers move away from traditional round-by-round decision-making and adopt a batched approach:
- Batched Elimination: Instead of updating the policy every single round, the algorithm divides the time horizon into $B = \log(T)$ batches. It pulls arms in bulk and only makes "elimination" decisions at the end of a batch.
- Replicable Mean Estimation: The authors adapt techniques from recent "offline" replicable learning research to estimate the mean reward of arms. By requiring a specific number of samples, they ensure the estimate is robust enough that two independent runs will likely reach the exact same conclusion about which arms to keep.
- Random Thresholding: In their optimized approach (Algorithm 2), they introduce a random threshold for arm elimination. By picking a threshold uniformly at random from a small interval, they ensure that even if the empirical means in two runs differ slightly, the probability of them falling on opposite sides of the threshold is minimized.
The paper successfully extends these concepts from simple Multi-Armed Bandits to Linear Bandits, utilizing G-optimal experiment design to handle high-dimensional action spaces.
Key Insights
- Batching is the Key to Synchronization: The fewer decisions an algorithm makes, the fewer opportunities there are for two runs to diverge. By batching, the authors reduce the "replicability tax" from being dependent on the total time $T$ to being dependent on $\log(T)$.
- Randomness for Stability: Paradoxically, adding a specific type of shared randomness (the random threshold) makes the algorithm more stable across runs. It creates a "buffer zone" that prevents small noise in reward realizations from flipping a critical decision.
- Near-Optimal Regret: The most surprising finding is that replicability is "almost free" in terms of the time horizon $T$. The regret (the difference in payoff between the algorithm and the perfect strategy) scales with $T$ in the same way as standard non-replicable algorithms, incurring only a constant overhead related to the number of arms $K$ and the replicability parameter $\rho$.
Key Results
The theoretical contributions of the paper are highlighted by the regret bounds achieved across different settings.
As detailed in the summary table:
- Stochastic MAB Regret: The optimized proposed algorithm (Algorithm 2) achieves a regret of $\tilde{O}\left(\frac{K^2 \log(T) H_\Delta}{\rho^2}\right)$. This matches the optimal dependence on $T$ found in standard algorithms like UCB.
- Linear Bandits: For finite action spaces (Algorithm 3), they achieve $\tilde{O}\left(\frac{K^2 \sqrt{dT}}{\rho^2}\right)$ regret. They also provide bounds for infinite action spaces (Algorithm 4).
- Empirical Validation: In tests with $T=45,000$ rounds using Bernoulli Bandits ($K=6$ arms), their replicable algorithm matched action sequences perfectly in 10 out of 10 test pairs. In contrast, the standard UCB algorithm failed to replicate the sequence in more than half of the rounds. The "cost" of this replicability was a roughly 2.5x increase in cumulative regret—a highly manageable trade-off for applications requiring strict scientific reproducibility.
Limitations and Future Work
While groundbreaking, the framework has areas for future improvement:
- Dependence on $K$: The current regret bounds scale with $K^2$ (the square of the number of arms). In settings with a massive number of arms, this overhead might become prohibitive.
- Computational Complexity: For linear bandits with infinite action spaces, the current implementation requires solving complex optimization problems (like finding minimum volume enclosing ellipsoids), which can be computationally expensive in high dimensions.
- Beyond Bandits: The authors suggest that the next frontier is applying these replicability constraints to more complex Reinforcement Learning (RL) scenarios, where the state of the environment dynamically changes based on the agent's actions.
Reference: Esfandiari, H., Kalavasis, A., Karbasi, A., Krause, A., Mirrokni, V., & Velegkas, G. (2023). Replicable Bandits. Published as a conference paper at ICLR 2023.
Summary updated