Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Proximal Policy Optimization Algorithms

  • Problem Re-running policy gradient updates on one batch can produce destructively large policy changes, while TRPO's constrained update is complicated and does not combine with dropout or parameters shared between the policy and value function.
  • Method Maximizes a clipped probability-ratio surrogate over several minibatch epochs on each batch of collected data, using only first-order optimization.
  • Results Clipping with epsilon 0.2 reached an avg. normalized score of 0.82 on seven MuJoCo tasks, against -0.39 with no clipping or penalty.

Why reusing one batch is risky

Policy gradient methods estimate the gradient of expected return from sampled data and feed that estimate to stochastic gradient ascent. Reusing a batch for several passes is attractive because collecting data is the costly step, but the plain loss does not justify it. The authors report that this often leads to destructively large updates, and the related runs they did not show were similar or worse than the unclipped setting.

Trust region policy optimization handles the problem by maximizing the surrogate under a KL constraint on the policy update. Its constrained update is relatively complicated, and it does not combine with dropout or with parameters shared between the policy and value function. A penalty is the natural alternative, but a single penalty coefficient β is hard to choose across problems, or even within one problem as its characteristics change during learning.

The authors' experiments show that a fixed β optimized with SGD is not enough, so further modifications are needed.

A clipped ratio as the safeguard

The method starts from the probability ratio \(r_t(\theta)=\pi_\theta(a_t|s_t)/\pi_{\theta_{old}}(a_t|s_t)\), which equals 1 at the old parameters \(\theta_{old}\). Conservative policy iteration gives the unconstrained surrogate \(L^{CPI}(\theta)=\hat{E}_t[r_t(\theta)\hat{A}_t]\), and the authors note that maximizing it without a constraint leads to an excessively large update.

The clipped objective keeps this first term and is written \[L^{CLIP}(\theta)=\hat{E}_t\left[\min\left(r_t(\theta)\hat{A}_t,\ \mathrm{clip}(r_t(\theta),1-\epsilon,1+\epsilon)\hat{A}_t\right)\right]\] The example setting is \(\epsilon = 0.2\).

The clipped term removes any incentive to push the ratio outside \([1-\epsilon,1+\epsilon]\). Taking the minimum of the clipped and unclipped terms makes the result a lower bound on the unclipped objective: a change in the ratio is ignored when it would raise the objective and kept when it would lower it. The clip acts on the side that matters: the ratio is capped at \(1+\epsilon\) when the advantage is positive and at \(1-\epsilon\) when it is negative.

Near \(\theta_{old}\), where r equals 1, \(L^{CLIP}\) agrees with \(L^{CPI}\) to first order, and the two diverge as θ moves away.

The authors' interpolation test on the first policy update for Hopper-v1 makes this concrete, moving from the old parameters toward the updated ones. The authors read this as \(L^{CLIP}\) being a lower bound on \(L^{CPI}\), with a penalty for an overly large policy update.

The adaptive KL penalty branch

The KL penalty is an alternative to clipping, or can be used alongside it, and its coefficient adapts toward a target KL value \(d_{targ}\) on each update. Each update first runs several epochs of minibatch SGD on \[L^{KLPEN}(\theta)=\hat{E}_t\left[\frac{\pi_\theta(a_t|s_t)}{\pi_{\theta_{old}}(a_t|s_t)}\hat{A}_t-\beta\,\mathrm{KL}[\pi_{\theta_{old}}(\cdot|s_t),\pi_\theta(\cdot|s_t)]\right]\] It then computes the average KL divergence \(d\) of the update, halves β when \(d<d_{targ}/1.5\), and doubles β when \(d>d_{targ}\times 1.5\).

The starting value of β matters little in practice, because the adaptation corrects it quickly. In the authors' experiments this penalty variant performed worse than the clipped surrogate objective, and it is included as an important baseline.

From surrogate loss to training loop

The change to a standard policy gradient implementation is small: one builds \(L^{CLIP}\) or \(L^{KLPEN}\) in place of the plain \(L^{PG}\) and takes several gradient ascent steps on it. Advantage estimators usually rely on a learned state-value function \(V(s)\), as in generalized advantage estimation or the finite-horizon estimators of [Mni+16].

The continuous-control experiments keep the policy and value function separate and use no entropy bonus, so this combined objective is not exercised there.

For fixed-length segments, each of N parallel actors runs \(\pi_{\theta_{old}}\) for T timesteps, and the surrogate is built on the resulting NT samples. That surrogate is then optimized with minibatch SGD, or more often Adam, for K epochs, with a minibatch size M no larger than NT. The advantage estimate is a truncated generalized advantage estimator, \(\hat{A}_t=\delta_t+(\gamma\lambda)\delta_{t+1}+\cdots\), with \(\delta_t=r_t+\gamma V(s_{t+1})-V(s_t)\) and the sum cut at timestep T.

