NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sample-Efficient Reinforcement Learning with loglog(T) Switching Cost

Dan Qiao, Ming Yin, Ming Min, Yu-Xiang Wang

TL;DR

This paper achieves an exponential improvement in the "switching cost" of reinforcement learning—the number of times an agent must update its deployed policy. By introducing the APEVE algorithm, the authors reduce this cost from the previous best of $O(\log T)$ to a near-constant $O(\log \log T)$ while maintaining optimal performance (regret). Furthermore, they prove that this bound is information-theoretically optimal.

The Challenge of Deployment-Efficient RL

In textbook Reinforcement Learning (RL), an agent typically updates its strategy (policy) after every single interaction or episode. While this works seamlessly in simulations, it is often impossible in the real world. Consider a clinical trial or a large-scale recommendation system: deploying a new policy involves significant logistical overhead, safety checks, and human effort. In these "deployment-efficient" scenarios, practitioners need to collect data in large batches and change the policy as rarely as possible.

This creates a classic trade-off: if you change your policy too rarely, you risk spending too much time collecting suboptimal data (incurring high regret). If you change it too often, the deployment cost becomes prohibitive. Previous state-of-the-art algorithms required $O(\log T)$ switches to achieve optimal regret. This paper asks a fundamental question: Can we do better?

Methods: The APEVE Framework

The authors propose a new framework called APEVE (Adaptive Policy Elimination by Value Estimation). The core strategy relies on two main components:

Policy Elimination Stages
  1. Stage-wise Exploration: Instead of continuous updates, the algorithm divides the total time budget into stages of increasing length. As shown in the figure above, the policy set $\Phi$ is progressively narrowed down across stages.
  2. Adaptive Policy Elimination: Within each stage, the algorithm maintains a "version space"—a set of all potentially optimal policies. It uses a "Crude Exploration" (CE) step to identify state-action pairs that are hard to reach and bundles them into an "absorbing MDP." This surrogate model treats hard-to-visit states as a single "absorbing state" that yields no reward.
  3. Fine Exploration: The algorithm then performs a more refined estimation (FE) of the transition probabilities within this absorbing MDP. By the end of a stage, any policy that is "certifiably suboptimal" based on these estimates is eliminated from the version space.

For the specific case where rewards are unknown beforehand (Reward-Free Exploration), the authors introduce LARFE (Low Adaptive Reward-Free Exploration), which achieves a switching cost entirely independent of the total time $T$.

Key Insights

  • The Power of $\log \log T$: To a computer scientist, $\log \log T$ is practically a constant. For a massive dataset of $T = 10^5$, $\log T$ is about 11.5, while $\log \log T$ is only 2.4. Even if $T$ were the number of atoms in the universe ($10^{82}$), $\log \log T$ would only be around 5.2. This means the algorithm essentially "settles" on a policy almost immediately.
  • The "Absorbing MDP" Trick: The biggest hurdle in low-switching RL is that you cannot visit every state frequently. The authors' clever workaround is to stop trying to be perfect everywhere. By treating rare states as "absorbing," they can provide uniform value estimates for all remaining policies without needing infinite data from every corner of the state space.
  • Proving the Limit: The authors do not just provide a faster algorithm; they prove that $O(\log \log T)$ is the fundamental limit. They show that any algorithm achieving optimal regret must incur at least $\Omega(\log \log T)$ switching cost, effectively closing this theoretical gap.

Key Results

The paper provides rigorous mathematical guarantees for tabular Markov Decision Processes (MDPs), summarized in the comparison table below:

Algorithm Comparison Table
  • Regret Bound: APEVE achieves a regret of $\tilde{O}(\sqrt{H^4 S^2 AT})$, which is optimal with respect to the total time $T$.
  • Switching Cost: The global switching cost is $O(HSA \log \log T)$, representing an exponential improvement over the previous $O(\log T)$ standard.
  • Reward-Free Exploration: The LARFE algorithm achieves a switching cost of $O(HSA)$, which is completely independent of the number of episodes.
  • Optimality: The authors provide matching lower bounds, proving that their algorithms are near-optimal in terms of switching costs for both regret minimization and reward-free exploration.

Limitations and Future Work

While theoretically groundbreaking, the work has a few limitations that pave the way for future research:

  • Computational Complexity: APEVE is not currently computationally efficient. It requires explicitly iterating over the "version space" of all deterministic policies, which grows exponentially with the number of states and the horizon ($A^{HS}$). Designing a polynomial-time version of this algorithm remains a major open challenge.
  • Tabular Setting: The results are limited to "tabular" MDPs, where states and actions are discrete and finite. Extending these $\log \log T$ guarantees to settings with function approximation (like Deep RL) or continuous state spaces is an exciting frontier.
  • Parameter Dependence: While optimal in $T$, there is still a small gap in the dependence on $S$ (number of states) and $H$ (horizon) compared to the absolute information-theoretic limits of RL.

Summary updated

BibTeX
@inproceedings{qiao2022sample,
  author = {Dan Qiao and Ming Yin and Ming Min and Yu-Xiang Wang},
  title = {{Sample-Efficient Reinforcement Learning with loglog(T) Switching Cost}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=wzQPezw8mww},
}
Figure