Introduction
Training robotic policies in simulation offers significant advantages, including safety, speed, and access to vast amounts of data. However, the "Reality Gap"—the discrepancy between simulated physics and real-world dynamics—remains a primary obstacle. A policy that achieves perfect scores in a virtual environment often fails when deployed on physical hardware.
A critical, yet often overlooked, challenge in Sim2Real transfer is determining the optimal moment to transition from simulation to reality. Transferring too early results in an under-trained, unreliable policy. Conversely, transferring too late can lead to "overfitting" to the simulator’s specific artifacts, which diminishes the policy's ability to generalize to the physical world. This paper proposes a principled approach to automating this decision, specifically within the complex domain of robotic fabric manipulation.
The Problem: The Deception of Simulation Rewards
In traditional Sim2Real workflows, researchers typically transfer policies after a fixed number of training steps or once simulation rewards plateau. However, simulation performance can be a deceptive metric. In tasks involving deformable objects like cloth, simulators are often imperfect. A policy may continue to improve its virtual "score" by exploiting simulator-specific physics that do not exist in reality, leading to degraded real-world performance.
This research addresses the early stopping problem for Sim2Real. The objective is to identify a "switching point" that maximizes real-world performance while minimizing unnecessary training time and avoiding the pitfalls of simulator overfitting.
Methodology
The authors utilize an Imitation Learning framework where a student policy learns to mimic an algorithmic "oracle" controller within the Gym-Cloth simulator. To determine the optimal transfer point to a physical ABB YuMi robot, they evaluated four distinct switching criteria based on two primary metrics and two stopping conditions.
Metrics for Evaluation
- Simulation Reward: The average fabric coverage achieved within the simulator.
- Epistemic Uncertainty: A measure of the model's internal confidence. By training an ensemble of neural networks, the researchers measure the level of disagreement between models. Low disagreement (high consensus) indicates that the model has converged on the provided data.
Stopping Conditions
To mitigate the inherent noise in robotic learning curves, the authors fit splines to the performance data to calculate stable trends. They then applied two types of logic:
- Value-Based: Training stops when the metric reaches a predefined threshold (e.g., a specific uncertainty level).
- Gradient-Based: Training stops when the rate of change (the slope of the spline) approaches zero, indicating a plateau.
Experimental Results
The criteria were tested on a physical fabric smoothing task, where the goal is to maximize the surface area of a square cloth using a robotic gripper and a 3D camera system.
Key Findings
- Confidence Over Reward: Epistemic uncertainty proved to be a significantly more reliable indicator for transfer than simulation reward. Uncertainty typically plateaus earlier and more cleanly, signaling that the model has extracted all available knowledge from the simulation.
- Efficiency Gains: The uncertainty-based criteria triggered the Sim2Real transfer at approximately 55-60% of the total intended training budget (roughly 111-117 iterations out of 200).
- Superior Performance: The "Confidence Value" method—stopping when uncertainty hit a specific low threshold—achieved the highest real-world performance with 93.7% fabric coverage. This outperformed the policy that was allowed to complete the full 200-iteration training cycle (88.0%), confirming that "more training" can sometimes lead to worse real-world outcomes due to overfitting.
Conclusion and Future Work
This work demonstrates that monitoring a model's internal confidence is a more effective strategy for Sim2Real transfer than simply tracking task success in simulation. By using automated switching criteria, researchers can achieve higher performance with significantly less training time.
While this study focused on Imitation Learning, future work could extend these criteria to Reinforcement Learning (RL) contexts. Additionally, the authors suggest the potential for two-way switching, where a robot might autonomously return to a simulation environment to resolve specific uncertainties encountered during real-world deployment.
Summary updated