papers / ppo2017
Next task →
Research Papers/Deep RL and RLHF/Proximal Policy Optimization Algorithms
Deep RL and RLHF · #4 · seminal

Proximal Policy Optimization Algorithms

John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, Oleg Klimov · 2017 · arXiv

1. Research problem

TRPO's constrained second-order optimization is hard to implement and incompatible with parameter sharing and many architectures.

2. Motivation

The authors wanted a first-order method that obtains trust-region-like stability with a simple clipped objective.

3. Previous approaches

TRPO solved a KL-constrained surrogate with conjugate gradients; vanilla policy gradient was simple but unstable and sample-inefficient due to single-use batches.

4. Core contribution

Introduced a clipped surrogate objective that penalizes large policy changes, allowing multiple epochs of minibatch SGD on each rollout without destabilizing training.

5. Mathematical formulation

L = E[min(r_t(theta)*A_t, clip(r_t(theta), 1-eps, 1+eps)*A_t)] with r_t = pi_theta/pi_old, plus a value loss and entropy bonus.

6. Methodology

Collect a batch of on-policy rollouts, compute generalized advantage estimates, and take several epochs of minibatch gradient ascent on the clipped objective.

7. Architecture

Policy and value networks, often sharing a backbone; applicable to discrete and continuous actions.

8. Experimental setup

MuJoCo continuous control, Atari games, and humanoid locomotion benchmarks.

9. Datasets

MuJoCo suite, Atari 2600.

10. Results

Matched or beat TRPO on several benchmarks with substantially simpler implementation and better wall-clock performance; later became the default RL step in RLHF.

11. Limitations

On-policy sample inefficiency, sensitivity to clip range and advantage normalization, and can still suffer reward-model exploitation in RLHF settings.

12. Critical analysis

Its simplicity enabled widespread adoption in both RL research and language-model alignment, even though the theoretical justification is weaker than TRPO's.

13. Implementation tasks

  • 1.Implement PPO with GAE and a clipped surrogate on a continuous-control task.
  • 2.Ablate the clip range and the number of epochs per rollout.
  • 3.Compare sample efficiency and stability against A2C and TRPO.

14. Follow-up work

  • 1.Trust Region Policy Optimization (Schulman et al., 2015)
  • 2.Training language models to follow instructions with human feedback (Ouyang et al., 2022)

15. Open research questions

  • 1.Why does reusing the same rollout for multiple epochs not destabilize PPO?
  • 2.How should PPO be adapted for very large language models and preference rewards?
16. Reproduce it. Record the hypothesis, configuration, dataset, metrics and discrepancies in the Experiment Tracker. A reproduction is not complete until you have run the experiments, performed at least one ablation and documented the differences from the reported numbers.