DemoFoundry: Toward Scalable Photorealistic Robot Data with Coding Agents and Generative Rendering
Organizations: The Chinese University of Hong Kong, Shenzhen · DexForce Technology Co., Ltd. · Foshan University
Abstract
Scaling robot learning requires demonstrations that combine realistic visual observations with reliable action supervision. Simulation-based synthesis faces a substantial visual gap relative to real environments, while video-only generation struggles to maintain physically consistent interactions and provide aligned action labels. We present DemoFoundry, an automated framework that couples coding agents with generative rendering to synthesize photorealistic and physically grounded robot demonstrations. Coding agents both construct aligned real--proxy video pairs from existing robot episodes to train a video renderer and write executable interaction programs to generate new demonstrations. Given a scene reference and task instruction, an agent reconstructs task-relevant geometry and writes a control program without requiring target-task human demonstrations. Program execution in a physics simulator produces proxy videos with aligned robot states and actions. The video renderer translates these proxy videos into scene-consistent, photorealistic observations, reducing the need for detailed appearance modeling in each scene. Automated task-execution checks select successful trajectories for rendering and policy learning. Experiments show improved visual quality and action--video consistency. Policies trained on the generated demonstrations outperform raw-simulation training and approach the performance of training on an equal number of real demonstrations.
Figures & tables
| Method | Paired | Zero- | Scene | Task | Sim. | Video |
|---|---|---|---|---|---|---|
| data | shot | agent | code | acts | model | |
| RoboTwin 2.0 [ 7 ] | — | ✓ | ✗ | ✓ | ✓ | ✗ |
| Re 3 Sim [ 19 ] | — | ✓ | ✗ | ✗ | ✓ | ✗ |
| Agentic Real2Sim [ 5 ] | Replay | ✗ | ✓ | ✗ | ✓ | ✗ |
| DreamGen [ 25 ] | — | ✓ | ✗ | ✗ | ✗ | ✓ |
| RoboRender [ 23 ] | Derived | ✓ | ✗ | ✗ | ✓ | ✓ |
| Method | PSNR (dB) | SSIM [ 54 ] | LPIPS [ 62 ] | FID [ 20 ] | FVD [ 49 ] |
|---|---|---|---|---|---|
| Raw simulation | 8.468 | 0.5005 | 0.6272 | 237.48 | 1618.89 |
| Wan2.2-Fun-5B-Control [ 1 ] | 14.537 | 0.6548 | 0.3412 | 155.26 | 897.33 |
| Cosmos-Transfer2.5 [ 34 ] | 12.115 | 0.4929 | 0.5769 | 229.89 | 1290.42 |
| RoboTransfer [ 30 ] | 15.008 | 0.6287 | 0.3614 | 161.73 | 1018.46 |
| RoboRender [ 23 ] | 16.925 | 0.6612 | 0.2949 | 116.81 | 815.21 |
| LTX-2.5 Layout-to-Render [ 29 ] | 16.989 | 0.6552 | 0.3014 | 127.43 | 886.74 |
| Method | PCK@5% | Flow nEPE | TRAJAN distance | EventAlign s |
|---|---|---|---|---|
| RoboRender [ 23 ] | 86.57 | 0.456 | 26.060 | 54.55 |
| MiniMax-H3 [ 33 ] | 93.55 | 0.461 | 24.251 | 80.95 |
| Ours (H3) [ 33 ] | 97.24 | 0.433 | 22.294 | 95.23 |
| Can to tray | Block stacking | Pen to holder | Average (%) | |||||||
| Training data | Real | Syn. | DP | DP | DP | DP | ||||
| Simulation only | 0 | 50 | 7/30 | 11/30 | 4/30 | 8/30 | 0/30 | 6/30 | 12.2 | 27.8 |
| Real only | 50 | 0 | 18/30 | 23/30 | 13/30 | 16/30 | 13/30 | 17/30 | 48.9 | 62.2 |
| Real + Simulation | 50 | 100 | 17/30 | 22/30 | 15/30 | 19/30 | 11/30 | 16/30 | 47.8 | 63.3 |
| DemoFoundry only | 0 | 50 | 17/30 | 22/30 | 13/30 | 17/30 | 12/30 | 15/30 | 46.7 | 60.0 |
| Real + DemoFoundry | 50 | 100 | 24/30 | 27/30 | 21/30 | 23/30 | 20/30 | 24/30 | 72.2 | 82.2 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Source-episode reconstruction | New-task programming |
|---|---|
| Execution | |
| Replay the recorded controls in the reconstructed scene with the original camera calibration. | Run the agent-written program in scene using the robot-control tools in . |
| Feedback and revision | |
| A silhouette mismatch identifies an object, camera view, and keyframe. Revise the object’s geometry, scale, or initial pose and replay the same controls. | Execution errors or a failed task-completion check guide revisions to . Test the revised program in the simulator. |
| Acceptance and output | |
| Keep the real–proxy pair if every visible object’s silhouette IoU is at least 0.80 in every checked view and keyframe. Discard it if it still fails after three refinement rounds. | Reuse a successful program across randomized layouts. For each successful rollout, send to rendering and retain the aligned states and actions . |
| Reconstruction | Pass rate | Mask | Track error | Motion |
|---|---|---|---|---|
| stage | (%) | IoU | (%) | corr. |
| Initial replay | 33.1 | 0.517 | 1.370 | 0.893 |
| +1 refinement | 35.3 | 0.554 | 1.214 | 0.907 |
| +2 refinements | 36.8 | 0.568 | 1.082 | 0.919 |
| +3 refinements | 39.7 | 0.601 | 0.956 | 0.932 |
| Training data | Green bottle | Background color | Lighting |
|---|---|---|---|
| Simulation + DR | 5/30 | 10/30 | 2/30 |
| DemoFoundry | 21/30 | 22/30 | 18/30 |