Implicit Policy for Reinforcement Learning

Yunhao Tang, Shipra AgrawalarXiv 2018

Abstract

Standard reinforcement learning often relies on simple unimodal policy distributions, which limit an agent's ability to explore complex reward landscapes or handle multi-modal optimal solutions. This paper introduces Implicit Policies—a class of highly expressive policies that leverage source noise and neural transformations to represent complex action distributions. By combining these policies with simple entropy regularization, the authors demonstrate that agents can achieve the benefits of Maximum Entropy RL without its typical implementation complexity. Evaluation across various benchmarks, including MuJoCo tasks, shows that implicit policies significantly improve performance and robustness compared to standard Gaussian policies.

Introduction

In deep reinforcement learning, most agents utilize simple, unimodal policy distributions, such as a single Gaussian. While computationally efficient, these policies struggle in environments with multiple optimal solutions or complex reward landscapes. To address this, researchers often turn to Maximum Entropy (MaxEnt) RL to encourage exploration and robustness. However, MaxEnt RL is mathematically complex and typically requires specialized off-policy algorithms.

This paper proposes a simpler alternative: keeping the straightforward entropy regularization used in algorithms like PPO or A3C, but increasing the expressivity of the policy itself. The authors argue that the primary limitation of standard entropy regularization is not the objective, but the lack of representational power in standard policies.

Implicit Policies

The authors introduce two types of Implicit Policies where actions are generated by passing source noise through a neural network: $a = f_\theta(s, \epsilon)$.

  1. Normalizing Flows Policy (NFP): This approach uses a series of invertible transformations. The invertibility allows the agent to explicitly calculate the probability density of an action, facilitating the computation of entropy gradients for on-policy learning.
  2. Non-invertible Blackbox Policy (NBP): This is a more general model, similar to a GAN generator, where the density is not easily accessible. To compute entropy gradients, the authors employ a "classifier trick": a separate neural network is trained to distinguish between actions from the policy and actions from a uniform distribution. The classifier's output provides an estimate of the policy density.

A key theoretical contribution of the paper is the proof that entropy regularization optimizes a lower bound of the more complex Maximum Entropy objective. This provides a formal justification for using a "greedy" regularization approach when paired with expressive policies.

Experimental Evaluation

The proposed methods were evaluated on several benchmarks:

  • MuJoCo Benchmarks: Standard continuous control tasks such as Hopper, HalfCheetah, Walker2d, and Ant.
  • Multi-modal Tasks: Custom environments like Gaussian Bandits, 2D Multi-goal navigation, and a Bimodal Reacher designed to test the ability to learn multiple solutions.
  • Noisy Locomotion: Modified MuJoCo tasks with added observation noise to evaluate robustness.

Key Results and Insights

The experiments demonstrated that implicit policies offer significant advantages over standard Gaussian policies:

  • Benchmark Performance: NFP and NBP achieved competitive results across the MuJoCo suite. On HalfCheetah, NFP significantly outperformed standard PPO, avoiding local optima that often trap unimodal policies.
  • Robustness to Noise: In environments with noisy observations, NFP learned faster and reached higher rewards. Implicit policies can navigate complex reward landscapes by maintaining multiple potential strategies, whereas unimodal policies may fail by trying to find a single "average" action.
  • Multi-modality: In the Bimodal Reacher task, the NFP agent successfully learned to target both goals stochastically, while a Gaussian policy could only ever focus on one.
Figure 3: Performance comparison between NFP + PPO (red) and Gaussian + PPO (blue) across various benchmark tasks including Hopper, Walker, Reacher, Swimmer, HalfCheetah, Ant, MountainCar, and Pendulum.

Conclusion

Implicit policies provide a powerful yet simple way to implement the benefits of Maximum Entropy RL. By using expressive architectures like Normalizing Flows or black-box generators with a density-ratio classifier, agents can represent complex, multi-modal distributions. This leads to improved performance on standard benchmarks and greater robustness in noisy or multi-modal environments. Future work may explore more complex reward landscapes and the integration of implicit models into hierarchical reinforcement learning frameworks.

Summary updated

BibTeX
@misc{tang2018implicit,
  author = {Yunhao Tang and Shipra Agrawal},
  title = {{Implicit Policy for Reinforcement Learning}},
  year = {2018},
  eprint = {1806.06798},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.06798},
}
Figure