TL;DR
Standard Adversarial Imitation Learning (AIL) methods rely on binary discriminators that often overfit to trivial differences between expert demonstrations and agent rollouts, producing sparse and fragile reward signals. Auto-Encoding Adversarial Imitation Learning (AEAIL) replaces the discriminator with an auto-encoder, using its reconstruction error as a continuous surrogate reward. This change yields denser reward signals, scales significantly better to high-dimensional state-action spaces, and achieves substantial robustness against noisy expert data.
What Problem Does This Paper Address?
Adversarial Imitation Learning (AIL) frameworks (such as GAIL) learn policies directly from expert trajectories without hand-engineered reward functions by framing the task as a two-player min-max game: a discriminator tries to distinguish agent behaviors from expert demonstrations, while the policy tries to fool the discriminator.
However, multi-layer discriminators often latch onto subtle, irrelevant differences between generated and expert state-action pairs (e.g., classifying a state with velocity 1.9 as completely non-expert when the expert is 2.0). This leads to overconfidence and sparse pseudo-rewards, penalizing trajectories that are functionally close to expert behavior. The issue worsens in high-dimensional state spaces and becomes catastrophic when expert demonstrations are contaminated with noise.
Methods
Instead of using a standard binary classifier discriminator, AEAIL models the pseudo-reward function using an auto-encoder (AE):
- Reconstruction Error as Pseudo-Reward: The agent computes the reconstruction error over state-action pairs: $$\text{AE}(x) = \|\text{Dec}(\text{Enc}(x)) - x\|_2^2$$ The surrogate reward given to the policy is inversely related to this error: $$r_w(s, a) = \frac{1}{1 + \text{AE}_w(s, a)}$$
- Adversarial Optimization: The auto-encoder is trained adversarially to minimize reconstruction error on expert data while maximizing reconstruction error on policy rollouts: $$\mathcal{L} = \mathbb{E}_{(s,a)\sim \pi_\theta} [r_w(s, a)] - \mathbb{E}_{(s,a)\sim \mathcal{D}_E} [r_w(s, a)]$$
- Lipschitz Regularization & W-Distance: By clipping the weights of the auto-encoder network, the authors prove that the reward function is Lipschitz-continuous, guaranteeing that the framework optimizes the Wasserstein distance between state-action distributions.
- RL Policy Optimization: Policy updates are performed using standard on-policy RL (TRPO) or off-policy RL (adapted with DAC / D4PG).
Datasets
The authors evaluate AEAIL on standard continuous-control locomotion benchmarks in the MuJoCo environment:
- Locomotion Tasks: Swimmer-v2, Hopper-v2, Walker2d-v2, HalfCheetah-v2, Ant-v2, and Humanoid-v2 (ranging up to 393 state-action dimensions), along with Reacher in off-policy evaluations.
- Demonstrations: Trajectories collected via Soft Actor-Critic (SAC). Evaluated under two settings:
- Clean Expert: 50 trajectories for standard tasks, 320 for Humanoid.
- Noisy Expert: Perturbed with additive Gaussian noise $\mathcal{N}(0, 0.3)$ for Walker2d, Hopper, Swimmer, and HalfCheetah, and $\mathcal{N}(0, 0.03)$ for Ant and Humanoid.
Key Insights and Ideas
- Reconstruction forces holistic awareness: Predicting the entire state-action tuple prevents the model from collapsing onto single-feature discrepancies. The resulting reward function measures full-scale deviation rather than binary class membership.
- Denser reward distributions (Higher Differential Entropy): Empirical analysis of the rewards assigned during training reveals that AEAIL produces significantly higher differential entropy than discriminator-based methods (e.g., FAIRL), offering richer gradient feedback for policy updates.
- Dimension scalability: The relative performance improvement of AEAIL over GAIL scales positively with state-action dimensionality, showing the largest relative gains on Humanoid (dim=393).
- Architecture- and metric-agnostic: Ablations demonstrate that the framework is flexible: it works equally well under Jensen-Shannon divergence objectives and when using Variational Auto-Encoders (VAEs). The primary performance driver is the encoding-decoding reconstruction mechanism, not the divergence metric.
Key Results
- Clean Demonstrations: AEAIL achieves an overall scaled return of 0.921, compared to 0.83 for GAIL (~11% relative improvement). On the high-dimensional Humanoid-v2, AEAIL reaches a score of 4717 ± 346 vs. GAIL's 3257 ± 1393 and FAIRL's 1695 ± 1098.
- Noisy Demonstrations: Baselines degrade sharply in the presence of noise, while AEAIL remains robust, achieving an overall scaled score of 0.813 vs. 0.539 for the strongest baseline (PWIL)—a 50.7% relative improvement. On Ant-v2 with noise, AEAIL scores 5204 ± 421, whereas DAC drops to -1586 ± 922 and FAIRL drops to -1987 ± 1633.
- Latent Space Alignment: t-SNE visualisations show that AEAIL's latent representations of expert and policy-generated rollouts overlap heavily, whereas discriminators fail to fully align them.
Limitations and Future Work
- Sensitivity to AE Capacity: The authors note that if the auto-encoder’s hidden layer size is set too large, imitation performance degrades (likely due to overfitting or memorization).
- Experimental Scope: Experiments are limited to simulated physics engines (MuJoCo). Testing on visual observation spaces (pixels), real-world robotics, or autonomous driving environments remains open for future research.
Summary updated