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

Trust Region Policy Optimization

  • Problem Policy updates need a step that cannot lower the expected return, but the penalty coefficient suggested by the theory yields very small steps, and the exact objective is hard to optimize directly.
  • Method Maximizes a local surrogate of the expected return subject to an average KL constraint, using sampled Q-values from either single path or vine rollouts, a Fisher-matrix conjugate gradient direction and a line search.
  • Results Single path and vine variants solved all compared locomotion problems, and the vine variant reached 7732.5 on Q*bert in one run.

Why the step size is the difficulty

The study belongs to policy optimization, where three families of methods are usually distinguished: policy iteration, policy gradient methods, and derivative-free search over policy parameters. The question taken up here is narrower: when a stochastic policy is changed, how large may the change be so that the expected discounted return is guaranteed not to fall.

The starting identity writes the return of a new policy as the return of the old policy plus an advantage sum evaluated over the visitation frequencies of the new policy. Any new policy whose expected advantage is nonnegative at every state is guaranteed not to decrease the return, which is the classic property behind exact policy iteration.

The visitation frequencies depend on the new policy, so this exact expression is hard to optimize directly.

In the approximate setting, estimation and approximation error make it unavoidable that some states have negative expected advantage, so the exact guarantee no longer applies to what is actually optimized. Conservative policy iteration of Kakade and Langford gives explicit lower bounds on the improvement, but only for mixtures of the old policy and a greedy improvement, a policy class that is too restrictive for practical use.

A bound on improvement for general stochastic policies