With λ equal to 1 this reduces to the finite-horizon estimator of Equation (10).

Which surrogate variant works best

The comparison uses seven simulated robotics tasks from OpenAI Gym that run on the MuJoCo physics engine, with one million timesteps of training per task. Each variant had its own search over hyperparameters: ϵ for clipping, and β with d_targ for the KL variants. Each environment got 3 random seeds, and each run was scored by the average total reward of its last 100 episodes; scores were shifted and scaled per environment so a random policy scores 0 and the best result scores 1, then averaged over 21 runs.

With no clipping or penalty the average normalized score is -0.39, which the authors attribute to the half cheetah task, where this setting falls below the random policy. Clipping with ϵ = 0.2 reached 0.82, against 0.76 for ϵ = 0.1 and 0.70 for ϵ = 0.3. Adaptive KL variants reached between 0.68 and 0.74, and fixed KL variants with β of 0.3, 1, 3 and 10 reached between 0.62 and 0.72.

Every KL variant stays below the best clipped setting in this table, and β was initialized at 1.

Each figure value is an average over 21 runs, and the table gives no per-task spread, so the ranking cannot be read as a per-environment ordering.

Continuous control against other methods

PPO with the clipped objective is compared with TRPO, the cross-entropy method, vanilla policy gradient with an adaptive stepsize, A2C and A2C with a trust region, all as tuned implementations. The vanilla policy gradient variant adjusts its Adam stepsize after each batch, using the KL divergence between the old and the updated policy. A2C is the synchronous version of A3C, which the authors found to perform the same as or better than the asynchronous version.

PPO uses ϵ = 0.2 and the hyperparameters of the earlier surrogate comparison. Across the learning curves over one million timesteps, PPO outperforms the previous methods on almost all of the continuous control environments, though not on all of them.

Humanoid running and steering

PPO is trained on three Roboschool 3D humanoid tasks: RoboschoolHumanoid, RoboschoolHumanoidFlagrun and RoboschoolHumanoidFlagrunHarder. Heess et al. [Hee+17], in concurrent work, used the adaptive KL variant to learn locomotion for 3D robots.

The learning curves cover 50M timesteps for the forward-locomotion task and 100M timesteps for the two flagrun tasks. Results for these tasks are shown only as learning curves. Still frames from a policy trained on RoboschoolHumanoidFlagrun show the robot running toward a target in the first six frames, then turning and running toward the new target after the position changes.

Atari results against A2C and ACER

PPO is compared with A2C and ACER on the Arcade Learning Environment, and all three use the policy network architecture of the cited A2C work. A2C and ACER were tuned for this benchmark, and PPO's hyperparameters are listed separately. Two metrics are used: average reward per episode over the whole training period, which favors fast learning, and average reward per episode over the last 100 episodes, which favors final performance.

Under the last-100-episode metric, ACER wins 28 games, PPO 19 and A2C 1, with one tie. PPO leads on learning speed in the first metric, while ACER leads on final performance in the second.

The authors report that PPO has better sample complexity than A2C, and performs similarly to ACER while being much simpler.

Limits of the reported evidence

The continuous-control surrogate comparison covers seven MuJoCo tasks at one million timesteps each, with 3 random seeds per environment. The table reports only the averaged normalized score for each setting. The continuous comparison rests on learning curves rather than a table of final scores.

The Atari comparison uses three trials per algorithm and reports counts of games won, and no statistical test is reported. The humanoid tasks appear only as learning curves and still frames. The continuous-control runs keep policy and value parameters separate with no entropy bonus, so the shared-parameter objective is not tested there.

The authors state that taking several steps on the plain policy gradient loss is not well justified and often yields destructively large updates. A fixed KL penalty coefficient is hard to choose across problems, and the 1.5 and 2 factors of the adaptive rule are heuristic. TRPO's incompatibility with dropout is named as a motivation, and the reported experiments do not test PPO with dropout.

Paper info

Authors
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, Oleg Klimov
Venue
arXiv · Preprint
First published
2017-7-20
Added
2026-10-20
Updated
2017-8-28
Version
v2
arXiv
1707.06347
Category
cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, Oleg Klimov (2017). Proximal Policy Optimization Algorithms. arXiv:1707.06347v2. https://arxiv.org/abs/1707.06347v2

BibTeX
@misc{schulman2017proximal,
  title = {{Proximal Policy Optimization Algorithms}},
  author = {John Schulman and Filip Wolski and Prafulla Dhariwal and Alec Radford and Oleg Klimov},
  year = {2017},
  eprint = {1707.06347},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.06347v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up