Real2Gym: Building Gyms from Videos, Bringing Skills to Robots

Kerui Ren, Yingxiang Xu, Kaiwen Song, Linning Xu, Bo Dai, Mulin Yu, Tao LuarXiv 2026

TL;DR

Real2Gym is a framework that transforms single videos of human or robot tasks into interactive, physics-validated simulation "gyms." By allowing an agent to practice, fail, and reflect within these digital twins, it builds a library of reusable, object-relative skills that transfer directly to physical robots, significantly outperforming standard end-to-end models in both success rate and computational efficiency.

What Problem Does This Paper Address?

Robot self-improvement—the ability for a robot to refine its behavior through trial and error—is a cornerstone of embodied intelligence. However, practicing in the real world is prohibitively expensive: it’s slow, risks damaging hardware, and requires constant human supervision to reset scenes.

Simulation offers a safer, scalable alternative, but creating high-fidelity "digital twins" of real-world scenes is traditionally a manual, labor-intensive process. While recent multimodal models like GPT-6 Astra can generate simulation code from images, they often produce "visually plausible but physically impossible" scenes. Inaccurate object scales or misaligned cameras lead to interpenetrating meshes and failed grasps, making these simulations useless for learning fine-grained manipulation. Real2Gym bridges this gap by ensuring that reconstructed environments are not just visually aligned, but physically executable.

Methods

The Real2Gym framework operates in two main phases: Interactive Gym Construction and Agentic Skill Accumulation.

1. Real2Sim Pipeline

  • Scene Reconstruction & Alignment: The system uses geometry estimation (MoGe-3/Pi3X) and semantic segmentation (SAM2) to turn a video frame into a 3D Blender scene.
  • Event-Driven Refinement: This is a key innovation. The agent identifies "event keyframes" (like the moment a hand touches a mug) and performs iterative self-correction to fix penetrations or misalignments between the simulation and the source video.
  • Physics Validation: The scene is instantiated in MuJoCo. The agent verifies that the demonstrated actions actually work under native physics (e.g., the object doesn't fly away or jam).
  • Task-Conditioned Augmentation: To prevent overfitting, the system generates variations of the validated "seed" environment, perturbing object positions, lighting, and distractors.

2. Agentic Skill Accumulation

Instead of training a neural network policy, Real2Gym uses an LLM-based agent to generate executable Python code for manipulation stages (e.g., grasp_mug(), place_inside()).

  • Reflect and Update: The agent practices in the generated gym. If it fails, it analyzes the feedback, corrects its code, and distills the successful logic into a Skill Library.
  • Object-Relative Skills: These skills are defined relative to objects rather than absolute coordinates, allowing them to adapt to new scenes without retraining.
Figure 1: Real2Gym converts human or robot videos into visually aligned and physically executable Blender and MuJoCo environments, where reconstructed interactions are validated under native physics and expanded into feasible task variations. Rather than treating simulation as the endpoint, the agent uses these gyms to execute, fail, reflect, and accumulate reusable skills. The resulting skills are re-grounded from human demonstrations and transferred to real robots through a shared control interface, enabling Real2Sim2Real self-improvement. Project page: https://real2gym.github.io/.

Datasets

The authors evaluated Real2Gym across 24 environments reconstructed from two major datasets:

  • DROID: Real-world robot demonstrations in diverse environments.
  • EgoDex: Egocentric videos of human manipulation with 3D hand tracking. The tasks ranged from simple pick-and-place to complex, long-horizon articulated manipulation (like opening a microwave).

Key Insights and Ideas

  • Physics as a Filter: The most critical insight is that visual similarity is a poor metric for simulation quality. By using a physics engine (MuJoCo) to validate reconstructions, Real2Gym ensures the "gym" is actually functional for learning.
  • Code as Policy: By generating modular code rather than low-level motor commands, the agent can reason about preconditions and recovery strategies. This "agentic" approach makes the resulting skills much more robust to spatial variations.
  • Closing the Loop: The "Place Plate on Shelf" experiment (Figure 6) perfectly illustrates the value proposition: the robot initially fails a high-precision task in the real world, practices in a reconstructed digital twin until it succeeds, and then transfers that refined skill back to reality for a 100% success rate.

Key Results

Real2Gym demonstrates significant gains over state-of-the-art baselines like GPT-6 Astra Direct Mode:

  • Reconstruction Fidelity: Improved viewpoint alignment by 40.83 points on DROID and increased simulation success scores by 51.5% on EgoDex.
  • Efficiency: The skill-guided agent achieved an 87.5% success rate while consuming 74.9% fewer tokens than the baseline, thanks to its ability to reuse distilled skills rather than re-reasoning from scratch.
  • Real-World Transfer: In physical experiments on a Franka robot, Real2Gym exceeded the baseline success rate by 33.3% across four challenging tasks.
Real-world deployment results showing zero-shot success rates and the self-evolution process for the 'Place Plate on Shelf' task.

Limitations and Future Work

Despite its success, the authors note several areas for improvement:

  • Reconstruction Noise: Multi-view misalignment can still cause "ghosting" or layered surfaces in 3D point clouds, which may affect fine-grained physics.
  • Reactivity: The current stage-level code generation is efficient but lacks the high-frequency, "reactive" adjustments needed for extremely tight-tolerance tasks.
  • Embodiment: The real-world tests were limited to parallel-jaw grippers. Future work will look at extending the framework to multi-fingered dexterous hands and humanoid platforms.

Summary updated

BibTeX
@misc{ren2026real,
  author = {Kerui Ren and Yingxiang Xu and Kaiwen Song and Linning Xu and Bo Dai and Mulin Yu and Tao Lu},
  title = {{Real2Gym: Building Gyms from Videos, Bringing Skills to Robots}},
  year = {2026},
  eprint = {2609.37089},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.37089},
}
Figure