Mirror Descent Policy Optimization

Manan Tomar, Lior Shani, Yonathan Efroni, Mohammad GhavamzadehICLR 2022

Introduction

In Reinforcement Learning (RL), "trust-region" methods are the gold standard for stability. They ensure that when an agent updates its policy, the new version doesn't deviate too wildly from the old one, preventing catastrophic performance collapses. However, there is a disconnect between theory and practice. The underlying theory, Mirror Descent (MD), is a mathematically sound way to solve constrained optimization, but its application in deep RL has been largely limited to small, discrete problems.

As a result, popular algorithms rely on approximations. Trust Region Policy Optimization (TRPO) uses complex, computationally expensive "hard" constraints (like line searches and second-order derivatives), while Proximal Policy Optimization (PPO) uses "soft" heuristics like clipping that don't strictly follow the underlying theory.

Mirror Descent Policy Optimization (MDPO) bridges this gap. By replacing the hard constraints of algorithms like TRPO with multiple gradient steps on a proximity-regularized objective, MDPO offers a unified framework that outperforms or matches state-of-the-art methods across diverse control tasks.

Methods: The MDPO Approach

The core idea of MDPO is to update the policy by approximately solving a trust-region problem at each step. The objective function consists of two parts:

  1. Linearized RL Objective: Encourages the agent to maximize expected rewards using the advantage function.
  2. Proximity Term (Bregman Divergence): A penalty term that keeps the new policy close to the old one. While typically the KL-divergence, MDPO also explores Tsallis entropy for added flexibility.

The "Secret Sauce": Instead of trying to solve this optimization perfectly in one go, MDPO takes multiple gradient steps ($m$) on this objective.

  • On-Policy MDPO: Uses data from the current policy and anneals the step-size over time.
  • Off-Policy MDPO: Uses a replay buffer and can be configured to use different types of entropy, providing a new optimization-based perspective on the popular Soft Actor-Critic (SAC) algorithm.

Key Insights

  • Hard Constraints Aren't Mandatory: You don't need the explicit, "hard" line-search constraints used in TRPO to get its stability benefits. Taking multiple gradient steps on a regularized objective achieves similar or better results with less complexity.
  • The TRPO vs. PPO Reality Check: When both are loaded with the same code-level optimizations (like reward normalization), TRPO often outperforms PPO. MDPO, however, tends to beat both.
  • SAC as a Special Case: The Soft Actor-Critic (SAC) algorithm can be viewed as a specific version of off-policy MDPO where the "trust region" is defined relative to a uniform policy rather than the previous policy.
  • The Power of $m$: The number of gradient steps ($m$) is a vital hyperparameter. Taking only one step is insufficient, but taking too many can lead to overfitting. The authors found $m=10$ to be a "sweet spot" for on-policy tasks.

Key Results

The researchers evaluated MDPO on MuJoCo continuous control tasks and Atari 2600 discrete-action games.

Superior Performance: In MuJoCo tasks, MDPO (especially the Tsallis entropy version) consistently achieved higher mean returns than TRPO, PPO, and SAC. For example, in the difficult Humanoid-v2 task, MDPO-Tsallis significantly outperformed the baselines.

Performance comparison of MDPO against TRPO, PPO, and SAC across MuJoCo environments.

Efficiency and Robustness: MDPO provides an excellent trade-off between performance, wall-clock time, and the number of algorithm-specific hyperparameters. Furthermore, MDPO performed better than or on par with PPO in 15 out of 21 Atari games, proving it is a robust substitute for current industry standards.

Trade-offs between MDPO, PPO, and TRPO in terms of wall clock time, performance, and number of hyperparameters.

Limitations and Future Work

While MDPO simplifies the algorithmic approach compared to TRPO, it introduces hyperparameter sensitivity around the number of gradient steps ($m$) and the step-size schedule, which require tuning for different environments. Additionally, the current version focuses on stable optimization rather than exploration. Future work could explicitly incorporate exploration strategies into the Mirror Descent framework to improve performance in sparse-reward environments, and further simplify the theoretical derivations for discrete on-policy settings.

Summary updated

BibTeX
@inproceedings{tomar2022mirror,
  author = {Manan Tomar and Lior Shani and Yonathan Efroni and Mohammad Ghavamzadeh},
  title = {{Mirror Descent Policy Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=aBO5SvgSt1},
}
Figure