Abstract
Adversarial Imitation Learning (AIL) often fails because the discriminator "cheats" by picking up on spurious correlations—non-essential shortcuts in expert data—rather than learning the true underlying behavior. We introduce CIAIL (Causally Invariant Adversarial Imitation Learning), which applies Causal Invariance regularization to the discriminator. By forcing the discriminator to ignore these shortcuts, CIAIL provides a more robust training signal for the policy, leading to improved generalization and stability across complex control tasks.
Introduction
In Adversarial Imitation Learning (AIL), a discriminator distinguishes between expert demonstrations and an agent's attempts, while the policy tries to fool it. Ideally, the discriminator acts as a reward function. However, discriminators are prone to spurious correlations. Much like a vision model identifying a "cow" by green grass rather than the animal, an AIL discriminator might latch onto task-irrelevant environment quirks. This leads to "reward hacking," where the agent exploits discriminator biases rather than performing the actual task.
Methods
The authors propose Causally Invariant Adversarial Imitation Learning (CIAIL), borrowing the principle of Invariant Risk Minimization (IRM) from out-of-distribution generalization.
Instead of standard Empirical Risk Minimization, CIAIL adds a gradient-norm penalty (IRMv1) to the discriminator's loss. This penalty discourages the use of features that aren't consistently predictive of expert behavior across different "settings" (e.g., different training stages or expert sources). This regularization is "plug-and-play," compatible with both on-policy (PPO) and off-policy (SAC) frameworks. Notably, off-policy methods naturally provide the diverse data settings needed for IRM because their replay buffers contain data from many evolving policy versions.
Experimental Results
The method was evaluated on MovePoint (2D Navigation) and several MuJoCo Robot Locomotion benchmarks (Ant, HalfCheetah, Hopper, and Walker2d).
Key Findings
- Superior Performance: IRM-regularized versions (GAIL-IRM or AIRL-IRM) significantly outperformed standard versions in almost every locomotion task. The gains were most dramatic with off-policy SAC; in Walker2d, AIRL-IRM scored ~4213 versus AIRL-ERM's ~2355.
- Robustness: The method proved more resilient to the number of discriminator updates, a typically sensitive hyperparameter in adversarial training.
Conclusion
By regularizing the discriminator through a causal lens, CIAIL stabilizes the adversarial loop without requiring a predefined causal graph. While highly effective on state-vector inputs, future work is needed to test its efficacy on high-dimensional visual data where spurious correlations like background textures are even more prevalent. Further theoretical analysis of the distribution shifts in the discriminator's input would also help fully characterize the benefits of the invariance penalty.
Summary updated