Intervention Design for Effective Sim2Real Transfer

Melissa Mozifian, Amy Zhang, Joelle Pineau, David MegerarXiv 2020

Abstract

This paper investigates the use of causal inference to bridge the "reality gap" in robotic reinforcement learning. By framing domain randomization as a set of interventions, the proposed Intervention-based Invariant Transfer learning (IBIT) method encourages robots to learn representations invariant to irrelevant visual noise. Experimental results on a 7DoF Jaco robot arm demonstrate an 80% success rate in zero-shot sim-to-real transfer, significantly outperforming existing data augmentation baselines.

Introduction

Training robotic agents in simulation offers a safe and efficient alternative to real-world data collection. However, the "reality gap"—the discrepancy between simulated environments and the physical world—often prevents models from generalizing to real hardware. Traditional approaches like Domain Randomization (DR) and Data Augmentation (DA) attempt to bridge this gap by introducing variability during training. Yet, these methods are frequently applied as heuristics without a formal understanding of which features are being randomized or why.

Comparison of physical and simulated Jaco robot environments.

This research reframes these techniques through the lens of causal inference. The authors argue that by treating randomizations as "interventions" on the environment's emission mapping, an agent can be forced to ignore spurious correlations and focus solely on the causal parents of the reward, such as the spatial relationship between the robot's gripper and its target.

Intervention-based Invariant Transfer learning (IBIT)

The core of the proposed approach is the Intervention-based Invariant Transfer learning (IBIT) framework. IBIT treats different randomized simulation environments as distinct tasks within a multi-task learning paradigm. The objective is to learn a latent representation that remains invariant across these diverse visual settings.

Causal Interventions and Bisimulation

The method utilizes bisimulation metrics to identify behaviorally equivalent states. If two different visual observations (e.g., a robot arm over a grass background versus a marble background) lead to the same optimal action and future reward, they are considered equivalent. IBIT employs a Siamese network architecture to minimize the distance between these equivalent states in the latent space.

Examples of randomized simulation backgrounds used as interventions.

Furthermore, the authors introduce Risk Extrapolation (REx) as an optional penalty. REx encourages the model to maintain high performance even on affine combinations of training tasks, providing an additional layer of protection against picking up on coincidental visual features that do not exist in the real world.

Experimental Evaluation

The researchers evaluated IBIT using the Meta-World benchmark (Sawyer robot tasks) and a modified DeepMind Control Suite task involving a 7DoF Jaco arm. Training environments were intentionally designed with "unrealistic" randomizations, including neon colors and complex textures, to test the limits of the agent's ability to filter out visual noise.

Key Results

The most significant finding was the performance on the physical Jaco robot. IBIT achieved an 80% success rate in a zero-shot reaching task. In contrast, DrQ—a state-of-the-art data augmentation method—achieved only a 50% success rate, while standard reinforcement learning methods performed even worse.

Analysis of the latent space further supported these results. While standard methods produced fragmented representations heavily influenced by visual noise, IBIT successfully clustered behaviorally equivalent states together, demonstrating a clear focus on task-relevant information.

Discussion and Conclusion

A primary insight from this work is that physical realism in simulation is not a prerequisite for effective transfer. Instead, the diversity of interventions is the critical factor. By showing the agent extreme variations in irrelevant dimensions (like table texture or lighting), the agent learns that these dimensions are not causal factors for success.

While IBIT shows great promise, it is not without limitations. The framework is sensitive to hyperparameter tuning, particularly regarding the weight of the invariance penalties. Additionally, the REx penalty can introduce training volatility if not managed carefully. Future research will explore extending this framework to multi-goal settings and automating the design of interventions to further reduce the need for human intuition in the training loop.

Summary updated

BibTeX
@misc{mozifian2020intervention,
  author = {Melissa Mozifian and Amy Zhang and Joelle Pineau and David Meger},
  title = {{Intervention Design for Effective Sim2Real Transfer}},
  year = {2020},
  eprint = {2012.02055},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.02055},
}
Figure