Skip to content

Token Usage Reduced by 74.9%: Real2Gym Turns Simulated Experience into Reusable Real-World Skills

Real2Gym is a research initiative proposed by institutions such as the Shanghai Artificial Intelligence Laboratory, aiming to construct interactive simulation environments through video, enabling robots to learn and transfer skills to the real world. This method combines geometric constraints, interaction keyframe correction, and physics engine validation, significantly improving task success rates and efficiency while reducing model invocation frequency.

Article text · Machine translation

Translation is incomplete. Read the original source for full text.

Shanghai Artificial Intelligence Laboratory

Submission

Quantum Bit | Official WeChat Account QbitAI

Putting a cup into a microwave oven, an action humans almost never think about in daily life, robots may frequently make mistakes on details such as the cup being unstable or the gripper hitting the door frame.

It is feasible to let it improve from failure after failure, but each time letting a real robot try and fail incurs a significant cost in execution, reset, and hardware maintenance.

If the exploration is moved into simulation, new problems arise: although the scene is indeed very similar, can it really replicate the operations in the video?

To address this issue, a research team from

Shanghai Artificial Intelligence Laboratory, Shanghai Jiao Tong University, Zhejiang University, University of Science and Technology of China, Hong Kong University of Science and Technology, and the University of Hong Kong

proposes

Real2Gym

that constructing an interactive simulation environment from human or robot videos, allowing the Agent to explore and accumulate skills, and then applying the experience to real robots. The paper and code are now publicly available.

△

Overview of Real2Gym: Constructing an environment from video demonstrations, exploring in simulation, and applying the skills to real robots.

Why is it not enough for the reconstruction to look realistic?

Multimodal models can already call modeling tools to generate detailed 3D scenes, but robot operations are especially sensitive to geometric errors. A slightly narrow cup mouth, an offset object, or a container blocked by collision models may cause actions that are reasonable in the video to fail in physical execution.

Real2Gym treats

whether an action can be completed in a physics engine

as part of the scene validation. The system must retain the objects, layout, and viewpoint from the video, and also allow the robot to actually perform grasping, placing, and contact.

Two key steps turn the video into a practice environment

First, use geometric clues to constrain the scene, then focus on interaction error correction

For multi-viewpoint videos, Real2Gym uses geometric clues provided by Pi3X, combines SAM2 segmentation to associate objects across different viewpoints, constrains their scale and position, and then builds an editable Blender scene and the corresponding MuJoCo environment. For single-viewpoint input, it adopts the corresponding geometric initialization scheme.

Next, the system focuses on moments when interactions change: when an object is picked up, when it contacts a support surface, and when the gripper releases. Around these key frames, the Agent self-checks the viewpoint, layout, contact, and appearance, and combines adjacent frames for local correction.

For example, in the case of pouring a cup, even if the table and object are already aligned, size errors near the rim may still cause penetration. Key frame checks can concentrate the correction on the area that truly affects the operation, avoiding judgment of reconstruction quality based on a single overall render.

Put the action into the physics engine and check it again

After correction, the action is executed in MuJoCo, checking task completion, support, contact, and stability. The execution trajectory is then fed back to Blender, compared with the original video, to verify visual correspondence and physical feasibility.

△

Real vs. simulated comparison for the block-in-cup task. From left to right: real video, Blender rendering, and MuJoCo execution, showing the correspondence of the same operation in the three visualizations.

Validated scenes can also change object positions, table height, materials, backgrounds, lighting, or obstacles. Changes that affect the motion space need to be adapted to the action and re-validated, thus providing more practice environments for the Agent.

△

From geometric initialization, interaction key frame error correction to physics execution validation, Real2Gym expands the reconstructed scene into an environment for the Agent to explore.

Let one decision advance one operation phase

With a practice field, the Agent still needs to complete exploration efficiently. Real2Gym elevates the goal of each round of decision from generating a single action to generating code to execute one operation phase.

For example, one round of response can arrange approaching the cup, closing the gripper, lifting and checking if it is securely grasped, organizing multiple actions and validation conditions together, reducing the number of times the model is requested. SAM3 provides object localization clues, and GraspNet provides grasp candidates, helping the Agent translate the task intent into executable actions.

After execution, the Agent organizes successful steps, failure causes, and recovery methods into reusable skills. The experience describes how the Agent should act relative to the object, when to check, and how to correct after failure; when reused, it needs to be repositioned and adjusted based on the current observation.

The self-improvement here is achieved through updating the skill library, while the underlying model weights remain unchanged. Each new task starts from an independent context, receives selected skills, so it can test the effect of the experience itself.

Higher success rate also reduces model round trips

The team selected 24 scenarios from DROID and EgoDex, covering robot demonstrations and human operation videos. In reconstruction evaluation, Real2Gym outperforms the compared GPT baselines in content alignment, viewpoint alignment, action fidelity, and simulation success score. Qualitative comparison shows that it better preserves cabinet structure, relative object size and position, and the original camera viewpoint.

△

