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

Generative Adversarial Imitation Learning

Imitation learning trains a policy directly from expert demos, skipping the cost function

  • Problem Learning from expert demonstrations alone is hard. Behavioral cloning needs a lot of data, and inverse reinforcement learning is slow because it runs reinforcement learning in an inner loop to recover a cost function.
  • Method GAIL trains a policy directly from expert trajectories, without recovering a cost function. A discriminator learns to tell learner state-action pairs from expert ones, and TRPO updates the policy using the discriminator's output as cost.
  • Results The method reaches at least 70% of expert performance on most MuJoCo tasks at almost every dataset size tested. On Humanoid it matches expert performance at all tested dataset sizes.

Learning from demonstrations without further expert access

The setting is imitation from expert demonstrations alone. The learner receives sampled expert trajectories, cannot request more during training, and gets no reinforcement signal of any kind. Under these constraints there are two standard options, and each has a known weakness. Behavioral cloning treats imitation as supervised learning over expert state-action pairs.

It works only with large amounts of data, because errors compound as the learner's state distribution drifts away from the expert's, which is the covariate shift problem. Inverse reinforcement learning instead recovers a cost function under which the expert is optimal. Because that cost ranks whole trajectories, it avoids the compounding of single-step errors.

IRL carries its own cost. Many algorithms run reinforcement learning inside an inner loop, and the cost they recover does not say how to act. The authors therefore ask whether the learner can skip the cost function and obtain a policy directly from the data, while staying model-free and never querying the expert.

What IRL followed by RL returns

The starting point is maximum causal entropy IRL. It selects a cost that gives the expert low cost and other policies high cost, and RL on that cost returns a high-entropy policy. The RL step is written as follows. \[ \mathrm{RL}(c)=\arg\min_{\pi\in\Pi} -H(\pi)+\mathbb{E}_\pi[c(s,a)] \] Here H(π) is the γ-discounted causal entropy of the policy, and the expert's expected cost is estimated from sampled trajectories.

Taking the cost class to be every function on the state-action space makes IRL as expressive as possible, but a finite dataset then lets it overfit. A closed, proper, convex regularizer ψ is therefore added to the IRL objective. Convexity is required only on the whole space of cost functions, not on a small parameter family, and the authors regard this as a mild requirement that the regularizers of Finn et al.

already satisfy. The regularized IRL step picks the cost that maximizes minus ψ(c) plus the entropy-regularized value of the best policy, minus the expert's expected cost.

To work with policies as convex objects, each policy π is mapped to its occupancy measure ρπ(s,a)=π(a|s) times the sum over t of γ^t P(s_t=s|π), which is the discounted distribution of state-action pairs the policy visits. The valid occupancy measures form a feasible set cut out by affine constraints, and each valid occupancy measure corresponds to exactly one policy, namely its normalized form.

Combining these pieces, the policy that RL returns after ψ-regularized IRL minimizes negative causal entropy plus ψ* evaluated at the difference between the learner's and the expert's occupancy measures. \[ \mathrm{RL}\circ\mathrm{IRL}_\psi(\pi_E)=\arg\min_{\pi\in\Pi} -H(\pi)+\psi^*(\rho_\pi-\rho_{\pi_E}) \] Here f* denotes the convex conjugate, defined as the supremum over y of x transposed y minus f(y).

The argument rests on the optimal cost and policy forming a saddle point. IRL finds one coordinate of it, and the following RL step recovers the other.

When ψ is a constant function, the policy recovered this way has an occupancy measure exactly equal to the expert's. The proof treats IRL as the dual of an occupancy measure matching problem, with the costs acting as dual variables. The causal entropy, written as a function of occupancy measures, is strictly concave, and strong duality lets the primal optimum be recovered from the dual optimum.

Seen this way, the induced policy is the primal optimum, so IRL becomes a procedure for inducing a policy that matches the expert's occupancy measure.

Why restricted cost classes limit apprenticeship learning

Exact occupancy matching is impractical in large environments. A finite set of expert samples leaves most state-action values at zero, and a parameterized policy would face one constraint per state-action pair. The authors instead relax the problem into minimizing the regularized divergence ψ*(ρπ−ρE) minus H(π), so that differences between occupancy measures are penalized smoothly.

