Abstract
GAIL is a recent successful imitation learning architecture that exploits the adversarial training procedure introduced in GANs. Albeit successful at generating behaviours similar to those demonstrated by an expert, GAIL is notoriously sample-inefficient. This paper introduces Sample-efficient Adversarial Mimic (SAM), a framework that dramatically reduces the number of environment interactions needed for imitation learning by combining adversarial reward learning with an off-policy actor-critic architecture.
Introduction
Imitation Learning (IL) enables agents to acquire complex behaviors by observing expert demonstrations, bypassing the need for manually engineered reward functions. Generative Adversarial Imitation Learning (GAIL) has emerged as a powerful framework, framing IL as a minimax game between a discriminator (distinguishing expert from agent behavior) and a generator (the policy). However, GAIL's reliance on on-policy reinforcement learning leads to extreme sample inefficiency, requiring millions of environment interactions that are often impractical in real-world robotics or safety-critical domains.
Methods
SAM addresses this inefficiency by transitioning the GAIL framework into an off-policy regime. The architecture integrates several key components:
- Off-Policy Actor-Critic: By utilizing a replay buffer, SAM enables the agent to reuse past experiences for multiple policy updates, significantly increasing the information extracted from each environment step.
- Deterministic Policy Gradients: To overcome the differentiability challenges associated with stochastic policies in adversarial settings, SAM employs deterministic policies. This allows for direct gradient propagation from the learned reward function to the policy via the Deterministic Policy Gradient theorem.
- Adversarial Reward Learning: SAM learns a surrogate reward function $r_\phi(s, a) = -\log(1 - D_\phi(s, a))$ through adversarial training, incorporating gradient penalties for stability.
- Exploration Strategy: To compensate for the lack of natural exploration in deterministic policies, SAM employs a hybrid approach using parameter space noise and Ornstein-Uhlenbeck noise.
Results
The researchers evaluated SAM on several MuJoCo continuous control tasks, including InvertedPendulum, Reacher, Hopper, and Walker2d. Expert demonstrations were sourced from pre-trained PPO agents.
SAM consistently achieved expert-level performance with 10x to 100x fewer environment interactions compared to GAIL. In complex locomotion tasks like Walker2d, SAM reached the expert performance threshold significantly faster than the baseline. Furthermore, SAM often achieved higher asymptotic performance in tasks where GAIL plateaued prematurely.
Conclusion
SAM demonstrates that adversarial reward learning can be effectively combined with off-policy reinforcement learning to achieve high sample efficiency. While the method increases computational overhead per interaction due to frequent gradient updates, the reduction in required environment data is a significant step toward practical imitation learning. Future work may explore model-based extensions to further enhance efficiency.
Summary updated