Discriminator-Actor-Critic: Addressing Sample Inefficiency and Reward Bias in Adversarial Imitation Learning

Ilya Kostrikov, Kumar Krishna Agrawal, Debidatta Dwibedi, Sergey Levine, Jonathan Tompson

TL;DR

This paper introduces Discriminator-Actor-Critic (DAC), a framework that makes Adversarial Imitation Learning (AIL) significantly more practical by boosting sample efficiency by an average factor of 10. It achieves this by combining off-policy reinforcement learning with a novel method for handling "absorbing states," which eliminates the hidden reward biases that often plague imitation learning agents.

What Problem Does This Paper Address?

Imitation learning allows agents to learn complex behaviors from expert demonstrations rather than hand-crafted reward functions. Popular methods like Generative Adversarial Imitation Learning (GAIL) treat this as a game: a "discriminator" tries to tell expert actions apart from agent actions, while the agent (the "actor") tries to fool the discriminator.

However, GAIL and its cousins suffer from two major headaches:

  1. Extreme Sample Inefficiency: Because they typically rely on on-policy reinforcement learning (like PPO or TRPO), they require millions of interactions with the environment to learn even simple tasks.
  2. Reward Bias: Most RL environments simply stop when a "terminal state" (like falling over) is reached. Standard implementations often ignore these states or assign them a default reward of zero. This creates an implicit bias—either a "survival bonus" (where the agent learns to just stay alive forever without completing the task) or a "per-step penalty" (where the agent tries to end the episode as fast as possible).

Methods

The authors propose Discriminator-Actor-Critic (DAC) to solve these issues through two key innovations:

DAC Architecture
  • Off-Policy Learning: Instead of throwing away data after every policy update, DAC uses a replay buffer and an off-policy RL algorithm (TD3). The discriminator is also trained off-policy using transitions sampled from this buffer. This allows the agent to reuse past experiences, drastically reducing the number of new environment steps needed.
  • Absorbing State Wrapping: To fix reward bias, the authors explicitly modify the environment's Markov Decision Process (MDP). When an episode ends, they add a transition to a special "absorbing state" ($s_a$) that loops into itself. The discriminator is then trained to learn the reward for these absorbing states. This allows the algorithm to distinguish whether reaching a terminal state is a "good" thing (like finishing a race) or a "bad" thing (like crashing) based on the expert's demonstrations.

Datasets

The researchers evaluated DAC on two main fronts:

  • MuJoCo Benchmarks: Standard continuous control tasks including HalfCheetah, Hopper, Walker2d, Ant, and Reacher.
  • Kuka-IIWA Robotic Tasks: The authors introduced two new, more complex tasks simulated in PyBullet—Kuka-Reach and Kuka-PushNext. Unlike the MuJoCo tasks, these used human demonstrations collected via a VR setup, providing noisy, multi-modal, and sub-optimal data to test the algorithm's robustness.

Key Insights and Ideas

  • The "Survival" Trap: The paper reveals that a fixed, untrained discriminator can sometimes achieve 1/3 of expert performance on the Hopper task simply because of the implicit survival bonus in the reward formulation. This proves that many previous AIL results were partially driven by environment bias rather than true imitation.
  • Simplicity Wins: While off-policy discriminator training theoretically requires "importance sampling" to account for the change in policy distributions, the authors found that the algorithm works remarkably well in practice even when this complex step is omitted.
  • Task-Independent Rewards: By explicitly learning rewards for absorbing states, DAC removes the need for researchers to "tweak" reward functions to suit a specific environment's termination criteria.

Key Results

Performance on MuJoCo Benchmarks
  • 10x Speedup: DAC reached expert-level performance on MuJoCo tasks using roughly 10 times fewer environment interactions than GAIL. For example, on HalfCheetah, DAC converged in about 1 million steps, while GAIL required nearly 10 million.
  • State-of-the-Art Performance: DAC outperformed both GAIL and Behavioral Cloning (BC) across almost all tested environments, particularly on tasks where terminal state handling is critical (like Walker2d).
  • Robustness to Human Noise: In the Kuka robotic environments, DAC successfully learned to reach and push objects using only 100-600 human VR demonstrations, proving it can handle the "messy" data typical of real-world applications.

Limitations and Future Work

  • Discriminator Overfitting: In the off-policy regime, the discriminator sees the same data multiple times, which can lead to overfitting. The authors used gradient penalties to mitigate this, but more advanced regularization might be needed for even more complex tasks.
  • Hyperparameter Sensitivity: Like many adversarial methods, the balance between the discriminator and the actor can be delicate.
  • Future Directions: The authors suggest that combining DAC with model-based RL could further improve sample efficiency, potentially bringing imitation learning closer to the requirements of physical robotics where every second of interaction is costly.

Summary updated

BibTeX
@inproceedings{kostrikov2019discriminator,
  author = {Ilya Kostrikov and Kumar Krishna Agrawal and Debidatta Dwibedi and Sergey Levine and Jonathan Tompson},
  title = {{Discriminator-Actor-Critic: Addressing Sample Inefficiency and Reward Bias in Adversarial Imitation Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=vDuJDnQES28},
}
Figure