Regret-Optimal Model-Free Reinforcement Learning for Discounted MDPs with Short Burn-In Time

Xiang Ji, Gen Li

Introduction

In the field of reinforcement learning (RL), agents strive to maximize cumulative rewards within unknown environments. This challenge is typically modeled using Markov Decision Processes (MDPs). For infinite-horizon discounted MDPs, where the agent operates indefinitely and future rewards are discounted by a factor $\gamma \in [0, 1)$, two primary algorithmic paradigms exist: model-based and model-free.

Model-based algorithms learn the environment's transition dynamics directly. While they are often sample-efficient, they suffer from high memory overhead, requiring $O(S^2A)$ space to store transitions for $S$ states and $A$ actions. Conversely, model-free methods, such as Q-learning, are memory-light ($O(SA)$) but have historically struggled to achieve "regret optimality"—the theoretical limit where cumulative performance loss matches the best possible rate. Furthermore, even algorithms that are theoretically optimal often require a prohibitively long "burn-in time"—a threshold of samples required before optimal performance guarantees apply.

This paper introduces Q-SlowSwitch-Adv, the first model-free RL algorithm for discounted MDPs that achieves minimax-optimal regret while significantly reducing the burn-in time compared to previous state-of-the-art methods.

The Problem: Memory, Regret, and the Burn-In Barrier

Achieving regret optimality in discounted MDPs involves minimizing the difference between the rewards of an optimal policy and the rewards obtained by the learning agent. While model-based algorithms like UCBVI-$\gamma$ have achieved optimal regret, their $O(S^2A)$ memory requirement makes them impractical for environments with large state spaces.

A secondary, often overlooked hurdle is the burn-in time. This represents the number of samples $T$ an algorithm must process before its regret guarantees become valid. For many optimal algorithms, this burn-in time scales cubically with the number of states ($O(S^3)$). In large-scale applications, this means the "optimal" regime might never be reached within a reasonable timeframe. The goal of this research is to design an algorithm that is both memory-efficient and possesses a short burn-in time without sacrificing regret optimality.

Methodology: Q-SlowSwitch-Adv

The proposed algorithm, Q-SlowSwitch-Adv, achieves these goals by integrating two key technical innovations:

1. Variance Reduction via Reference-Advantage Decomposition

To mitigate the stochastic noise inherent in Q-learning updates, the algorithm employs a variance reduction technique inspired by episodic RL. It maintains a "reference" value function ($V^R$) and focuses on estimating the "advantage"—the difference between the current value estimates and this reference. This decomposition allows the algorithm to converge much faster by reducing the variance of the stochastic gradients used in the updates.

2. Adaptive Low-Switching Greedy Policy

In infinite-horizon settings, the absence of resets means that frequent policy changes can lead to "trajectory volatility," where the agent's path becomes unstable and difficult to learn from. To counter this, Q-SlowSwitch-Adv utilizes an adaptive switching rule. Rather than updating the policy on a fixed schedule, the algorithm monitors the "staleness" of the current policy using a counter ($\theta$). It only switches to a new greedy policy when the estimated Q-values have shifted significantly, ensuring a stable trajectory for data collection.

Theoretical Results

As a theoretical contribution, the paper provides rigorous mathematical proofs demonstrating that Q-SlowSwitch-Adv meets several critical performance benchmarks across all possible tabular MDPs:

  • Minimax-Optimal Regret: The algorithm achieves a cumulative regret of $\tilde{O}\left(\sqrt{\frac{SAT}{(1-\gamma)^3}}\right)$. This matches the established theoretical lower bound for discounted MDPs.
  • Memory Efficiency: By remaining model-free, the algorithm requires only $O(SA)$ space, a significant improvement over the $O(S^2A)$ required by optimal model-based counterparts.
  • Reduced Burn-In Time: Perhaps the most significant result is the reduction of the burn-in time. Q-SlowSwitch-Adv reaches its optimal regime once $T \ge \frac{SA}{\text{poly}(1-\gamma)}$. This replaces the previous $O(S^3)$ dependency with a linear $O(S)$ dependency, making the algorithm far more viable for environments with many states.
  • Computational Complexity: The algorithm is computationally efficient, with a total runtime of $O(T)$, scaling linearly with the number of samples.

Conclusion and Future Directions

Q-SlowSwitch-Adv represents a major step forward in reinforcement learning theory, proving that model-free methods can be both memory-efficient and regret-optimal in infinite-horizon settings. By breaking the $S^3$ burn-in barrier, the authors have made these theoretical guarantees more applicable to practical, large-scale problems.

However, a remaining challenge is the dependency on the effective horizon $1/(1-\gamma)$. Currently, the burn-in time scales with $(1-\gamma)^{-13}$, while theoretical lower bounds suggest that a dependency as low as $(1-\gamma)^{-1}$ might be achievable. Closing this gap remains an open challenge for future reinforcement learning research.

Summary updated

BibTeX
@inproceedings{ji2023regret,
  author = {Xiang Ji and Gen Li},
  title = {{Regret-Optimal Model-Free Reinforcement Learning for Discounted MDPs with Short Burn-In Time}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=nFsbQHFmj2},
}
Figure