Risk-Sensitive Generative Adversarial Imitation Learning

Jonathan Lacotte, Mohammad Ghavamzadeh, Yinlam Chow, Marco Pavone

Abstract: We study risk-sensitive imitation learning where the agent’s goal is to perform at least as well as the expert in terms of a risk profile. We first formulate our risk-sensitive imitation learning setting and then propose a practical algorithm, Risk-Sensitive Generative Adversarial Imitation Learning (RS-GAIL).

Introduction

Standard imitation learning (IL) focuses on matching an expert's average behavior. While effective in many scenarios, this approach can leave an agent vulnerable to rare but catastrophic failures in safety-critical systems. This paper introduces Risk-Sensitive Generative Adversarial Imitation Learning (RS-GAIL), a framework that forces the agent to match the expert’s entire risk profile—specifically its tail risks—ensuring the agent is just as robust and risk-aware as the teacher.

The Challenge of Risk in Imitation

In imitation learning, we aim to mimic an expert's policy based on sample trajectories. Modern approaches like Generative Adversarial Imitation Learning (GAIL) work by matching "occupancy measures," ensuring the agent visits the same states and takes the same actions as the expert on average.

However, "on average" is insufficient for safety. A policy might achieve the same mean reward as an expert but possess a much higher variance or a "fat tail" of disastrous outcomes. Previous attempts, such as Risk-Averse Imitation Learning (RAIL), focused on making the agent generally risk-averse but failed to explicitly match the specific risk-taking or risk-avoiding behavior of the expert. RS-GAIL fills this gap by providing a mathematical framework to match the expert's risk profile, specifically the Conditional Value-at-Risk (CVaR).

Methodology

RS-GAIL is formulated as a minimax optimization problem where the agent minimizes a cost function that a discriminator (the adversary) attempts to maximize. Key technical contributions include:

  • Distorted Occupancy Measures: These measures put more weight on high-cost (risky) trajectories rather than treating all samples equally.
  • Divergence Measures: The authors develop two versions: JS-RS-GAIL (using Jensen-Shannon divergence) and W-RS-GAIL (using Wasserstein distance).
  • Optimization: The framework utilizes Trust Region Policy Optimization (TRPO) for policy updates, adapted for risk-sensitive objectives.

Experimental Evaluation

The researchers evaluated RS-GAIL on four classic reinforcement learning benchmarks modified to include stochasticity:

  • OpenAI Gym: CartPole and Pendulum (with injected action noise).
  • MuJoCo: Hopper and Walker2d (with state-action occupancy-based cost noise).

Key Results

In almost all tests, JS-RS-GAIL achieved superior risk-sensitive performance (measured as Mean + $\lambda$CVaR) compared to standard GAIL and the previous RAIL algorithm. While standard GAIL often matched the expert's mean performance, it consistently failed to match the expert's CVaR. RS-GAIL was the only method that reliably captured the expert's tail-risk behavior.

Performance comparison on CartPole and Pendulum benchmarks across different criteria.
Performance comparison on Hopper and Walker MuJoCo benchmarks.

Interestingly, the JS-divergence version (JS-RS-GAIL) generally performed better than the Wasserstein version (W-RS-GAIL). The authors attribute this to the "clipping" required in Wasserstein GAN-style architectures, which limited the expressive power of their neural networks.

Insights and Discussion

The core "aha moment" of this research is that to truly imitate an expert in a risky world, an agent must match how the expert behaves when things go wrong, not just where they go most of the time. RS-GAIL is "risk-sensitive" rather than just "risk-averse": if an expert takes calculated risks, the agent learns to do the same; if the expert is cautious, the agent mimics that caution.

The authors also identify a flaw in the previous RAIL algorithm: RAIL matches the agent’s distorted (risky) profile against the expert’s average profile. RS-GAIL corrects this by comparing "apples to apples"—distorted profile to distorted profile.

Limitations and Future Work

Estimating tail risks like CVaR is data-hungry. RS-GAIL requires significantly more expert trajectories (100 vs. 1-20 for standard GAIL) to converge. Future work could explore more sophisticated architectures to improve W-RS-GAIL or extend the framework to other "coherent risk measures." Testing on environments with high intrinsic stochasticity, such as financial markets or real-world robotics, remains a critical next step.

Summary updated

BibTeX
@inproceedings{lacotte2019risk,
  author = {Jonathan Lacotte and Mohammad Ghavamzadeh and Yinlam Chow and Marco Pavone},
  title = {{Risk-Sensitive Generative Adversarial Imitation Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
  url = {https://openreview.net/forum?id=qLKdcBsdgqv},
}
Figure