RAIL: A modular framework for Reinforcement-learning-based Adversarial Imitation Learning

Eddy Hudson, Garrett Warnell, Peter StonearXiv 2021

Introduction

Adversarial Imitation Learning (AIL) has emerged as a powerful paradigm for training agents to mimic expert behavior. However, progress in the field has often been characterized by "ad hoc" developments where algorithmic innovations are bundled with specific optimization choices. Unlike fields like Computer Vision, where neural architectures and optimization algorithms are treated as distinct modules, AIL research frequently conflates the core imitation logic with the underlying Reinforcement Learning (RL) solver. This lack of modularity makes it difficult to discern whether performance gains stem from the imitation framework itself or simply from a more robust RL backbone.

To address this, we introduce RAIL (Reinforcement-learning-based Adversarial Imitation Learning), a modular framework that deconstructs AIL into two primary components: the RL backbone and the discriminator’s input representation. By isolating these variables, we can systematically evaluate and improve imitation learning algorithms.

The RAIL Framework

The RAIL framework treats AIL as a "plug-and-play" system consisting of two modules:

  1. The RL Backbone: The optimization engine (e.g., TRPO, PPO, SAC, TD3) used to update the agent's policy based on the rewards generated by a discriminator.
  2. The Discriminator’s Input Representation: The specific data features provided to the discriminator to distinguish expert behavior from the learner's. This typically includes state-action pairs $(s_t, a_t)$ for standard imitation or state-only transitions $(s_t, s_{t+1})$ for Imitation from Observation (IfO).
Table 1: Comparison of various RAIL-based algorithms, highlighting the modularity of RL backbones and discriminator inputs.

As shown in the table above, existing algorithms can be mapped into this framework. By leveraging this modularity, we developed SAIfO (SAC-based Adversarial Imitation from Observation). SAIfO utilizes the high-performing Soft Actor-Critic (SAC) off-policy RL algorithm as its backbone while restricting the discriminator to state-only transitions to address the IfO setting, where expert actions are unavailable.

Experimental Evaluation

We evaluated the RAIL framework using standard continuous control benchmarks in OpenAI Gym (MuJoCo), specifically the HalfCheetah-v2 and Hopper-v2 locomotion tasks. The primary goal was to compare SAIfO against contemporaneous IfO methods, including GAIfO, OPOLO, and DACfO.

To ensure a fair comparison, we heavily optimized the baseline algorithms. The evaluation focused on sample complexity and the ability to reach "expert-level" performance, represented by horizontal baselines in our results.

Results and Key Insights

Our experiments demonstrate that the choice of RL backbone is a critical factor in imitation performance. SAIfO significantly outperformed existing methods in both speed and consistency.

Figure 1: Performance comparison of SAIfO against other IfO baselines on MuJoCo benchmarks. SAIfO (blue) consistently reaches expert performance faster.

Key findings include:

  • The Power of Off-Policy RL: Simply switching to a state-of-the-art off-policy backbone like SAC provides a massive performance boost over prior methods like GAIfO (which uses TRPO).
  • Efficiency: SAIfO demonstrated lower sample complexity, requiring fewer environment interactions to achieve expert-level rewards.
  • Stochasticity and Exploration: We hypothesize that SAC’s superior performance is partially due to its entropy maximization, which aids exploration during the adversarial training process.

Conclusion

The RAIL framework clarifies the contributions of different components in Adversarial Imitation Learning. Our results with SAIfO suggest that many complex "tricks" in previous literature may be less impactful than simply selecting a high-quality, modern RL backbone. Future work will explore more diverse discriminator input representations and further investigate the theoretical reasons why specific backbones like SAC excel in adversarial contexts.

Summary updated

BibTeX
@misc{hudson2021rail,
  author = {Eddy Hudson and Garrett Warnell and Peter Stone},
  title = {{RAIL: A modular framework for Reinforcement-learning-based Adversarial Imitation Learning}},
  year = {2021},
  eprint = {2105.03756},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.03756},
}
Figure