Proximal Policy Gradient: PPO with Policy Gradient

Ju-Seung Byun, Byungmoon Kim, Huamin WangarXiv 2020

TL;DR

This paper introduces Proximal Policy Gradient (PPG), a new algorithm that bridges the gap between vanilla policy gradient (VPG) and proximal policy optimization (PPO). PPG uses the same gradient formula as VPG but incorporates a novel clipping strategy inspired by PPO, allowing for more stable and efficient policy updates. Experiments show PPG achieves performance comparable to PPO while exhibiting slower entropy decay and smaller KL divergence, suggesting it can be a viable alternative.

What Problem Does This Paper Address?

Reinforcement learning (RL) algorithms aim to train agents to make optimal decisions in an environment. Policy gradient methods, like Vanilla Policy Gradient (VPG), directly optimize a policy by following the gradient of the expected return. However, VPG can be slow to converge and requires many samples. More advanced methods like Proximal Policy Optimization (PPO) improve sample efficiency and stability by using a surrogate objective function with a clipping mechanism. This clipping prevents drastic policy updates, allowing for more iterations per data batch. The challenge addressed here is whether the benefits of PPO's stability and sample efficiency can be achieved by leveraging the original policy gradient theorem's objective while still incorporating a clipping mechanism. Essentially, can we get PPO-like performance using a VPG-style gradient?

Methods

The paper proposes Proximal Policy Gradient (PPG). PPG's core innovation lies in its objective function and clipping strategy.

  • Objective Function: PPG's objective function is designed such that its gradient is identical to that of the original VPG objective. This means it directly uses the policy gradient theorem's formulation.
  • Clipping Strategy: To achieve the stability and sample efficiency benefits of PPO, PPG introduces a new clipping mechanism. This clipping is applied in the "advantage-policy plane," which visualizes the relationship between an action's advantage (how good it is) and the change in its log probability. The clipping is designed to prevent overly large updates when the advantage is high or low, and when the policy probability has changed significantly. Specifically, it uses upper and lower bounds on the log probability difference, dependent on the sign of the advantage. This clipping is applied to samples that have their probabilities adjusted enough, effectively excluding them from the training batch if they fall outside the desired range.

Datasets

The paper evaluates PPG on standard robotics environments from:

  • OpenAI Gym: Specifically, the MuJoCo simulator environments: Ant, HalfCheetah, Hopper, and Walker2d.
  • Bullet: The corresponding Bullet physics engine environments: AntBulletEnv, HalfCheetahBulletEnv, HopperBulletEnv, and Walker2DBulletEnv.

These are not newly introduced datasets but rather existing benchmarks for evaluating continuous control RL algorithms.

Key Insights and Ideas

  • Gradient Equivalence: The most significant insight is that PPG's objective function, despite its clipping, retains the exact same gradient as the VPG objective. This is a crucial theoretical finding, suggesting that the core mechanism for learning from the policy gradient theorem can be preserved while gaining PPO's practical advantages.
  • Advantage-Policy Plane Clipping: The novel clipping strategy on the advantage-policy plane is key. It effectively filters out "undesirable" updates (e.g., increasing the probability of a bad action, or decreasing the probability of a good action too much), focusing the learning on more informative samples.
  • Slower Entropy Decay: PPG consistently shows slower entropy decay compared to PPO. This implies that PPG policies tend to remain more stochastic for longer, which can be beneficial for exploration and avoiding premature convergence to suboptimal solutions.
  • Lower KL Divergence: PPG exhibits lower KL divergence between the updated policy and the old policy compared to PPO. This suggests that PPG's updates are more conservative and controlled, contributing to its stability.

Key Results

  • Comparable Performance: PPG achieves average returns that are comparable to PPO across various OpenAI Gym and Bullet environments. In some cases, PPG even shows marginally higher average returns.
  • More Stochastic Solutions: PPG policies tend to be more stochastic than PPO policies, as indicated by their slower entropy decay.
  • Reduced KL Divergence: PPG consistently shows lower KL divergence throughout training compared to PPO.
  • Stable Training: The clipping mechanism in PPG, similar to PPO, contributes to stable training, preventing the catastrophic forgetting or policy collapse that can occur with unclipped VPG.

Limitations and Future Work

  • Clipping Strategy Exploration: The authors acknowledge that while their clipping strategy is effective, there might be other "sloped clip lines" or more sophisticated clipping designs that could yield further improvements. They suggest that exploring these alternative clipping strategies is a direction for future work.
  • General Applicability: While preliminary tests with various KL divergence constraint ideas (e.g., dead zones, penalizing average KL) showed promise, a comprehensive study on their general applicability across different environments is needed and left as future work.
  • Hyperparameter Sensitivity: While not explicitly detailed as a limitation, the effectiveness of clipping strategies often depends on careful hyperparameter tuning, which is a common challenge in RL.

Summary updated

BibTeX
@misc{byun2020proximal,
  author = {Ju-Seung Byun and Byungmoon Kim and Huamin Wang},
  title = {{Proximal Policy Gradient: PPO with Policy Gradient}},
  year = {2020},
  eprint = {2010.09933},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.09933},
}
Figure