Augmented Proximal Policy Optimization for Safe Reinforcement Learning

Juntao Dai, Jiaming Ji, Long Yang, Qian Zheng, Gang Pan

Introduction

Reinforcement Learning (RL) has demonstrated remarkable success in complex domains, yet its application in safety-critical real-world scenarios—such as autonomous driving or surgical robotics—is often limited by the "trial-and-error" nature of the learning process. Safe Reinforcement Learning addresses this by requiring agents to maximize rewards while strictly adhering to safety constraints, typically modeled as Constrained Markov Decision Processes (CMDPs).

Current approaches to CMDPs often face significant trade-offs. Lagrangian methods frequently suffer from oscillations due to slow multiplier updates. Penalty-based methods may require infinite penalty factors for exactness, leading to numerical instability. Meanwhile, second-order trust-region methods like Constrained Policy Optimization (CPO) are computationally intensive and difficult to scale. To bridge this gap, researchers from Zhejiang University and Peking University proposed Augmented Proximal Policy Optimization (APPO) at AAAI-23.

Methodology: The Augmented Lagrangian Framework

The core innovation of APPO is the integration of the Augmented Lagrangian method into the RL optimization objective. Unlike standard Lagrangian approaches that use only a linear term (multiplier × cost), APPO adds a quadratic penalty term to the objective function.

Key Technical Innovations

  • Multiplier-Penalty Function: The combination of linear and quadratic terms creates a "slack margin." This allows the penalty to begin dampening oscillations before a constraint is fully violated, acting as a shock absorber for the learning process.
  • Theoretical Exactness: The authors demonstrate that this augmented function serves as an "exact penalty," meaning the solution to the unconstrained augmented problem matches the original constrained problem with only a finite penalty factor.
  • First-Order Efficiency: APPO utilizes PPO-style clipping for both reward and cost objectives. By relying on standard first-order optimizers like Adam, it avoids the heavy computational burden of Hessian-based second-order methods.

Experimental Evaluation

The performance of APPO was rigorously tested across eight diverse safe RL benchmarks spanning three major environments: Safe MuJoCo (Ant and Humanoid), Safety Gym (Point and Car), and Bullet Safety Gym (Ball and Car).

Overview of the safe RL benchmark environments used for evaluation, including Run, Circle, Goal, and Button tasks.

Results and Discussion

APPO consistently outperformed state-of-the-art baselines, including CPO, FOCOPS, and standard Lagrangian methods (PDO).

Training curves showing reward (top rows) and cost (bottom rows) across eight benchmark tasks. APPO (red) demonstrates superior stability and constraint satisfaction.

Performance Highlights

  • Superior Reward and Stability: In the "Car Button" task, APPO achieved a 41% higher reward than the most stable baseline. In "Ant Run," it exhibited significantly fewer oscillations, leading to more reliable convergence.
  • Precise Constraint Satisfaction: While baselines like IPO or CPO often overshot or were overly conservative regarding cost limits, APPO's cost curves converged smoothly and precisely to the target threshold.
  • Robustness: The results suggest that well-tuned first-order methods can be more robust to RL noise than complex second-order alternatives.

Conclusion

Augmented Proximal Policy Optimization (APPO) provides a stable, precise, and computationally efficient path for safe RL. By leveraging the Augmented Lagrangian framework, it eliminates the common pitfalls of oscillations and numerical instability found in previous methods. While future work remains in bridging the gap to real-world human-machine cooperation and further reducing hyperparameter sensitivity, APPO represents a significant step toward deploying RL in safety-critical environments.

Citation: Juntao Dai, Jiaming Ji, Long Yang, Qian Zheng, Gang Pan. "Augmented Proximal Policy Optimization for Safe Reinforcement Learning." Proceedings of the Thirty-Seventh AAAI Conference on Artificial Intelligence (AAAI-23).

Summary updated

BibTeX
@inproceedings{dai2023augmented,
  author = {Juntao Dai and Jiaming Ji and Long Yang and Qian Zheng and Gang Pan},
  title = {{Augmented Proximal Policy Optimization for Safe Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i6.25888},
}
Figure