Optimal Bandits with Switching Costs: $(T/\log(T))^{2/3}$ Regret

Chenyu GanarXiv 2026

TL;DR

In the world of decision-making under uncertainty, changing your mind usually comes with a "switching cost"—like the time lost recalibrating a machine or the energy spent downloading a new software model. This paper proves that the traditional "blocking" strategy (sticking with one choice for a fixed time) is actually suboptimal, and introduces a clever new algorithm that uses "detours" and weighted observations to achieve the mathematically best possible performance.

What Problem Does This Paper Address?

Imagine you are managing a fleet of sensors. You can only listen to one frequency at a time. Switching frequencies isn't instant; it causes a gap in data. This is the Multi-Armed Bandit with Switching Costs problem. You want to find the best "arm" (frequency) to minimize your total loss (regret), but every time you switch, you pay a penalty.

For years, the standard approach was "simple blocking": pick an arm, play it for a while, then switch. While this works reasonably well, researchers suspected it wasn't perfect. The gap was a pesky logarithmic factor. This paper finally closes that gap, determining the exact "minimax regret"—the best performance any algorithm can possibly guarantee against a clever adversary.

Methods

The author, Chenyu Gan, moves away from the "play and stay" mentality of simple blocking and introduces two sophisticated mechanisms:

  1. Weighted Dyadic Comparisons: Instead of treating every round in a block of time as equally important, the algorithm gives much higher "weight" to observations that happen right around the moment of a switch. By looking at losses across "dyadic scales" (intervals of length 1, 2, 4, 8...), the learner extracts significantly more information about which arm is better without needing to switch more often.
  2. The "Detour" Mechanism: This is the most intuitive leap. If the learner observes a particularly high loss, it triggers a "detour"—a brief period where it temporarily plays a newly sampled arm. Mathematically, these detours act as a "correction term." They cancel out the nasty temporal correlations that usually plague blocking strategies, effectively cleaning the data used for future decisions.
  3. Tsallis Regularization: To manage the global strategy across many blocks of time, the paper uses a specialized mathematical tool called Tsallis entropy regularization, which helps the algorithm balance exploration and exploitation smoothly.

Datasets

As a theoretical paper in computer science and probability, this work does not use empirical datasets. Instead, it relies on mathematical proofs and lower-bound constructions. Specifically, the author refines a "multiscale random walk" construction—a way of imagining the worst-case sequence of losses an adversary could throw at a learner—to prove that no algorithm can do better than the one proposed.

Key Insights and Ideas

  • Information isn't uniform: The "aha moment" here is realizing that the moments just before and after a switch are the most informative. By focusing on these transitions, you get more "bang for your buck" for every switch you pay for.
  • Simple Blocking is Suboptimal: The paper disproves previous claims that simpler strategies were "optimal within a constant." It turns out that being a little more random and a little more weighted makes a measurable difference.
  • Detours as Anti-Correlation: Usually, we think of sampling new actions as "exploration." Here, the "detours" serve a dual purpose: they are a mathematical "anti-venom" that neutralizes the bias introduced by staying with one arm for too long.

Key Results

The paper establishes the minimax regret for $K$ arms and $T$ rounds as: $$\Theta\left(\min\left\{T, \frac{K^{1/3}T^{2/3}}{\log^{2/3}(2+T/K)}\right\}\right)$$

In plain English:

  • The regret grows with the $2/3$ power of time ($T^{2/3}$), which was known.
  • However, the denominator includes a $\log^{2/3} T$ factor that previous upper bounds missed.
  • This result is optimal. The author provides both the algorithm that achieves this rate and the proof that it's impossible to do any better.

Limitations and Future Work

The study focuses on the oblivious adversary setting. This means the sequence of losses is fixed before the game starts—the adversary doesn't "react" to the learner's specific choices in real-time.

A natural next step for the community would be to see if these "detour" and "weighted comparison" techniques can be adapted for adaptive adversaries (who change their strategy based on what the learner does) or for more complex cost structures, like "metric" switching costs where switching from arm A to B might cost more than switching from A to C.

Summary updated

Abstract

We study adversarial bandits with switching costs. For $K$ arms, $T$ rounds, unit switching costs, and oblivious losses in $[0,1]$, we prove that the minimax regret is \begin{equation*} Θ\!\left(\min\left\{T, \frac{K^{1/3}T^{2/3}}{\log^{2/3}(2+T/K)}\right\}\right)\,. \end{equation*} This shows that simple blocking, which plays one arm throughout each block, is suboptimal. Our algorithm makes at most a constant number of switches at random times within each block. The key idea for the improvement is to extract more information per switch by giving greater weight to observations near switching times. We also introduce detours, during which the learner temporarily plays a newly sampled arm. Larger observed losses make a detour more likely. These detours cancel temporal correlation terms induced by blocking while preserving the observations used in the estimates. A matching lower bound follows from a refined analysis of a modified multiscale random walk construction.
BibTeX
@misc{gan2026optimal,
  author = {Chenyu Gan},
  title = {{Optimal Bandits with Switching Costs: $(T/\textbackslash\{\}log(T))^\{2/3\}$ Regret}},
  year = {2026},
  eprint = {2611.29438},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29438},
}
Figure