Leverage the Average: an Analysis of Regularization in RL

Nino Vieillard, Tadashi Kozuno, Bruno Scherrer, Olivier Pietquin, Rémi Munos, Matthieu GeistarXiv 2020

Summary

This research reveals that Kullback-Leibler (KL) regularization in Reinforcement Learning (RL) acts as an implicit mechanism for averaging $q$-values over time. By proving this "averaging effect," the authors provide the first theoretical performance bounds that scale linearly with the planning horizon and allow estimation errors to cancel each other out, explaining why regularized algorithms like TRPO and MPO are so effective in practice.

Introduction

In Reinforcement Learning, regularization is often used to prevent a new policy from straying too far from the previous one, typically using KL divergence. While algorithms employing this technique (like TRPO or MPO) perform exceptionally well in deep RL, theoretical understanding of their success has lagged. Prior theoretical bounds often suffered from a quadratic dependency on the planning horizon and were highly sensitive to error accumulation from neural network approximations. This paper bridges the gap by analyzing KL regularization within the framework of Approximate Value Iteration (AVI).

The Averaging Mechanism

The authors analyze RL through two equivalent lenses: Mirror Descent and Dual Averaging. They demonstrate that penalizing the KL divergence between the current policy and the previous one is mathematically equivalent to choosing a policy based on the average of all previous $q$-function estimates.

This "implicit averaging" allows the agent to leverage the history of training, making it more robust to the noise of any single iteration. If estimation errors are centered, they eventually cancel out rather than accumulating and ruining the policy.

Convergence of normalized q-value error for standard AVI vs. regularized versions with varying λ.

As illustrated in the figure above, standard AVI (blue line) maintains a high and noisy error floor. In contrast, regularized versions ($\lambda > 0$) show a steady decrease in normalized error, demonstrating the stabilizing effect of the averaging mechanism.

Theoretical and Empirical Breakthroughs

By leveraging the averaging perspective, the authors achieve a performance bound with a linear dependency on the horizon $(1-\gamma)^{-1}$, a significant improvement over the standard quadratic dependency $(1-\gamma)^{-2}$. This represents the first RL bound to combine linear horizon dependency with an error-averaging effect.

The paper validates these findings across synthetic MDPs (Garnets), classic control tasks (Cartpole, Lunar Lander), and high-dimensional Atari games. Interestingly, the results suggest that KL regularization alone, even without the commonly used entropy term, may be sufficient to achieve state-of-the-art stability and performance.

Hyperparameter Stability

Beyond raw performance, regularization leads to much wider "zones" of stable hyperparameters. The authors suggest including the regularization term not just during policy updates, but also when calculating the Bellman target (regularizing the evaluation step).

Performance heatmaps for different regularization schemes across hyperparameter grids, demonstrating stability zones.

The heatmaps above show that methods like Dual Averaging (DA) and Mirror Descent (MD) maintain high performance across a broad range of $\lambda$ and $\beta$ values. This robustness is a critical advantage for deep RL, where hyperparameter tuning is often computationally expensive.

Conclusion

This work provides a rigorous foundation for the success of regularized RL by revealing the implicit averaging mechanism of KL divergence. While assumptions regarding the "greedy step" remain a limitation for deep RL approximations, this research has already laid the groundwork for follow-up approaches like "Munchausen Reinforcement Learning," which simplifies these insights into easily implementable modifications for existing agents.

Summary updated

BibTeX
@misc{vieillard2020leverage,
  author = {Nino Vieillard and Tadashi Kozuno and Bruno Scherrer and Olivier Pietquin and Rémi Munos and Matthieu Geist},
  title = {{Leverage the Average: an Analysis of Regularization in RL}},
  year = {2020},
  eprint = {2003.14089},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.14089},
}
Figure