Zero-shot Sim2Real Adaptation Across Environments

Buddhika Laknath Semage, Thommen George Karimpanal, Santu Rana, Svetha VenkatesharXiv 2023 · DOI

Abstract

Transferring robotic skills from simulation to reality (Sim2Real) remains a significant challenge due to the "reality gap"—the discrepancy between idealized physics and real-world dynamics. Existing methods often fail to generalize across varying environmental conditions without extensive retraining. We present Reverse Action Transformation (RAT), a framework that combines Universal Policy Networks (UPNs) with a corrective action module. RAT learns to adjust real-world actions so that the resulting trajectories match ideal simulated ones. By training RAT in a sim-to-sim setting with synthetic gaps, we achieve zero-shot transfer to environments with significantly different physical parameters. Evaluation on MuJoCo benchmarks demonstrates that RAT outperforms standard domain randomization and transfer policies in maintaining performance across diverse settings.

Introduction

Bridging the reality gap is one of the most persistent hurdles in modern robotics. While simulators offer a fast and safe environment for training reinforcement learning agents, they rarely capture the exact nuances of friction, air resistance, or mass distribution found in the real world. Traditional approaches like Domain Randomization (DR) often result in overly cautious policies, while Action Transformation methods typically require environment-specific tuning.

Conceptual overview of RAT: 1) Success in simulation. 2) Failure in the real world due to the reality gap. 3) RAT corrects the action to match simulation. 4) RAT adapts to new environmental parameters (theta_g + epsilon) zero-shot.

This research addresses the challenge of adaptability: how can a robot bridge the reality gap once and have that correction work across a range of different environmental settings? We propose a "reverse" approach that forces the real-world robot to mimic the "perfect" trajectories it learned in simulation, ensuring it stays within a known state-space.

Methodology

The proposed framework consists of two primary components designed to separate known environmental variations from unknown reality gaps.

Universal Policy Network (UPN)

The UPN ($\pi^S$) is a reinforcement learning policy trained in simulation and conditioned on environmental parameters $\theta_g$ (e.g., mass, friction). This allows the agent to determine the optimal action $a_t$ for a given physical configuration, assuming the simulator's physics are perfectly accurate.

Reverse Action Transformation (RAT)

RAT ($\pi^{RAT}$) is the core innovation. Instead of modifying the simulator to match reality, RAT learns a correction $\Delta a_t$ for the real-world robot. The final action taken in the real world is $a^R_t = a_t + \Delta a_t$. The goal of the RAT policy is to minimize the difference between the resulting real-world state $s^R_{t+1}$ and the expected simulated state $s_{t+1}$.

The RAT architecture: The UPN provides an ideal action, which is adjusted by the RAT policy. The reward for RAT is based on the difference between simulated and real-world state transitions.

Robust RAT Initialization

To enable zero-shot transfer, the RAT model is trained entirely in simulation using a process called Robust RAT Initialization. Researchers create "fake" reality gaps by treating a slightly modified version of the simulator as the "real world." This prepares the model for the discrepancies it will face in actual deployment without requiring real-world interaction data.

Experimental Results

The framework was evaluated using the MuJoCo physics engine across six standard tasks: Ant, Half-Cheetah, Hopper, Humanoid, Swimmer, and Walker2D. To emulate a massive reality gap, the "real world" instances featured mass and friction increases of up to 400%.

Key findings include:

  • Superior Zero-Shot Performance: RAT significantly outperformed Domain Randomization and standard transfer policies. In the Hopper task, RAT achieved a reward of 1.7263, compared to 1.6531 for DR.
  • Robust Adaptability: When environmental parameters changed (e.g., shifting from one mass setting to another), RAT maintained high performance without retraining, whereas baseline models saw significant degradation.
  • State-Space Consistency: By forcing the robot to mimic simulated trajectories, RAT ensures the agent remains in familiar territory, treating the real world as a "corrected" version of the simulator.

Conclusion

Reverse Action Transformation provides a robust path for zero-shot Sim2Real transfer. By separating the task policy (UPN) from the reality-gap correction (RAT), robots can adapt to new environments more efficiently. Future work will explore few-shot adaptation to further refine the RAT policy using small amounts of real-world data and addressing scenarios where base physical parameters are initially unknown.

Summary updated

BibTeX
@misc{semage2023zero,
  author = {Buddhika Laknath Semage and Thommen George Karimpanal and Santu Rana and Svetha Venkatesh},
  title = {{Zero-shot Sim2Real Adaptation Across Environments}},
  year = {2023},
  eprint = {2302.04013},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.04013},
}
Figure