Abstract
This paper introduces a novel algorithm, "Switch Tsallis, Switch!", designed to achieve state-of-the-art "best-of-both-worlds" (BOBW) performance for multi-armed bandits (MAB) subject to switching costs. The algorithm matches the minimax optimal $O(T^{2/3})$ regret in adversarial environments while significantly tightening the regret bound in stochastic environments to $O(1/\Delta^2)$. This result proves that the previously observed performance gap in stochastic settings—specifically the $O(T^{1/3}/\Delta)$ bound found in prior literature—was an algorithmic limitation rather than a fundamental theoretical barrier.
Introduction
In the classic Multi-Armed Bandit (MAB) problem, a learner seeks to minimize regret by repeatedly selecting one of $K$ arms and observing a loss. Research typically focuses on two distinct regimes: the adversarial regime, where losses are chosen by a malicious opponent, and the stochastic regime, where losses are drawn from fixed probability distributions with a gap $\Delta$ between the optimal and sub-optimal arms.
"Best-of-both-worlds" (BOBW) algorithms aim to perform optimally in both scenarios without prior knowledge of the environment. However, the introduction of switching costs—a penalty incurred every time the learner changes arms—adds significant complexity. In adversarial settings, switching costs increase the best possible regret from $O(\sqrt{T})$ to $O(T^{2/3})$. Previous BOBW research (Rouyer et al., 2021) achieved this adversarial bound but left a gap in the stochastic case, where regret grew with the time horizon $T$. This paper addresses whether a stochastic bound depending only on $\Delta$ and $\log T$ is achievable while maintaining adversarial optimality.
Methodology: The "Switch Tsallis, Switch!" Algorithm
The authors propose a two-phase strategy called "Switch Tsallis, Switch!" (Algorithm 1). The algorithm is characterized by its simplicity and its use of switching frequency as a diagnostic tool.
Phase 1: Standard Exploration
The algorithm begins by running Tsallis-INF, a standard BOBW algorithm that does not explicitly account for switching costs. In a stochastic environment, a well-behaved algorithm naturally converges on the optimal arm and switches infrequently.
The Trigger Mechanism
The learner monitors its own switching behavior. Because the algorithm always knows how many times it has changed arms, it uses the total number of switches ($S$) as a regime detector. If $S$ exceeds a specific threshold—defined as $O(T^{2/3})$—the algorithm concludes that the environment is likely adversarial, as an adversarial opponent can force frequent switches to maximize regret.
Phase 2: Batched Play
Once the threshold is triggered, the algorithm transitions to Mini-Batched Tsallis-INF. By playing the same arm for a fixed block of rounds (a batch), the learner amortizes the switching cost over multiple trials. This is a standard technique for handling switching costs in adversarial settings, ensuring the $O(T^{2/3})$ regret bound is maintained.
Key Insights and Theoretical Results
Switching Cost as a Signal
A primary contribution of this work is the realization that switching costs provide a "free" and reliable metric for regime detection. Unlike estimating regret, which is difficult because the losses of unchosen arms are hidden, the switch count is always observable. This allows the algorithm to detect adversarial behavior more efficiently than previous methods.
Closing the Stochastic Gap
Previous state-of-the-art algorithms suffered from a $T^{1/3}$ factor in their stochastic bounds. This paper proves that this factor is unnecessary. By utilizing the switching trigger, the authors achieve a stochastic bound of $O(\frac{\lambda \log T}{\Delta^2})$ for the two-arm case, where $\lambda$ represents the switching cost.
Optimality and Lower Bounds
The authors provide a new lower bound for the $K=2$ case, demonstrating that any algorithm achieving $O(T^{2/3})$ adversarial regret must suffer at least $\Omega(1/\Delta^2)$ regret in the stochastic case. This confirms that "Switch Tsallis, Switch!" is essentially optimal for two arms.
Summary of Performance
- Adversarial Regret: $O(( \lambda K)^{1/3} T^{2/3})$, which is minimax optimal.
- Stochastic Regret ($K=2$): $O(\frac{\lambda \log T}{\Delta^2})$.
- Stochastic Regret ($K > 2$): $O(\min\{\frac{\lambda \log T}{\Delta_{min}} \sum \frac{1}{\Delta_i}, T^{2/3}\})$.
Limitations and Future Work
While the algorithm is optimal for two arms, a small gap remains between the upper and lower bounds for $K > 2$ arms. Additionally, the current analysis assumes a unique best arm in the stochastic setting; handling multiple optimal arms with switching costs remains an open challenge. Finally, while the algorithm assumes the time horizon $T$ is known, the authors suggest that a "doubling trick" can adapt the algorithm for unknown $T$, albeit with a minor logarithmic penalty to regret.
Summary updated