GRS: Generating Robotic Simulation Tasks from Real-World Images

Alex Zook, Fan-Yun Sun, Josef B. Spjut, Valts Blukis, Stan Birchfield, Jonathan Tremblay

Abstract

We introduce GRS (Generating Robotic Simulation tasks), a system addressing real-to-sim for robotic simulations. GRS creates digital twin simulations from single RGB-D observations with solvable tasks for virtual agent training. Using vision-language models (VLMs), our pipeline operates in three stages: 1) scene comprehension with SAM2 for segmentation and object description, 2) matching objects with simulation-ready assets, and 3) generating appropriate tasks. We ensure simulation-task alignment through generated test suites and introduce a router that iteratively refines both simulation and test code. Experiments demonstrate our system's effectiveness in object correspondence and task environment generation through our novel router mechanism.

Introduction

Creating functional "digital twins"—virtual replicas of real-world environments—is a cornerstone of modern robotics. However, the "real-to-sim" pipeline is notoriously difficult, often breaking down during perception, asset mapping, or task definition. Most existing methods produce static scenes that are not interactive or functional for training.

GRS (Generating Robotic Simulation tasks) automates this entire pipeline, transforming a single RGB-D image into a fully functional, task-oriented robotic simulation. By combining vision-language models (VLMs) for scene understanding with a novel iterative "router" that debugs simulation code against generated unit tests, GRS creates digital twins that are physically solvable for robot training.

GRS transforms real-world images into simulation environments with generated tasks.

Methodology: The GRS Pipeline

The GRS system operates in four primary stages to ensure the resulting simulation is not just visually accurate, but physically solvable.

The GRS pipeline: from scene comprehension to iterative simulation refinement.

1. Scene Comprehension and Asset Mapping

The process begins with SAM2 (Segment Anything Model 2) to segment objects from an RGB-D image. A VLM (such as GPT-4o) then generates detailed text descriptions for each segment. These descriptions are matched against a pre-processed database of 3D assets using a "multi-perspective" approach, comparing real-world crops and descriptions against multiple rendered views of 3D assets to ensure high-fidelity correspondence.

2. Task Generation and Initial Simulation

Based on the identified objects, the system generates appropriate robotic tasks (e.g., "discard all the cylinders" or "stack the cubes together"). It then produces the Python code required to initialize the simulation environment and a suite of unit tests to verify task completion.

3. Iterative Refinement via the Router

The core innovation of GRS is the iterative router. Instead of a single-shot generation, GRS runs the generated tests using an "oracle" (a perfect robotic policy). If the tests fail or the code crashes, an LLM-based router analyzes the error and decides whether to fix the simulation code or the test specification itself. This iterative loop continues until the simulation is error-free and the task is successfully completed by the oracle.

Key Results

Experiments conducted on the HOPE dataset and Objaverse library demonstrate the system's effectiveness:

  • Object Correspondence: Using GPT-4o with both images and text descriptions achieved an F1 score of 0.89, significantly outperforming CLIP-based baselines (0.76).
  • Task Success: GRS achieved an average reward of 0.71 in robot task generation, a substantial improvement over the "LLM-only" baseline (0.47) and versions without the iterative router (0.65).
  • Efficiency: The router mechanism proved more efficient than standard code repair, requiring fewer total code changes to reach a successful state.

Conclusion and Future Work

GRS bridges the gap between static scene reconstruction and functional robotic training environments. By treating "solvability" as a primary metric and allowing for the refinement of both simulation and test code, it creates more robust digital twins. Future work will focus on estimating physical properties (like mass and friction) directly from images and scaling the system to handle more complex, large-scale semantic tasks.

Summary updated

BibTeX
@inproceedings{zook2025grs,
  author = {Alex Zook and Fan-Yun Sun and Josef B. Spjut and Valts Blukis and Stan Birchfield and Jonathan Tremblay},
  title = {{GRS: Generating Robotic Simulation Tasks from Real-World Images}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
  url = {https://openreview.net/forum?id=QUq0fucSQW},
}
Figure