The surrogate \(L_{\pi}(\pi')\) is defined as \(\eta(\pi)+\sum_s\rho_\pi(s)\sum_a \pi'(a|s)A_\pi(s,a)\), which keeps the visitation frequencies \(\rho_\pi\) of the old policy fixed. For a differentiable parameterized policy, this surrogate matches the true return to first order at the current parameters, so a sufficiently small step that improves the surrogate also improves the return, but it does not say how big the step may be.

The main theoretical step replaces the mixture weight \(\alpha\) by the total variation divergence between the old and new policies, \(\alpha = D^{max}_{TV}(\pi_{old},\pi_{new})\), where the maximum is taken over states. Total variation divergence is defined as half the sum of absolute differences of the probabilities, and with it the bound reads \(\eta(\pi_{new})\ge L_{\pi_{old}}(\pi_{new})-\frac{4\epsilon\gamma}{(1-\gamma)^2}\alpha^2\), with \(\epsilon=\max_{s,a}|A_{\pi}(s,a)|\).

Because total variation divergence squared is bounded by KL divergence, the same argument gives a bound with the maximum KL divergence over states, \(\eta(\pi')\ge L_{\pi}(\pi')-C\,D^{max}_{KL}(\pi,\pi')\), where \(C=\frac{4\epsilon\gamma}{(1-\gamma)^2}\). Maximizing this lower bound at each iteration, as in the approximate policy iteration scheme of Algorithm 1, makes the sequence of returns non-decreasing, since each surrogate touches the true return at the current policy.

This monotone guarantee assumes exact evaluation of the advantage values, which the scheme needs in order to be applied.

Turning the bound into a KL trust region

Maximizing the bound with the penalty coefficient \(C\) from the theory would produce very small steps, and a penalty weight is hard to choose robustly in practice. A trust region constraint lets the KL divergence between the new and old policy be bounded directly, so that large steps are allowed while the change is limited.

A constraint on the maximum KL over every state is hard to handle numerically because it contains a very large number of constraints. The method therefore uses the average KL over states drawn from the visitation distribution of the old policy, \(D^{\rho}_{KL}(\theta_1,\theta_2)=\mathbb{E}_{s\sim\rho}[D_{KL}(\pi_{\theta_1}(\cdot|s)\|\pi_{\theta_2}(\cdot|s))]\).

The resulting update maximizes \(L_{\theta_{old}}(\theta)\) subject to \(D^{\rho_{\theta_{old}}}_{KL}(\theta_{old},\theta)\le\delta\), so the constraint is on the average divergence rather than the per-state maximum.

The authors note that similar policy updates appeared in earlier work, and the average-KL form is the one used throughout the practical algorithm. The practical algorithm also constrains the averaged KL rather than the maximum, and it drops the advantage estimation error that the theory would otherwise carry.

Estimating the objective from samples

The sum over states is rewritten as an expectation scaled by \(1/(1-\gamma)\), the advantage is replaced by the Q-value (which changes the objective only by a constant), and the sum over actions becomes an importance sampling estimator under a sampling distribution \(q\). The resulting problem is maximize \(\mathbb{E}_{s\sim\rho_{\theta_{old}},a\sim q}[\frac{\pi_\theta(a|s)}{q(a|s)}Q_{\theta_{old}}(s,a)]\) subject to \(\mathbb{E}_{s\sim\rho_{\theta_{old}}}[D_{KL}(\pi_{\theta_{old}}(\cdot|s)\|\pi_\theta(\cdot|s))]\le\delta\).

The single path scheme runs the current policy from an initial state for a fixed number of steps, takes \(q\) to be \(\pi_{\theta_{old}}\), and computes each Q-value as the discounted sum of future rewards along that trajectory. The vine scheme first simulates trajectories, then picks a subset of N states as the rollout set, samples K actions from each of those states, and estimates each action's Q-value with a short rollout.

The choice of \(q\) differs by task: \(q=\pi_{\theta_i}\) worked well on the continuous locomotion problems, while the uniform distribution worked well on the discrete Atari games.

Common random numbers are used across the K rollouts from one state, so the differences between Q-value estimates have lower variance. For discrete actions the vine scheme sums over all actions, and for large or continuous action sets it uses a self-normalized importance sampling estimator, which removes the need for a baseline in the Q-values.

Given the same number of Q-value samples, the vine scheme gives a much lower-variance local objective estimate than the single path scheme, but it needs far more simulator calls. The vine scheme also requires the system to be restored to arbitrary states, while the single path scheme needs no state resets and can run directly on a physical system.

Solving the constrained update

Each iteration collects state-action pairs with the single path or vine procedure, averages over the samples to form the estimated objective and constraint, and then approximately solves the constrained problem for the new parameter vector. The approximate solution uses conjugate gradient followed by a line search, which costs only slightly more than computing the gradient itself.

The Fisher information matrix is estimated as the average of the second derivatives of the KL divergence, rather than as the covariance of per-sample score gradients. Because the analytic estimator integrates over the action at each state, it does not depend on the sampled action, and it avoids storing a dense Hessian or all policy gradients from a batch.

The authors report that its rate of policy improvement is similar to the empirical Fisher matrix in their experiments.

Conjugate gradient needs only matrix-vector products with this matrix, and a line search then shrinks the step until the surrogate improves and the KL constraint is satisfied.

Where TRPO sits among prior updates

The natural policy gradient follows from a linear approximation to the surrogate and a quadratic approximation to the KL constraint, with a step size treated as a fixed algorithm parameter. TRPO instead enforces the constraint at each update, and the authors argue that this difference matters on larger problems.

Using an \(\ell_2\) constraint or penalty in the same linearized problem gives the standard policy gradient update, and maximizing the unconstrained surrogate gives the policy iteration update. Relative entropy policy search constrains state-action marginals, whereas TRPO constrains the conditional action distributions, and TRPO avoids a costly nonlinear optimization in its inner loop.

Levine and Abbeel also use a KL constraint, but for keeping the policy in regions where a learned dynamics model is valid, while this work does not estimate the dynamics.

Locomotion: swimmer, hopper and walker

The robots are simulated in MuJoCo, with generalized positions and velocities as states and joint torques as controls. The swimmer has a 10-dimensional state space, the hopper 12 dimensions and the walker 18, and the experiments use \(\delta=0.01\) throughout.

Compared methods are single path and vine TRPO, CEM, CMA, the natural gradient with a fixed penalty coefficient, the empirical FIM variant, and the max KL variant. For the natural gradient, the step size was swept in factors of three and the best value by final performance was used.

Learning curves average the total reward over five runs of each algorithm, and single path and vine TRPO solved all of the compared problems and produced the best solutions in these curves. The authors read this as evidence that constraining the KL divergence chooses step sizes more robustly than a fixed penalty.

CEM and CMA are derivative-free and performed poorly on the larger problems, and the authors attribute this to their sample complexity scaling unfavorably with the number of parameters.

Average versus maximum KL on cart-pole

The cart-pole balancing problem uses a linear policy with six parameters, and it is the one case where the max KL variant was tractable.

The max KL variant learned more slowly than the final TRPO method, which the authors attribute to the more restrictive form of its constraint. Overall the authors conclude that the average KL constraint has a similar effect to the maximum KL constraint.

Atari games from raw screen images

Seven Atari games were used, which the experiments take from the Arcade Learning Environment and from earlier work, and the games include delayed rewards, complex behavior sequences and non-stationary image statistics.

The 500 iterations took about 30 hours on a 16-core computer.

Table 1 lists single path and vine TRPO beside human scores, deep Q-learning and UCC-I, with each TRPO variant run once per task. The vine variant reached 7732.5 on Q*bert and the single path variant reached 1425.2 on Beam Rider, both from one run. UCC-I reports 20025 on Q*bert in the same table, so TRPO did not lead on every game.

The authors state that TRPO outperformed the prior methods on only some of the games but consistently achieved reasonable scores, and that it was not designed specifically for this task.

Limits of the evidence

The vine method needs resettable states, so it fits simulation better than a physical system, while the single path method does not need resets. The guarantee rests on theory that omits the error in estimating the advantage function, which the authors say would also arise in this setting.

Each Atari run was done once per task, and the authors could not obtain error statistics because of time constraints, while performance varies across random initializations. Locomotion curves are averaged over five runs, so the two domains do not rest on the same number of runs. The natural gradient step size was tuned by a sweep, whereas TRPO used \(\delta=0.01\) throughout, so the tuning effort differs between the compared methods.

Combining the method with model learning, or using recurrent policies with hidden state, is named as future work and was not tested.

Paper info

Authors
John Schulman, Sergey Levine, Philipp Moritz, Michael I. Jordan, Pieter Abbeel
Venue
arXiv · Preprint
First published
2015-2-19
Added
2026-10-20
Updated
2017-4-20
Version
v5
arXiv
1502.05477
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, Sergey Levine, Philipp Moritz, Michael I. Jordan, Pieter Abbeel (2015). Trust Region Policy Optimization. arXiv:1502.05477v5. https://arxiv.org/abs/1502.05477v5

BibTeX
@misc{schulman2015trust,
  title = {{Trust Region Policy Optimization}},
  author = {John Schulman and Sergey Levine and Philipp Moritz and Michael I. Jordan and Pieter Abbeel},
  year = {2015},
  eprint = {1502.05477},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1502.05477v5}
}

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