Generative Adversarial Imitation Learning

Jonathan HoStefano Ermon

article2016NeurIPS3,788 citations

Proposes a model-free imitation learning framework that bypasses the computational bottleneck of inverse reinforcement learning by directly matching expert state-action distributions using generative adversarial training.

Listen

The paper addresses the challenge of teaching an agent to perform complex tasks by observing expert demonstrations alone, without further queries to the expert or any reward signals. Standard approaches either copy actions directly from the data, which fails when errors compound in large state spaces, or recover an implicit reward function first through inverse reinforcement learning and then optimize a policy, which incurs repeated expensive reinforcement-learning steps inside the training loop. Both limitations become acute in high-dimensional continuous control problems such as humanoid locomotion.

The work therefore sets out to derive and test a method that directly produces a policy whose state-action distribution closely matches the expert’s, while remaining practical for large environments and arbitrary neural-network policies.

The authors first characterize the policy recovered by regularized inverse reinforcement learning as the solution to an occupancy-measure matching problem. They then instantiate this characterization with a new regularizer whose dual corresponds to the Jensen-Shannon divergence between the learner’s and expert’s state-action distributions. The resulting algorithm alternates between training a discriminator network to distinguish expert trajectories from those generated by the current policy and updating the policy with a trust-region policy-optimization step that minimizes the discriminator’s output. Experiments compare the method against behavioral cloning and two linear apprenticeship-learning baselines on nine physics-based tasks, using expert datasets that range from one to several hundred trajectories.

Across the majority of tasks the new algorithm reaches 70100 percent of expert performance with far fewer demonstrations than the baselines require; on the 376-dimensional humanoid task it matches expert returns exactly for every dataset size tested, while behavioral cloning stays below 60 percent. The performance gap is largest on the highest-dimensional problems, where the competing methods either collapse to random behavior or need substantially more data.

These results indicate that imitation learning can be made both sample-efficient in expert data and computationally tractable without hand-crafted features or inner-loop reinforcement learning. Consequently, the approach lowers the barrier to deploying imitation in settings where expert interaction is costly or unsafe and where reward engineering is difficult.

Further gains in environment-sample efficiency are likely if the policy is first pre-trained by behavioral cloning before adversarial fine-tuning; combining the method with learned dynamics models and limited expert queries during training would address the remaining interaction cost. The main limitations are that the algorithm remains model-free and therefore interaction-heavy, and that all reported results come from simulated MuJoCo environments whose dynamics are fully known during training.

Cover for Generative Adversarial Imitation Learning

Abstract

Consider learning a policy from example expert behavior, without interaction with the expert or access to reinforcement signal. One approach is to recover the expert's cost function with inverse reinforcement learning, then extract a policy from that cost function with reinforcement learning. This approach is indirect and can be slow. We propose a new general framework for directly extracting a policy from data, as if it were obtained by reinforcement learning following inverse reinforcement learning. We show that a certain instantiation of our framework draws an analogy between imitation learning and generative adversarial networks, from which we derive a model-free imitation learning algorithm that obtains significant performance gains over existing model-free methods in imitating complex behaviors in large, high-dimensional environments.

Table of Contents

  • 1 Introduction
  • 2 Background
  • 3 Characterizing the induced optimal policy
  • 4 Practical occupancy measure matching
  • 5 Generative adversarial imitation learning
  • 6 Experiments
  • 7 Discussion and outlook
  • Acknowledgments
  • References
  • A Proofs
  • A.1 Proofs for Section 3
  • A.2 Proofs for Section 5
  • B Environments and detailed results