Apprenticeship learning looks for a policy that performs better than the expert across a class of cost functions C, by minimizing the largest gap between the learner's and the expert's expected cost over that class. The classic versions use convex sets built from basis functions. Abbeel and Ng use a 2-norm ball of linear combinations, which leads to feature expectation matching, and Syed et al.

use a convex combination set, which leads to MWAL and LPAL.

With the indicator δC of the class, the apprenticeship objective becomes the convex conjugate of δC at the occupancy difference, so it is a special case of the same framework. Entropy-regularized apprenticeship learning is then RL following IRL with cost regularizer δC, which forces the recovered cost into C. Scaling C by a constant α and letting α grow recovers the original objective.

Apprenticeship learning generally fails to recover expert-like policies when C is too restrictive, and the linear subspaces used by these methods often are. Unless a cost in C explains the expert well, matching the expert across C says little about matching the expert itself, because the expert's behavior has to be encoded inside C.

The same methods do scale. Ho et al. derive a policy gradient for the apprenticeship objective in which the cost is refit at each iteration, and the policy takes a TRPO step. The TRPO step limits how far the new policy moves in KL divergence from the old one, which keeps noise in the gradient estimate from destabilizing training. Ho et al.

trained large neural policies in environments with hundreds of observation dimensions, but only with linear cost classes, which restricts them to expert behavior those classes can describe.

A regularizer built from expert samples

The constant regularizer gives exact occupancy matching but cannot be solved in large environments, while indicator regularizers for linear cost classes are tractable but cannot match exactly without careful tuning. The new regularizer ψGA is designed to keep the strengths of both. ψGA is defined as the expert average of g(c(s,a)) when the cost is negative, and as +∞ otherwise.

\[ \psi_{GA}(c)=\begin{cases}\mathbb{E}_{\pi_E}[g(c(s,a))] & c<0\\ +\infty & \text{otherwise}\end{cases} \] Here g(x)=−x−log(1−e^x) for x<0, and +∞ otherwise. A cost that is negative on expert pairs is penalized lightly. A cost that is close to zero on expert pairs is penalized heavily, because zero is the upper bound on costs that are feasible for ψGA.

Because ψGA is an average over expert data, it can adjust to any expert dataset, whereas the indicator regularizers are fixed. The indicator regularizers also confine costs to the span of finitely many basis functions. ψGA places no such restriction and allows any cost function that is negative everywhere.

The conjugate of ψGA has a classifier form, with a maximum over discriminators D that map state-action pairs into (0,1). \[ \psi^*_{GA}(\rho_\pi-\rho_{\pi_E})=\max_{D\in(0,1)^{S\times A}} \mathbb{E}_\pi[\log D(s,a)]+\mathbb{E}_{\pi_E}[\log(1-D(s,a))] \] This maximum is the optimal negative log loss for classifying a state-action pair as coming from the learner or from the expert.

Up to a constant shift, it equals the Jensen-Shannon divergence \(D_{JS}(\rho_\pi,\rho_{\pi_E}) = D_{KL}(\rho_\pi\|(\rho_\pi+\rho_{\pi_E})/2)+D_{KL}(\rho_{\pi_E}\|(\rho_\pi+\rho_{\pi_E})/2)\).

Treating causal entropy as a policy regularizer with weight λ≥0 gives the objective of minimizing ψ*GA(ρπ−ρπE) minus λH(π), which equals the Jensen-Shannon divergence minus λH(π). Minimizing this objective finds a policy whose occupancy measure is as close as possible to the expert's in Jensen-Shannon divergence. The authors argue that, since this is a true metric between occupancy measures, the method can imitate expert policies exactly, unlike the linear apprenticeship methods.

The structure mirrors generative adversarial networks, in which a generator is trained to fool a discriminator. Here the learner's occupancy measure plays the role of the generated distribution and the expert's occupancy measure plays the role of the true data distribution.

Turning the objective into a training loop

In practice the method looks for a saddle point of the expression E_π[log D(s,a)] + E_πE[log(1−D(s,a))] minus λH(π). The policy is a parameterized network π_θ, and the discriminator is a network D_w mapping state-action pairs into (0,1). The two players update in turns. An Adam gradient step increases the expression over the discriminator weights, and a TRPO step decreases it over the policy weights.

The discriminator's output works as a local cost. Taking a policy step that lowers expected cost under c(s,a)=log D(s,a) moves the policy toward regions of state-action space that the discriminator labels as expert-like. The TRPO step prevents the policy from changing too much because of noise in the policy gradient. The causal entropy gradient is estimated separately in an appendix, so λ enters the policy update directly.

