标题:Proximal Policy Optimization Algorithms

作者:John Schulman、Filip Wolski、Prafulla Dhariwal、Alex Radford、Oleg Klimov(OpenAI)

提交:2017-07-20

论文下载地址:

链接:https://pan.quark.cn/s/d979833bc663

提取码:PC2d

一句话:

提出PPO,用裁剪替代目标(clip)限制策略更新幅度,避免步长过大导致策略崩溃,在保留TRPO稳定特性的同时,大幅简化实现,是工业界最常用的在线强化学习基准算法。

原文摘要

We propose a new family of policy gradient methods for reinforcement learning, which alternate between sampling data through interaction with the environment, and optimizing a surrogate objective function using stochastic gradient ascent. In contrast to standard policy gradient methods, which perform one gradient update per data sample, and in contrast to trust region policy optimization (TRPO), which involves complex constraints, our methods have the benefit of being simpler to implement, more general, and having better sample complexity. The proposed algorithms, which we call proximal policy optimization (PPO), use a clipped surrogate objective that forms a lower bound on the policy objective. We also present a variant that uses adaptive KL penalty, similar to TRPO but with a simpler implementation. We test PPO on a set of benchmark tasks, including simulated robotic locomotion and Atari game playing, and show that PPO outperforms other online policy gradient methods, and overall strikes a favorable balance between sample complexity, simplicity, and wall-time.

摘要中文翻译

本文提出一类新的强化学习策略梯度方法:交替执行与环境交互采样数据、采用随机梯度上升优化替代目标函数。传统策略梯度每个样本仅做一次梯度更新;信赖域策略优化(TRPO)则带有复杂约束。与之相比,本文方法更易实现、通用性更强、采样效率更优。我们将该算法命名为近端策略优化(PPO),使用裁剪替代目标函数,构造策略目标的下界。同时给出自适应KL惩罚版本,思路类似TRPO,但实现更简单。我们在一组基准任务上测试PPO,包含仿真机器人运动与Atari游戏,实验表明PPO优于其他在线策略梯度算法,在采样效率、实现复杂度、实际运行耗时三者之间取得很好的平衡。


核心贡献

  1. Clip 裁剪目标(PPO-Clip,最常用版本) 对新旧策略比值做上下限裁剪,强制每次策略更新不能偏离旧策略太远,不用TRPO复杂的共轭梯度+信赖域约束,代码简洁。

  2. 自适应KL惩罚版本(PPO-Penalty) 另一条分支,通过KL散度约束新旧策略差异,自动调整惩罚系数,和TRPO思想同源,但实现更轻量化。

  3. 多轮重复利用采样数据 同一份轨迹样本可以多次迭代更新策略,显著提升样本利用率,这是PPO相比原版REINFORCE、A2C的一大优势。

  4. 易用且稳定的基线 在连续控制(机器人)、离散Atari游戏统一有效,调参门槛低,后续大量RL、LLM对齐(RLHF)都基于PPO。

PPO是RLHF中人类反馈强化学习的核心算法,大模型对齐阶段广泛使用。