Knowls

  1. Knowl 1 — Generative Adversarial Imitation Learning Algorithm

    algorithm

    Generative Adversarial Imitation Learning (GAIL) directly learns a parameterized policy πθ\pi_\theta from expert demonstration trajectories by finding a saddle point of a discriminator-guided objective, bypassing intermediate inverse reinforcement learning cost reconstruction.

    The algorithm alternates between training a discriminator network Dw:S×A(0,1)D_w: \mathcal{S} \times \mathcal{A} \to (0, 1) parameterized by ww using Adam to distinguish generated state-action pairs from expert state-action pairs, and updating policy parameters θ\theta using Trust Region Policy Optimization (TRPO) with surrogate cost function c(s,a)=log(Dw(s,a))c(s, a) = \log(D_w(s, a)).

    Input: Expert trajectories τEπE\tau_E \sim \pi_E, initial policy parameters θ0\theta_0, initial discriminator parameters w0w_0, entropy regularizer weight λ0\lambda \ge 0
    for i=0,1,2,i = 0, 1, 2, \dots do
        Sample trajectories τiπθi\tau_i \sim \pi_{\theta_i}
        Compute discriminator gradient gwg_w:
            gw=E^τi[wlog(Dw(s,a))]+E^τE[wlog(1Dw(s,a))]g_w = \hat{\mathbb{E}}_{\tau_i}[\nabla_w \log(D_w(s, a))] + \hat{\mathbb{E}}_{\tau_E}[\nabla_w \log(1 - D_w(s, a))]
        Update discriminator parameters wi+1w_{i+1} from wiw_i using an Adam step on gwg_w
        Compute policy gradient gθg_\theta using surrogate cost c(s,a)=log(Dwi+1(s,a))c(s,a) = \log(D_{w_{i+1}}(s, a)):
            gθ=E^τi[θlogπθ(as)Q(s,a)]λθH(πθ)g_\theta = \hat{\mathbb{E}}_{\tau_i}[\nabla_\theta \log \pi_\theta(a|s) Q(s, a)] - \lambda \nabla_\theta H(\pi_\theta)
            where Q(sˉ,aˉ)=E^τi[t=0γtlog(Dwi+1(st,at))s0=sˉ,a0=aˉ]Q(\bar{s}, \bar{a}) = \hat{\mathbb{E}}_{\tau_i}[\sum_{t=0}^\infty \gamma^t \log(D_{w_{i+1}}(s_t, a_t)) \mid s_0 = \bar{s}, a_0 = \bar{a}]
        Update policy parameters θi+1\theta_{i+1} from θi\theta_i using a TRPO step (KL-constrained natural gradient step) with gθg_\theta
    end for

    Implementation specifications:

    • Policy πθ\pi_\theta and discriminator DwD_w are parameterised as multi-layer perceptrons with two hidden layers of 100 units each and tanh\tanh activations.
    • Value functions share the same neural network architecture as the policy and use Generalized Advantage Estimation (GAE) with γ=0.995\gamma = 0.995 and λGAE=0.97\lambda_{\text{GAE}} = 0.97.
    • In most continuous control tasks, causal entropy weight is set to λ=0\lambda = 0, with λ=103\lambda = 10^{-3} or 10210^{-2} used when entropy regularization is needed.
  2. Knowl 2 — Induced Policy as Convex Conjugate of Cost Regularizer in Maximum Causal Entropy IRL

    theoretical result

    In a Markov Decision Process with state space S\mathcal{S}, action space A\mathcal{A}, discount factor γ(0,1)\gamma \in (0, 1), and transition distribution P(ss,a)P(s' \mid s, a), let Π\Pi be the set of stationary stochastic policies, and let D={ρπ:πΠ}\mathcal{D} = \{\rho_\pi : \pi \in \Pi\} be the set of valid occupancy measures, where ρπ(s,a)=π(as)t=0γtP(st=sπ)\rho_\pi(s, a) = \pi(a \mid s) \sum_{t=0}^\infty \gamma^t P(s_t = s \mid \pi).

    Let H(π)=Eπ[logπ(as)]H(\pi) = \mathbb{E}_\pi[-\log \pi(a \mid s)] denote the γ\gamma-discounted causal entropy of policy π\pi. For a closed, proper, convex cost regularizer ψ:RS×ARˉ\psi: \mathbb{R}^{\mathcal{S} \times \mathcal{A}} \to \bar{\mathbb{R}}, regularized maximum causal entropy Inverse Reinforcement Learning (IRL) finds a cost function c~IRLψ(πE)\tilde{c} \in \text{IRL}_\psi(\pi_E) via: IRLψ(πE)=argmaxcRS×Aψ(c)+minπΠ(H(π)+Eπ[c(s,a)])EπE[c(s,a)]\text{IRL}_\psi(\pi_E) = \arg\max_{c \in \mathbb{R}^{\mathcal{S} \times \mathcal{A}}} -\psi(c) + \min_{\pi \in \Pi} \left( -H(\pi) + \mathbb{E}_\pi[c(s, a)] \right) - \mathbb{E}_{\pi_E}[c(s, a)]

    Running reinforcement learning on the output cost, defined as RL(c)=argminπΠH(π)+Eπ[c(s,a)]\text{RL}(c) = \arg\min_{\pi \in \Pi} -H(\pi) + \mathbb{E}_\pi[c(s, a)], yields the induced optimal policy: RLIRLψ(πE)=argminπΠH(π)+ψ(ρπρπE)\text{RL} \circ \text{IRL}_\psi(\pi_E) = \arg\min_{\pi \in \Pi} -H(\pi) + \psi^*(\rho_\pi - \rho_{\pi_E}) where ψ:RS×ARˉ\psi^*: \mathbb{R}^{\mathcal{S} \times \mathcal{A}} \to \bar{\mathbb{R}} is the convex conjugate of ψ\psi, given by ψ(x)=supyRS×AxTyψ(y)\psi^*(x) = \sup_{y \in \mathbb{R}^{\mathcal{S} \times \mathcal{A}}} x^T y - \psi(y).

    Thus, running RL on costs learned by regularized maximum causal entropy IRL directly minimizes the discrepancy between the learner's occupancy measure and the expert's occupancy measure as measured by ψ\psi^*, regularized by causal entropy.

  3. Knowl 3 — Duality Between Unregularized IRL and Exact Occupancy Measure Matching

    theoretical result

    When no cost regularization is applied (the regularizer ψ(c)\psi(c) is a constant function over all cost functions cRS×Ac \in \mathbb{R}^{\mathcal{S} \times \mathcal{A}}), the maximum causal entropy Inverse Reinforcement Learning (IRL) problem is the Lagrangian dual of an exact occupancy measure matching optimization problem:

    ho) \quad \text{subject to} \quad \rho(s, a) = \rho_{\pi_E}(s, a) \quad \forall s \in \mathcal{S}, a \in \mathcal{A}$$ where $\bar{H}(\rho) = -\sum_{s, a} \rho(s, a) \log \left( \frac{\rho(s, a)}{\sum_{a'} \rho(s, a')} \right)$ is the strictly concave causal entropy written as a function of the occupancy measure $\rho$, and $\mathcal{D}$ is the convex set of valid occupancy measures. Key duality properties: 1. The cost function values $c(s, a)$ serve as Lagrange multipliers (dual variables) for the equality constraints $\rho(s, a) = \rho_{\pi_E}(s, a)$. 2. Recovering the cost function $\tilde{c} \in \text{IRL}_\psi(\pi_E)$ corresponds to solving the dual problem. 3. Running reinforcement learning on $\tilde{c}$, given by $\tilde{\pi} \in \text{RL}(\tilde{c})$, recovers the unique primal optimum $\tilde{\rho} = \arg\min_{\rho \in \mathcal{D}} \bar{L}(\rho, \tilde{c}) = \rho_{\pi_E}$. 4. By strong duality, the induced optimal policy matches the expert's occupancy measure exactly: $\rho_{\tilde{\pi}} = \rho_{\pi_E}$.
  4. Knowl 4 — GAIL Cost Regularizer and Occupancy Measure Jensen-Shannon Divergence

    model/method

    To combine exact occupancy measure matching capabilities with tractability in large environments, Generative Adversarial Imitation Learning uses the cost regularizer ψGA:RS×ARˉ\psi_{\text{GA}}: \mathbb{R}^{\mathcal{S} \times \mathcal{A}} \to \bar{\mathbb{R}}: ψGA(c)={EπE[g(c(s,a))]if c<0+otherwise\psi_{\text{GA}}(c) = \begin{cases} \mathbb{E}_{\pi_E}[g(c(s, a))] & \text{if } c < 0 \\ +\infty & \text{otherwise} \end{cases} where g(x)=xlog(1ex)g(x) = -x - \log(1 - e^x) for x<0x < 0, and ++\infty otherwise.

    The convex conjugate ψGA\psi_{\text{GA}}^* evaluated at the occupancy measure difference ρπρπE\rho_\pi - \rho_{\pi_E} equals the optimal binary classification negative log-loss: ψGA(ρπρπE)=maxD(0,1)S×AEπ[log(D(s,a))]+EπE[log(1D(s,a))]\psi_{\text{GA}}^*(\rho_\pi - \rho_{\pi_E}) = \max_{D \in (0, 1)^{\mathcal{S} \times \mathcal{A}}} \mathbb{E}_\pi[\log(D(s, a))] + \mathbb{E}_{\pi_E}[\log(1 - D(s, a))] where D:S×A(0,1)D: \mathcal{S} \times \mathcal{A} \to (0, 1) is a discriminative classifier distinguishing state-action pairs of π\pi from those of πE\pi_E.

    This optimal loss is, up to a constant shift of log4-\log 4, the Jensen-Shannon divergence DJS(ρπ,ρπE)=DKL(ρπ(ρπ+ρπE)/2)+DKL(ρπE(ρπ+ρπE)/2)D_{\text{JS}}(\rho_\pi, \rho_{\pi_E}) = D_{\text{KL}}(\rho_\pi \parallel (\rho_\pi + \rho_{\pi_E})/2) + D_{\text{KL}}(\rho_{\pi_E} \parallel (\rho_\pi + \rho_{\pi_E})/2). Consequently, the optimization problem minπψGA(ρπρπE)λH(π)=minπDJS(ρπ,ρπE)λH(π)\min_\pi \psi_{\text{GA}}^*(\rho_\pi - \rho_{\pi_E}) - \lambda H(\pi) = \min_\pi D_{\text{JS}}(\rho_\pi, \rho_{\pi_E}) - \lambda H(\pi) minimizes a true squared metric between occupancy measures, enabling exact expert imitation.

  5. Knowl 5 — Equivalence of Apprenticeship Learning to Indicator Cost-Regularized IRL

    theoretical result

    Apprenticeship learning finds a policy π\pi that outperforms the expert πE\pi_E across a convex cost class CRS×A\mathcal{C} \subset \mathbb{R}^{\mathcal{S} \times \mathcal{A}} by optimizing minπmaxcCEπ[c(s,a)]EπE[c(s,a)]\min_\pi \max_{c \in \mathcal{C}} \mathbb{E}_\pi[c(s, a)] - \mathbb{E}_{\pi_E}[c(s, a)].

    With causal entropy regularization H(π)-H(\pi) and the indicator regularizer δC(c)\delta_{\mathcal{C}}(c) (00 if cCc \in \mathcal{C}, ++\infty otherwise), the apprenticeship learning objective becomes: minπH(π)+maxcRS×A(δC(c)+s,a(ρπ(s,a)ρπE(s,a))c(s,a))=minπH(π)+δC(ρπρπE)\min_\pi -H(\pi) + \max_{c \in \mathbb{R}^{\mathcal{S} \times \mathcal{A}}} \left( -\delta_{\mathcal{C}}(c) + \sum_{s, a} (\rho_\pi(s, a) - \rho_{\pi_E}(s, a))c(s, a) \right) = \min_\pi -H(\pi) + \delta_{\mathcal{C}}^*(\rho_\pi - \rho_{\pi_E}) where δC\delta_{\mathcal{C}}^* is the convex conjugate of δC\delta_{\mathcal{C}}.

    This establishes that entropy-regularized apprenticeship learning is equivalent to running RL following maximum causal entropy IRL with cost regularizer ψ=δC\psi = \delta_{\mathcal{C}}. Consequently:

    1. Clinear={iwifi:w21}\mathcal{C}_{\text{linear}} = \{\sum_i w_i f_i : \|w\|_2 \le 1\} corresponds to feature expectation matching, which minimizes 2\ell_2 distance Eπ[f(s,a)]EπE[f(s,a)]2\|\mathbb{E}_\pi[f(s, a)] - \mathbb{E}_{\pi_E}[f(s, a)]\|_2.
    2. Cconvex={iwifi:iwi=1,wi0}\mathcal{C}_{\text{convex}} = \{\sum_i w_i f_i : \sum_i w_i = 1, w_i \ge 0\} corresponds to Multiplicative Weights Apprenticeship Learning (MWAL) and Linear Programming Apprenticeship Learning (LPAL), minimizing worst-case basis cost maxiEπ[fi(s,a)]EπE[fi(s,a)]\max_i \mathbb{E}_\pi[f_i(s, a)] - \mathbb{E}_{\pi_E}[f_i(s, a)].
    3. Restricting costs to linear combinations of basis functions forces πE\pi_E to be encoded in a small subspace; if C\mathcal{C} does not contain a cost function explaining expert behavior, apprenticeship learning fails to imitate the expert.
  6. Knowl 6 — Cost Regularizer Construction from Decreasing Convex Surrogate Loss Functions

    theoretical result

    Let ϕ:RR\phi: \mathbb{R} \to \mathbb{R} be a strictly decreasing convex surrogate loss function for binary classification, and let TT be the range of ϕ-\phi. Define gϕ:RRˉg_\phi: \mathbb{R} \to \bar{\mathbb{R}} and ψϕ:RS×ARˉ\psi_\phi: \mathbb{R}^{\mathcal{S} \times \mathcal{A}} \to \bar{\mathbb{R}} by: gϕ(x)={x+ϕ(ϕ1(x))if xT+otherwiseg_\phi(x) = \begin{cases} -x + \phi(-\phi^{-1}(-x)) & \text{if } x \in T \\ +\infty & \text{otherwise} \end{cases} ψϕ(c)={s,aρπE(s,a)gϕ(c(s,a))if c(s,a)Ts,a+otherwise\psi_\phi(c) = \begin{cases} \sum_{s, a} \rho_{\pi_E}(s, a) g_\phi(c(s, a)) & \text{if } c(s, a) \in T \quad \forall s, a \\ +\infty & \text{otherwise} \end{cases}

    Then:

    1. ψϕ\psi_\phi is closed, proper, and convex.
    2. Its convex conjugate satisfies ψϕ(ρπρπE)=Rϕ(ρπ,ρπE)\psi_\phi^*(\rho_\pi - \rho_{\pi_E}) = -R_\phi(\rho_\pi, \rho_{\pi_E}), where RϕR_\phi is the minimum expected binary classification risk: Rϕ(ρπ,ρπE)=s,aminγR(ρπ(s,a)ϕ(γ)+ρπE(s,a)ϕ(γ))R_\phi(\rho_\pi, \rho_{\pi_E}) = \sum_{s, a} \min_{\gamma \in \mathbb{R}} \left( \rho_\pi(s, a)\phi(\gamma) + \rho_{\pi_E}(s, a)\phi(-\gamma) \right)
    3. Reinforcement learning on the output of ψϕ\psi_\phi-regularized IRL directly minimizes the entropy-regularized surrogate risk: RLIRLψϕ(πE)=argminπH(π)Rϕ(ρπ,ρπE)\text{RL} \circ \text{IRL}_{\psi_\phi}(\pi_E) = \arg\min_\pi -H(\pi) - R_\phi(\rho_\pi, \rho_{\pi_E})

    Because minimum expected risks for convex surrogate loss functions correspond to ff-divergences, this result provides a general procedure to construct imitation learning algorithms minimizing arbitrary ff-divergences between occupancy measures.

  7. Knowl 7 — Policy Gradient Formula for Causal Entropy

    theoretical result

    For a parameterized stochastic policy πθ(as)\pi_\theta(a \mid s) operating in a discounted Markov Decision Process with discount factor γ\gamma, the gradient of the causal entropy H(πθ)=Eπθ[logπθ(as)]H(\pi_\theta) = \mathbb{E}_{\pi_\theta}[-\log \pi_\theta(a \mid s)] with respect to policy parameters θ\theta is: θEπθ[logπθ(as)]=Eπθ[θlogπθ(as)Qlog(s,a)]\nabla_\theta \mathbb{E}_{\pi_\theta}[-\log \pi_\theta(a \mid s)] = \mathbb{E}_{\pi_\theta}\left[ \nabla_\theta \log \pi_\theta(a \mid s) Q_{\log}(s, a) \right] where Qlog(sˉ,aˉ)Q_{\log}(\bar{s}, \bar{a}) is the expected cumulative negative log-policy cost: Qlog(sˉ,aˉ)=Eπθ[t=0γt(logπθ(atst))|s0=sˉ,a0=aˉ]Q_{\log}(\bar{s}, \bar{a}) = \mathbb{E}_{\pi_\theta}\left[ \sum_{t=0}^\infty \gamma^t (-\log \pi_\theta(a_t \mid s_t)) \,\middle|\, s_0 = \bar{s}, a_0 = \bar{a} \right]

    This demonstrates that the causal entropy policy gradient matches the standard reinforcement learning policy gradient evaluated with the fixed cost function clog(s,a)=logπθ(as)c_{\log}(s, a) = -\log \pi_\theta(a \mid s).

  8. Knowl 8 — Empirical Benchmark Performance Across Continuous Control Tasks

    data/table

    GAIL was evaluated against Behavioral Cloning (BC), Feature Expectation Matching (FEM), and Game-Theoretic Apprenticeship Learning (GTAL) across 9 physics-based control tasks in OpenAI Gym and MuJoCo over varying numbers of expert trajectories (each consisting of 50\approx 50 state-action pairs).

    The table reports performance (mean ±\pm standard deviation over 50 trajectories; Cartpole, Mountain Car, Acrobot, and Reacher further averaged over 7 random initializations):

    Task Trajectories Behavioral Cloning FEM GTAL GAIL (Ours)
    Cartpole-v0 1 72.02±35.8272.02 \pm 35.82 200.00±0.00200.00 \pm 0.00 200.00±0.00200.00 \pm 0.00 200.00±0.00200.00 \pm 0.00
    10 177.19±52.83177.19 \pm 52.83 199.75±3.50199.75 \pm 3.50 200.00±0.00200.00 \pm 0.00 200.00±0.00200.00 \pm 0.00
    Acrobot-v0 1 130.60±55.08-130.60 \pm 55.08 133.14±60.80-133.14 \pm 60.80 81.35±22.40-81.35 \pm 22.40 77.26±18.03-77.26 \pm 18.03
    10 95.09±33.33-95.09 \pm 33.33 77.22±18.51-77.22 \pm 18.51 94.32±46.51-94.32 \pm 46.51 78.91±15.76-78.91 \pm 15.76
    Mountain Car-v0 1 136.76±34.44-136.76 \pm 34.44 100.97±12.54-100.97 \pm 12.54 115.48±36.35-115.48 \pm 36.35 101.55±10.32-101.55 \pm 10.32
    10 123.14±28.26-123.14 \pm 28.26 100.48±8.14-100.48 \pm 8.14 120.05±36.66-120.05 \pm 36.66 100.83±11.40-100.83 \pm 11.40
    HalfCheetah-v1 4 493.62±246.58-493.62 \pm 246.58 734.01±84.59734.01 \pm 84.59 1008.14±280.421008.14 \pm 280.42 4515.70±549.494515.70 \pm 549.49
    25 3718.58±1856.223718.58 \pm 1856.22 502.29±375.78502.29 \pm 375.78 869.55±447.90869.55 \pm 447.90 4840.07±95.364840.07 \pm 95.36
    Hopper-v1 4 50.57±0.9550.57 \pm 0.95 3571.98±6.353571.98 \pm 6.35 3065.21±147.793065.21 \pm 147.79 3614.22±7.173614.22 \pm 7.17
    25 3383.96±657.613383.96 \pm 657.61 3331.05±3.553331.05 \pm 3.55 3458.82±5.403458.82 \pm 5.40 3560.85±3.093560.85 \pm 3.09
    Walker-v1 4 32.18±1.2532.18 \pm 1.25 3648.17±327.413648.17 \pm 327.41 4945.90±65.974945.90 \pm 65.97 4877.98±2848.374877.98 \pm 2848.37
    25 1599.36±1456.591599.36 \pm 1456.59 4368.15±267.174368.15 \pm 267.17 4687.80±186.224687.80 \pm 186.22 6832.01±254.646832.01 \pm 254.64
    Ant-v1 4 1611.75±359.541611.75 \pm 359.54 2052.51±49.41-2052.51 \pm 49.41 5743.81±723.48-5743.81 \pm 723.48 3186.80±903.573186.80 \pm 903.57
    25 3235.73±1186.383235.73 \pm 1186.38 5122.12±703.19-5122.12 \pm 703.19 3271.37±226.66-3271.37 \pm 226.66 4132.90±878.674132.90 \pm 878.67
    Humanoid-v1 80 1397.06±1057.841397.06 \pm 1057.84 5093.12±583.115093.12 \pm 583.11 5096.43±24.965096.43 \pm 24.96 10200.73±1324.4710200.73 \pm 1324.47
    240 5660.53±3600.705660.53 \pm 3600.70 5192.34±24.595192.34 \pm 24.59 5145.94±21.135145.94 \pm 21.13 10361.94±61.2810361.94 \pm 61.28

    Reference expert returns are: Cartpole 200.00±0.00200.00 \pm 0.00, Acrobot 75.25±10.94-75.25 \pm 10.94, Mountain Car 98.75±8.71-98.75 \pm 8.71, HalfCheetah 4463.46±105.834463.46 \pm 105.83, Hopper 3571.38±184.203571.38 \pm 184.20, Walker 6717.08±845.626717.08 \pm 845.62, Ant 4228.37±424.164228.37 \pm 424.16, and Humanoid 9575.40±1750.809575.40 \pm 1750.80.

    GAIL achieves full expert-level performance on complex high-dimensional benchmarks (HalfCheetah, Hopper, Walker, Ant, Humanoid) across all tested dataset sizes, whereas FEM and GTAL collapse on Ant-v1 (performing worse than random policies) and BC fails to exceed 60% of expert performance on Humanoid-v1.

  9. Knowl 9 — Sample Complexity Limitations of GAIL

    limitation

    While Generative Adversarial Imitation Learning is sample-efficient with respect to expert demonstration trajectories (matching expert performance with only 4 to 25 trajectories on most tasks), it exhibits high sample complexity with respect to environment interaction during training.

    Key constraints:

    1. As a model-free method, estimating the policy gradient and discriminator expectations requires extensive environment simulation—typically 5,000 to 50,000 state-action pairs per iteration over 200 to 1,500 iterations (amounting to up to 7.5×1077.5 \times 10^7 state-action samples for Humanoid-v1).
    2. The total amount of environment interaction required is comparable to training an expert policy from scratch using TRPO with ground-truth reinforcement signals.
    3. The learner does not interact with or query the expert during training (unlike interactive imitation learning methods such as DAgger), relying entirely on undirected exploration in the environment to align occupancy measures.

Coverage note — None was omitted; all key theoretical proofs (characterization, duality, surrogate loss construction, entropy gradient), algorithms, empirical benchmarks, and limitations are fully covered.

References

  1. 1.P. Abbeel and A. Y. Ng. Apprenticeship learning via inverse reinforcement learning. In Proceedings of the 21st International Conference on Machine Learning, 2004.
  2. 2.A. G. Barto, R. S. Sutton, and C. W. Anderson. Neuronlike adaptive elements that can solve difficult learning control problems. Systems, Man and Cybernetics, IEEE Transactions on, (5):834–846, 1983.
  3. 3.M. Bloem and N. Bambos. Infinite time horizon maximum causal entropy inverse reinforcement learning. In Decision and Control (CDC), 2014 IEEE 53rd Annual Conference on, pages 4911–4916. IEEE, 2014.
  4. 4.S. Boyd and L. Vandenberghe. Convex optimization. Cambridge university press, 2004.
  5. 5.G. Brockman, V. Cheung, L. Pettersson, J. Schneider, J. Schulman, J. Tang, and W. Zaremba. OpenAI Gym. arXiv preprint arXiv:1606.01540, 2016.
  6. 6.T. M. Cover and J. A. Thomas. Elements of information theory. John Wiley & Sons, 2012.
  7. 7.C. Finn, S. Levine, and P. Abbeel. Guided cost learning: Deep inverse optimal control via policy optimization. In Proceedings of the 33rd International Conference on Machine Learning, 2016.
  8. 8.A. Geramifard, C. Dann, R. H. Klein, W. Dabney, and J. P. How. Rlpy: A value-function-based reinforcement learning framework for education and research. JMLR, 2015.
  9. 9.I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In NIPS, pages 2672–2680, 2014.
  10. 10.J.-B. Hiriart-Urruty and C. Lemaréchal. Convex Analysis and Minimization Algorithms, volume 305. Springer, 1996.
  11. 11.J. Ho, J. K. Gupta, and S. Ermon. Model-free imitation learning with policy optimization. In Proceedings of the 33rd International Conference on Machine Learning, 2016.
  12. 12.D. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
  13. 13.S. Levine and P. Abbeel. Learning neural network policies with guided policy search under unknown dynamics. In Advances in Neural Information Processing Systems, pages 1071–1079, 2014.
  14. 14.S. Levine and V. Koltun. Continuous inverse optimal control with locally optimal examples. In Proceedings of the 29th International Conference on Machine Learning, pages 41–48, 2012.
  15. 15.S. Levine, Z. Popovic, and V. Koltun. Nonlinear inverse reinforcement learning with gaussian processes. In Advances in Neural Information Processing Systems, pages 19–27, 2011.
  16. 16.P. W. Millar. The minimax principle in asymptotic statistical theory. In Ecole d’Eté de Probabilités de Saint-Flour XI—1981, pages 75–265. Springer, 1983.
  17. 17.A. W. Moore and T. Hall. Efficient memory-based learning for robot control. 1990.
  18. 18.A. Y. Ng and S. Russell. Algorithms for inverse reinforcement learning. In ICML, 2000.
  19. 19.X. Nguyen, M. J. Wainwright, and M. I. Jordan. On surrogate loss functions and f-divergences. The Annals of Statistics, pages 876–904, 2009.
  20. 20.D. A. Pomerleau. Efficient training of artificial neural networks for autonomous navigation. Neural Computation, 3(1):88–97, 1991.
  21. 21.M. L. Puterman. Markov decision processes: discrete stochastic dynamic programming. John Wiley & Sons, 2014.
  22. 22.N. D. Ratliff, D. Silver, and J. A. Bagnell. Learning to search: Functional gradient techniques for imitation learning. Autonomous Robots, 27(1):25–53, 2009.
  23. 23.S. Ross and D. Bagnell. Efficient reductions for imitation learning. In AISTATS, pages 661–668, 2010.
  24. 24.S. Ross, G. J. Gordon, and D. Bagnell. A reduction of imitation learning and structured prediction to no-regret online learning. In AISTATS, pages 627–635, 2011.
  25. 25.S. Russell. Learning agents for uncertain environments. In Proceedings of the Eleventh Annual Conference on Computational Learning Theory, pages 101–103. ACM, 1998.
  26. 26.J. Schulman, S. Levine, P. Abbeel, M. Jordan, and P. Moritz. Trust region policy optimization. In Proceedings of The 32nd International Conference on Machine Learning, pages 1889–1897, 2015.
  27. 27.J. Schulman, P. Moritz, S. Levine, M. Jordan, and P. Abbeel. High-dimensional continuous control using generalized advantage estimation. arXiv preprint arXiv:1506.02438, 2015.
  28. 28.U. Syed and R. E. Schapire. A game-theoretic approach to apprenticeship learning. In Advances in Neural Information Processing Systems, pages 1449–1456, 2007.
  29. 29.U. Syed, M. Bowling, and R. E. Schapire. Apprenticeship learning using linear programming. In Proceedings of the 25th International Conference on Machine Learning, pages 1032–1039, 2008.
  30. 30.E. Todorov, T. Erez, and Y. Tassa. Mujoco: A physics engine for model-based control. In Intelligent Robots and Systems (IROS), 2012 IEEE/RSJ International Conference on, pages 5026–5033. IEEE, 2012.
  31. 31.B. D. Ziebart, A. Maas, J. A. Bagnell, and A. K. Dey. Maximum entropy inverse reinforcement learning. In AAAI, AAAI’08, 2008.
  32. 32.B. D. Ziebart, J. A. Bagnell, and A. K. Dey. Modeling interaction via the principle of maximum causal entropy. In ICML, pages 1255–1262, 2010.

Citation

MLA
Ho, J., and S. Ermon. “Generative Adversarial Imitation Learning”. arXiv, 2016, http://arxiv.org/abs/1606.03476v1.
APA
Ho, J., & Ermon, S. (2016). Generative Adversarial Imitation Learning. arXiv. http://arxiv.org/abs/1606.03476v1
Chicago
Ho, J., and S. Ermon. 2016. “Generative Adversarial Imitation Learning”. arXiv. http://arxiv.org/abs/1606.03476v1.
Harvard
Ho, J. and Ermon, S. (2016) “Generative Adversarial Imitation Learning”, arXiv [Preprint]. Available at: http://arxiv.org/abs/1606.03476v1.
Vancouver
1. Ho J, Ermon S (2016) Generative Adversarial Imitation Learning. arXiv

BibTeX

@article{ho2016generative,
  title = {Generative Adversarial Imitation Learning},
  author = {Ho, Jonathan and Ermon, Stefano},
  year = {2016},
  journal = {arXiv},
  url = {http://arxiv.org/abs/1606.03476v1},
  eprint = {1606.03476}
}
Metadata:arXiv

Source Code

This paper has an official code repository available. Click below to access the source code.

View Repository

Access the Paper

This paper is available from its original source. Click below to access the PDF.

Open PDF

License: Published with permission