Each iteration samples learner trajectories from the current policy and updates the discriminator with a gradient estimated from those learner pairs and the fixed expert pairs. The policy then takes one step using the TRPO rule with cost log of the updated discriminator, applied as a KL-constrained natural gradient step with the entropy gradient term weighted by λ.

Imitation across expert dataset sizes

The evaluation covers 9 physics-based control tasks, from classic control problems (cartpole, acrobot and mountain car) to a 3D humanoid locomotion task, with MuJoCo used for the non-classic environments. Expert policies were first trained with TRPO on each task's true cost. Datasets of varying trajectory counts were then sampled from them, with each trajectory consisting of about 50 state-action pairs.

Behavioral cloning splits the expert data into 70% training and 30% validation, trains with Adam on minibatches of 128 examples, and stops once validation error stops decreasing. Feature expectation matching uses the linear cost class of Abbeel and Ng, and game-theoretic apprenticeship learning uses the convex cost class of Syed and Schapire.

Both are run with the algorithm of Ho et al. All methods use policies with two hidden layers of 100 units and tanh nonlinearities, the discriminator uses the same architecture, and every network is randomly initialized at the start of each trial. The three non-behavioral-cloning methods receive the same amount of environment interaction on each task.

On the classic control tasks, behavioral cloning was less data efficient than feature expectation matching and game-theoretic apprenticeship learning, which for the most part produced near-expert policies across a wide range of dataset sizes. On cartpole, acrobot and mountain car, the generative adversarial method produced better policies than behavioral cloning, feature expectation matching and game-theoretic apprenticeship learning in the reported comparisons.

On the other MuJoCo environments, the method almost always reached at least 70% of expert performance across the dataset sizes tested, and it nearly always beat all the baselines. On Ant, feature expectation matching and game-theoretic apprenticeship learning produced policies consistently worse than a policy choosing actions uniformly at random.

Behavioral cloning reached satisfactory performance with enough data on HalfCheetah, Hopper, Walker and Ant.

On Humanoid, behavioral cloning stayed below 60% of expert performance, while the method achieved exact expert performance at every tested dataset size, which were 80, 160 and 240 trajectories.

Reacher and the causal entropy weight

Reacher is the exception where behavioral cloning was more sample efficient than the generative adversarial method. The authors varied the causal entropy weight λ on Reacher, comparing settings of λ equal to 0, 10−3 and 10−2 against behavioral cloning.

In the 4-trajectory setting, moving λ from 0 to 10−3 improved the method. The authors report that this improvement is statistically significant over training reruns under a one-sided Wilcoxon rank-sum test with p = .05. No causal entropy regularization was used on any other task.

Limitations

The method is not particularly sample efficient in terms of environment interaction during training. Estimating the imitation objective gradient needs a number of samples comparable to what TRPO needs to train the expert from reinforcement signals. Being model-free, it generally needs more environment interaction than model-based methods.

Guided cost learning inherits sample efficiency from guided policy search, but also inherits a dependence on approximately linear time-varying dynamics.

The authors expect that initializing policy parameters with behavioral cloning would speed up learning, since that step needs no environment interaction. The paper does not report an experiment with this initialization. The method explores on its own rather than asking the expert for actions, which DAgger can do. The authors believe a method that combines environment models with expert interaction would do better on sample complexity, but this belief is not tested here.

Behavioral cloning is better on Reacher, and the entropy improvement there is tested only at the 4-trajectory setting with a single significance test. The figures show results only at the dataset sizes listed for each task, so behavior between those sizes is not reported.

Paper info

Authors
Jonathan Ho, Stefano Ermon
Venue
arXiv · Preprint
First published
2016-6-10
Added
2026-11-6
Updated
2016-6-10
Version
v1
arXiv
1606.03476
Category
cs.LG · cs.AI
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

Jonathan Ho, Stefano Ermon (2016). Generative Adversarial Imitation Learning. arXiv:1606.03476v1. https://arxiv.org/abs/1606.03476v1

BibTeX
@misc{ho2016generative,
  title = {{Generative Adversarial Imitation Learning}},
  author = {Jonathan Ho and Stefano Ermon},
  year = {2016},
  eprint = {1606.03476},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.03476v1}
}

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