A dynamical clipping approach with task feedback for Proximal Policy Optimization

Ziqi Zhang, Jingzehua Xu, Zifeng Zhuang, Jinxin Liu, Donglin Wang, wang, Donglin, Zhang, Shuai · DOI

TL;DR

Preference-based Proximal Policy Optimization (Pb-PPO) moves away from the "one-size-fits-all" approach of fixed clipping bounds in Reinforcement Learning. By using a multi-armed bandit to dynamically adjust the clipping bound based on actual task performance (Return), the algorithm achieves superior training stability and higher cumulative rewards across complex robotics benchmarks.

What Problem Does This Paper Address?

Proximal Policy Optimization (PPO) is a staple in robotics because it’s reliable. It uses a "clipping bound" ($\epsilon$) to ensure that new policy updates don't stray too far from the old policy, preventing the "catastrophic forgetting" that plagues many RL methods.

However, this bound is almost always a fixed hyperparameter (typically 0.2). The authors identify a major gap: there is no theoretical reason why a single bound should be optimal for every task or even for different stages of the same task. A fixed bound can stifle exploration early on or fail to provide enough stability later. While previous researchers have tried dynamic clipping, their methods often focused on internal metrics like KL divergence rather than the ultimate goal of RL: maximizing the total reward (Return).

Methods

The authors propose a bi-level optimization framework called Pb-PPO.

  1. The Policy Level: Standard PPO updates the agent's behavior.
  2. The Preference Level: A Multi-Armed Bandit (MAB) selects the best clipping bound from a set of candidates (e.g., $\{0, 0.1, \dots, 1.0\}$).

The "aha!" moment in their method is the feedback loop. The MAB receives the actual Return achieved by the agent as its reward signal. To handle the inherent noise and fluctuations of RL training, they use a modified Upper Confidence Bound (UCB) strategy. Instead of the standard UCB formula, which can get stuck in local minima due to training noise, they implement a visitation-based uncertainty term (Equation 7) that encourages the algorithm to periodically "try out" different clipping bounds to see which one currently yields the best performance.

Datasets

The researchers validated Pb-PPO across three distinct domains:

  • Gym-MuJoCo: Standard locomotion benchmarks including Ant-v3, Hopper-v3, HalfCheetah-v3, and Walker2d-v3.
  • Legged-gym: A high-fidelity simulation of the Anymal-C quadruped robot navigating flat and complex terrains (like stairs).
  • Custom AUV Navigation: A self-designed 3D Autonomous Underwater Vehicle task using ROS-Gazebo, where the agent must navigate obstacles to reach sequential targets.

Key Insights and Ideas

  • Aligning Hyperparameters with Task Goals: Most hyperparameter tuning happens before training. Pb-PPO treats the clipping bound as a dynamic part of the agent's strategy, optimized specifically to maximize the task's reward.
  • Exploration vs. Exploitation of Constraints: The algorithm learns when to be "bold" (larger clipping bound) and when to be "cautious" (smaller clipping bound).
  • Robustness in Deployment: Interestingly, the authors found that policies trained with dynamic clipping weren't just better at getting high scores; they produced more stable physical behaviors, such as smoother gaits for quadruped robots when encountering stairs.

Key Results

  • MuJoCo Superiority: Pb-PPO achieved an average return of 3315.3 across tasks, significantly outperforming the "official" PPO baseline (2090.3) and other variants like TRPO and DDPG.
  • Faster Convergence: In the Hopper-v3 environment, Pb-PPO reached peak performance much faster than fixed-bound versions.
  • Robotic Stability: In the Anymal-C quadruped tests, Pb-PPO showed a 5.0% higher "success rate of policy improvement" compared to standard PPO, leading to more reliable command following in complex terrains.
  • Ablation Success: The performance improved consistently as the number of candidate "arms" (clipping bounds) increased from 3 to 12, suggesting the bandit effectively sifts through options to find the optimal constraint.

Limitations and Future Work

The authors note that while Pb-PPO excels in single-agent environments, its advantage was slightly less pronounced in massively parallel environments (like those in legged-gym). They attribute this to the reward signal being averaged across many agents, which can blur the "fine granularity" needed to pick the perfect bound for specific states.

Future work aims to scale this approach to incorporate human preferences directly into the bandit's feedback loop, potentially allowing robots to learn behaviors that aren't just high-scoring, but also more aligned with human expectations.

Summary updated

BibTeX
@misc{zhang2023dynamical,
  author = {Ziqi Zhang and Jingzehua Xu and Zifeng Zhuang and Jinxin Liu and Donglin Wang and wang, Donglin and Zhang, Shuai},
  title = {{A dynamical clipping approach with task feedback for Proximal Policy Optimization}},
  year = {2023},
  eprint = {2312.07624},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.07624},
}
Figure