Abstract
The "sim-to-real" gap remains a significant hurdle in robotics, where policies trained in simulation often fail in the physical world due to modeling inaccuracies. This paper introduces the Real-Sim-Real (RSR) Loop, an iterative framework that utilizes differentiable simulation to close this gap. By employing a novel Adaptive InfoGap loss, the system directs the robot to collect real-world data that specifically exposes simulator discrepancies. This data is then used for gradient-based tuning of physical parameters like friction and mass. Experimental results on manipulation tasks demonstrate that the RSR Loop significantly reduces trajectory errors and improves the generalizability of learned policies.
Introduction
Training robotic policies in simulation offers advantages in speed, safety, and cost. However, the transition to physical hardware is often plagued by the sim-to-real gap—discrepancies between digital models and physical reality. Traditional approaches like Domain Randomization (DR) often require extensive manual tuning and lack a feedback mechanism from the real world. This work proposes a "closed-loop" system where the simulator learns from real-world interactions, creating a more accurate environment for policy training.
The Real-Sim-Real (RSR) Framework
The core of the proposed method is the RSR Loop Framework, which integrates two interlocking feedback loops:
- Sim-Env Parameter Tuning Loop: Utilizing the MuJoCo MJX differentiable physics engine, simulation parameters (e.g., friction, mass) are treated as optimizable variables. Gradient descent is applied to minimize the physical discrepancy between real-world trajectories and simulated ones.
- Policy Training Loop: Policies are trained within the tuned simulator using an Adaptive InfoGap Loss. This loss function, grounded in information theory, encourages the robot to perform "informative" actions—those likely to reveal remaining discrepancies between the simulation and the real world.
Technically, the InfoGap loss employs Kullback-Leibler (KL) divergence and Wasserstein distance to quantify the gap between simulated and real data distributions. As the simulator becomes more accurate through the tuning loop, the weight of this exploratory loss decreases, allowing the policy to focus entirely on task completion.
Experimental Setup
The framework was evaluated using a combination of high-fidelity simulation and physical hardware:
- Simulation: MuJoCo MJX on the DISCOVERSE platform, enabling hardware-accelerated, differentiable physics.
- Hardware: A 6-DOF AIRBOT Play robotic arm equipped with a RealSense D435i depth camera.
- Tasks: Pushing a standard cube and a geometrically complex T-shaped block to target positions. These tasks require precise modeling of contact physics and friction.
Key Results and Insights
The RSR Loop demonstrated a significant reduction in the sim-to-real gap over successive iterations. In cube-pushing experiments, the KL divergence between sim and real trajectories dropped from 16.35 in the first iteration to 0.97 by the fourth.
Active System Identification
A key insight is the effectiveness of "active" data collection. By specifically probing the environment for information rather than just task success, the robot identifies modeling errors (like incorrect friction) much faster than passive observation. This turns data collection into a strategic search for information.
The Visual Loss Trap
The researchers found that incorporating a "visual loss" (e.g., using SSIM to match rendered images to real photos) actually degraded performance. Attempting to match pixel-level details introduced noise and instability that did not correlate with the underlying physics required for stable control. This suggests that for physical tasks, matching state trajectories is more critical than matching visual appearance.
Conclusion
The RSR Loop Framework provides a sample-efficient, automated method for bridging the sim-to-real gap. By turning system identification into an active, gradient-based optimization process, it enables the transfer of complex manipulation policies without the need for manual parameter tuning. Future work aims to scale this approach to aerial robotics, where aerodynamic modeling presents even greater simulation challenges.
Summary updated