KL-Entropy-Regularized RL with a Generative Model is Minimax Optimal

Tadashi Kozuno, Wenhao Yang, Nino Vieillard, Toshinori Kitamura, Yunhao Tang, Jincheng Mei, Pierre Ménard, Mohammad Gheshlaghi Azar, Michal Valko, Rémi Munos, Olivier Pietquin, Matthieu Geist, Csaba Szepesvári · DOI

Introduction

In reinforcement learning (RL), sample complexity—the number of interactions an agent requires with an environment to learn a near-optimal policy—is a fundamental metric of algorithmic efficiency. In the "generative model" setting, where an agent can query a simulator for any state-action pair, the theoretical lower bound for sample complexity is known to be proportional to $H^3$ (where $H$ represents the planning horizon).

Historically, standard model-free algorithms like Q-learning have struggled to reach this bound, often scaling with $H^4$. To bridge this gap and achieve "minimax optimality," researchers previously relied on complex "variance reduction" techniques. While mathematically effective, these techniques add significant implementation overhead and complexity. This paper investigates whether a simpler, more intuitive approach—Mirror Descent Value Iteration (MDVI)—can achieve the same gold standard of efficiency.

The MDVI Framework

Mirror Descent Value Iteration (MDVI) departs from standard value iteration by incorporating two specific forms of regularization into the policy update step:

  1. Kullback-Leibler (KL) Divergence: This acts as a "trust region" constraint, preventing the policy from shifting too radically between successive iterations.
  2. Entropy Regularization: This encourages exploration by penalizing policies that become overly deterministic too early in the learning process.

Unlike traditional methods that use these as heuristics, this research treats them as core components of the algorithm's stability. The authors demonstrate that these regularization terms facilitate a process of "implicit averaging" of value functions over time. This averaging naturally dampens the noise inherent in sampling, effectively performing the role of variance reduction without the need for explicit, high-complexity mathematical modules.

Theoretical Contributions

The primary contribution of this work is the proof that MDVI is minimax optimal. The authors establish a sample complexity of $\tilde{O}(H^3XA/\epsilon^2)$ to find an $\epsilon$-optimal policy, where $X$ is the state space and $A$ is the action space. This result matches the theoretical lower bounds for the generative model setting.

Key theoretical insights include:

  • Regularization as a Stabilizer: KL and entropy regularization are proven to provide rigorous theoretical benefits, making the algorithm robust to sampling errors by distributing the impact of a single "bad" sample across multiple updates.
  • No Pessimism Required: Unlike many optimal algorithms in online settings that require "pessimism in the face of uncertainty," MDVI achieves optimality in the generative setting without such constraints, making it a cleaner candidate for future extensions.
  • Stationary vs. Non-Stationary Policies: The analysis shows that while the final policy produced by the algorithm is optimal for very small $\epsilon$, a non-stationary policy (averaging the policies generated throughout the run) maintains optimality over a broader range of error tolerances.

Empirical Validation

To validate the theoretical findings, the authors conducted simulations using Garnet MDPs (Generalized Random Networks). These are standard, randomly generated Markov Decision Processes that allow for precise control over parameters such as the branching factor and state-action density.

In these benchmarks, MDVI significantly outperformed standard Q-learning. As the requirement for precision (smaller $\epsilon$) increased, MDVI demonstrated superior efficiency, reaching target policies with up to 10 times fewer samples than its non-regularized counterparts.

Limitations and Future Directions

While the paper establishes MDVI as a powerful tool for tabular RL, there are limitations to the current analysis. The proof of optimality currently holds when the desired error $\epsilon$ is sufficiently small (specifically $\epsilon \leq 1/H$ or $1/\sqrt{H}$). Whether MDVI remains optimal for larger values of $\epsilon$ remains an open question.

Furthermore, this study focuses on the tabular case. However, the simplicity of MDVI and its lack of reliance on explicit variance reduction make it an ideal candidate for scaling to Function Approximation (Deep RL). Future work will likely explore how these regularization benefits translate to high-dimensional environments using neural network architectures.

Conclusion

This research demonstrates that simplicity can indeed be optimal. By showing that KL and entropy regularization provide implicit variance reduction, the authors have elevated MDVI from a practical heuristic to a theoretically grounded, minimax optimal algorithm. This work paves the way for more efficient and easier-to-implement RL agents in both simulated and real-world environments.

Summary updated

BibTeX
@misc{kozuno2022kl,
  author = {Tadashi Kozuno and Wenhao Yang and Nino Vieillard and Toshinori Kitamura and Yunhao Tang and Jincheng Mei and Pierre Ménard and Mohammad Gheshlaghi Azar and Michal Valko and Rémi Munos and Olivier Pietquin and Matthieu Geist and Csaba Szepesvári},
  title = {{KL-Entropy-Regularized RL with a Generative Model is Minimax Optimal}},
  year = {2022},
  eprint = {2205.14211},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.14211},
}
Figure