Task-Relevant Adversarial Imitation Learning

Konrad Zolna, Scott E. Reed, Alexander Novikov, Sergio Gómez Colmenarejo, David Budden, Serkan Cabi, Misha Denil, Nando de Freitas, Ziyu Wang

Abstract

Adversarial imitation learning (AIL) has shown promise in low-dimensional state spaces but often fails when applied to high-dimensional visual inputs. This failure is frequently attributed to "causal confusion," where the discriminator learns to distinguish expert behavior based on task-irrelevant "spurious features" rather than the underlying task logic. We introduce Task-Relevant Adversarial Imitation Learning (TRAIL), a framework that uses data-driven constraints to force the discriminator to ignore these distractions. Our results demonstrate that TRAIL enables robust robotic manipulation from pixels, outperforming standard AIL baselines and behavioral cloning in complex, distracted environments.

Introduction

Generative Adversarial Imitation Learning (GAIL) provides a powerful framework for learning from demonstrations by training a discriminator to distinguish between expert and agent behaviors. However, in visual domains, discriminators are prone to becoming "lazy learners." Instead of identifying the core task, they may fixate on spurious associations—such as background object positions, lighting, or robot configurations—that happen to correlate with expert data.

Conceptual illustration of the decision boundary shift in TRAIL to ignore spurious features.

When a discriminator relies on these task-irrelevant features, the resulting reward signal becomes uninformative or misleading, causing the agent to fail. This phenomenon, known as causal confusion, is a significant barrier to scaling imitation learning to real-world robotic tasks.

Methodology

The core innovation of TRAIL is the use of "constraining sets" to neutralize spurious associations without requiring manual feature engineering.

Constraining Sets

The authors define two sets, $I_E$ (expert) and $I_A$ (agent), consisting of observations that contain only task-irrelevant information. In practice, these sets are constructed using the early frames of an episode, before any significant task progress has been made. Since the task has not yet begun, any differences between these sets are by definition spurious.

Constrained Optimization

TRAIL regularizes the discriminator by penalizing its ability to distinguish between $I_E$ and $I_A$. If the discriminator's accuracy on these sets exceeds 50%, the training objective is modified to "unlearn" the features responsible for the distinction. This forces the network to focus exclusively on features that are relevant throughout the entire task trajectory.

Actor Early Stopping (AES)

To prevent the discriminator from misidentifying the goal state as a spurious feature (as the agent rarely reaches the goal early in training), TRAIL employs Actor Early Stopping. By terminating agent episodes before they reach completion, the goal state remains a unique and valid signal for expert behavior.

Experimental Evaluation

TRAIL was evaluated on a suite of challenging robotic manipulation tasks using MuJoCo simulations with Kinova Jaco and Sawyer arms. The tasks included block lifting, stacking, and insertion. To test robustness, the researchers introduced "distractor" variants with randomly moving objects and "appearance" variants with modified robot textures. For each task, 100 human-teleoperated demonstrations were used for training.

Example of a robotic manipulation task (block insertion) used for evaluation.

Results and Discussion

Experimental results indicate that TRAIL significantly outperforms standard GAIL and behavioral cloning (BC) baselines. While GAIL often failed entirely when learning from pixels due to causal confusion, TRAIL achieved expert-level performance across all primary tasks.

Key findings include:

  • Robustness to Distractors: TRAIL maintained high success rates in environments with extra, randomly moving blocks, whereas baselines fixated on these distractors and failed to learn.
  • Generalization: TRAIL showed superior generalization to unseen expert demonstrations. By ignoring spurious features, the model learned the underlying task logic rather than memorizing specific trajectories.
  • Comparison to Baselines: TRAIL outperformed both BC and D4PGfD (a reinforcement learning baseline using sparse rewards). Unlike BC, which suffers from cascading errors in out-of-distribution states, TRAIL's learned reward function provided a more resilient signal for policy optimization.

Conclusion

TRAIL addresses a fundamental weakness in adversarial imitation learning from pixels. By leveraging the temporal structure of tasks to define task-irrelevant information, TRAIL provides a data-driven path toward robust visual imitation. Future work will explore the application of TRAIL to long-horizon tasks and its transfer to physical robotic hardware.

Summary updated

BibTeX
@inproceedings{zolna2020task,
  author = {Konrad Zolna and Scott E. Reed and Alexander Novikov and Sergio Gómez Colmenarejo and David Budden and Serkan Cabi and Misha Denil and Nando de Freitas and Ziyu Wang},
  title = {{Task-Relevant Adversarial Imitation Learning}},
  booktitle = {Conference on Robot Learning},
  year = {2020},
}
Figure