Compared to the original video, the scenarios reconstructed by Real2Gym are closer to the actual layout and task-related structures. From top to bottom in the figure are GPT-5.6 Sol, GPT-6 Astra, Real2Gym, and the real video.

In the agent evaluations in these environments, after reusing the first-round experience, the second execution achieved an average success rate of

87.5%

GPT-6 Astra Direct Mode baseline is 70.8%; strategy execution

reduces token usage by approximately 74.9%

The average number of model responses also dropped from about 31 times to about 14 times.

Phase-level code allows a single decision to advance more actions, while skill reuse reduces redundant exploration. The paper also demonstrated a case in the stacking bowls task where Real2Gym succeeded, while the two GPT baselines failed, along with a more direct cabinet operation and adapter placement process after experience reuse. The above cost statistics target strategy execution and do not include scene construction and separate skill extraction.

Correcting failures in simulation and returning to the real machine

On the Franka robotic arm, the team tested four tasks: block into tray, hanging cup, placing a cup into a microwave and closing the door, and stacking a plate. In the first three tasks with three attempts each, Real2Gym succeeded in all; the GPT-6 Astra baseline succeeded once, three times, and once respectively.

Placing the dish on the rack caused difficulties for both methods: the depth of grasping, the orientation of the rim, and the placement accuracy in narrow spaces must all meet the requirements. During the initial execution, neither method was successful.

The team then recorded human demonstrations and reconstructed an interactive digital twin. The agent failed in the first two attempts in simulation, but succeeded in the third iteration, and then combined real-time observation from the real machine to complete the originally failed task. This demonstrates

the complete process of starting from real demonstrations, improving skills through simulation exploration, and then validating in the real world.

△

Real-world execution of stacking a plate: skills accumulated in simulation helped the robotic arm complete a task that originally failed. Left and right are external and wrist perspectives, respectively, with the clip accelerated.

Making operational videos the starting point for robot experience accumulation

Real2Gym provides a path to utilize operational videos: from demonstrations to build environments, allowing robots to gain feedback through execution, and then saving the experience as reusable skills. As more videos are converted into interactive tasks, robots are expected to accumulate richer operational experiences in simulation.

Currently, point cloud noise still affects reconstruction, and phase-level control has room for improvement in fine-grained operations; real-world validation is limited to Franka and parallel grippers. Expanding to dexterous hands and humanoid robots requires further experiments.

Paper title: Real2Gym: Building Gyms from Videos, Bringing Skills to Robots

Authors: Kerui Ren, Yingxiang Xu, Kaiwen Song, Lingning Xu, Bo Dai, Mulin Yu, Tao Lu. Kerui Ren and Yingxiang Xu are co-first authors, while Mulin Yu and Tao Lu are corresponding authors.

Project homepage: https://real2gym.github.io/

Paper: https://arxiv.org/abs/2609.37089

Real2Sim code: https://github.com/real2gym/Real2Gym

Agent code: https://github.com/real2gym/R2G_Agent

One-click triple action

"Like","Share","Heart"

Welcome to leave your thoughts in the comment section!

—

End

—

[Academic Submission] Please send an email during business hours to:

ai@qbitai.com

with the subject line [Submission], and tell us:

Who you are, Where you're from, Submission content Attach Project/homepage link, and Contact information.

🎓

We will (try to) reply to you promptly :)

🌟 Light up the star rating 🌟

Frontier advances in technology every day

Source notes

  1. Token用量减少74.9%:Real2Gym把仿真经验变成真机可复用技能↩
Source evidence

Reported by the source; not independently verified.

Environment
Simulation[2][3][4]
Reported success rate
87.5%[5]

Not established in the collected evidence: Control, Data origin.

Reported performance applies to the described task. It does not establish general autonomy or deployment readiness.

  1. 针对这一问题,来自 上海人工智能实验室、上海交通大学、浙江大学、中国科学技术大学、香港中文大学和香港大学 的研究团队提出 Real2Gym :从人类或机器人视频构建可交互的仿真环境,让Agent在其中探索、积累技能,再将经验用于真实机器人。
    Exact source↩
  2. 执行轨迹随后导回Blender,与原视频对照,核查视觉对应和物理可行性。
    Exact source↩
  3. 在仿真里修正失败再回到真机 在Franka机械臂上,团队测试了方块入盘、挂杯、杯子放入微波炉并关门,以及盘子上架四项任务。
    Exact source↩
  4. 在这些环境中的Agent评估里,复用首轮经验后的第二次执行,平均成功率达到 87.5% ,GPT-6 Astra Direct Mode基线为70.8%;策略执行的 Token用量减少约74.9% 。
    Exact source↩
  5. Token用量减少74.9%:Real2Gym把仿真经验变成真机可复用技能
    Exact source

Automatically extracted; no manual editorial approval recorded.

Article details
SignalEditorial score72

Paper and code are publicly released; method allows simulating robot skills from videos for real-world transfer.

Timezone · UTC

Article dates follow your selected timezone. Briefing editions use Hong Kong time (UTC+8).