DemoFoundry: Toward Scalable Photorealistic Robot Data with Coding Agents and Generative Rendering

Ruixiang Wang, Xinyue Yao, Xuanning Zhou, Yueci Deng, Yongyi Su, Kui JiaarXiv 2026

TL;DR

Teaching robots to navigate the physical world requires massive amounts of training data, forcing a frustrating choice between tedious human teleoperation, unrealistic physics simulations, or hallucinatory AI video generators. DemoFoundry solves this by teaming up AI coding agents with generative video models: an agent writes code to physically simulate a task—capturing exact motor controls—and a fine-tuned video renderer paints photorealistic visuals right over the bare-bones simulation. The result is an automated factory for realistic, physically grounded robot training data that rivals real-world human demonstrations at a fraction of the cost.

Figure 1. DemoFoundry overview. The left panel shows how a real-world scene reference guides agent-written programs, physics-based simulation, and video rendering for robot learning. The right panel presents proxy-to-video rendering examples across tasks and camera viewpoints, including external, head, and wrist views.

What Problem Does This Paper Address?

To train generalizable robot brains (policies), you need thousands of demonstrations pairing realistic camera footage with exact motor commands (actions). Right now, we have three flawed ways to get this data:

  1. Human Teleoperation: Humans puppeteering robots gives great data, but it is exhausting, slow, and expensive to reset environments between trials.
  2. Physics Simulators: You can run thousands of trials in simulation with exact action labels, but simulated lighting, textures, and materials look noticeably fake—creating a "sim-to-real" visual gap that confuses robots deployed in the real world.
  3. Generative Video Models: Modern AI can dream up gorgeous, photorealistic videos of robots doing chores. However, these videos often violate basic physics (objects morphing or floating) and don't tell you what motor commands the robot actually used to move its joints.

DemoFoundry bridges this divide by cleanly separating how things move (physics and control) from how things look (appearance synthesis).

Methods

DemoFoundry operates in two main phases: building a universal "sim-to-real" video translator, and using it to generate brand-new robot demonstrations from scratch.

Figure 2. DemoFoundry pipeline. (a) A pair-construction agent writes and refines reconstruction, alignment, and simulation programs to convert diverse existing demonstrations into real–proxy video pairs. (b) The paired dataset supervises a video renderer conditioned on a proxy video and an initial RGB reference frame. (c) In a new scene, an agent builds a task program and executes it under randomized simulator layouts. For successful executions, initial proxy frames guide matching RGB-reference generation before video rendering. Simulation retains actions and robot states for robot learning without new target-task demonstrations.
  • Agent-Built Training Pairs & Renderer Adaptation: First, a coding agent (GPT-6 Astra) looks at existing real-world robot videos, extracts 3D object shapes (using segmentation and 3D reconstruction tools like SAM 3.1 and SAM 3D Objects), and rebuilds the scenes in a physics engine (MuJoCo or DexSim). It replays the robot's recorded actions and checks if the simulated object silhouettes match the real video (requiring $\ge 0.80$ IoU overlap), refining the geometry up to three times if they drift. These aligned "proxy" (bare-bones simulation) and real video pairs are used to fine-tune pretrained video models (LTX-2.5 and MiniMax-H3) via LoRA.
  • Zero-Shot Demonstration Generation: Give DemoFoundry a single photo of a new scene, camera/robot specs, and a text command (e.g., "place the can in the tray"). No human demonstrations are needed. The coding agent reconstructs the 3D objects, writes a Python control program to solve the task, and runs it across randomized object layouts in simulation. Successful runs yield proxy videos and exact action labels. Finally, an image editor adjusts the initial reference photo to match the new randomized layout, and the trained video renderer translates the untextured proxy video into photorealistic camera footage.

Datasets

  • Source Datasets: To train and test their video renderers, the authors pulled episodes from four public robot manipulation datasets: DROID, AgiBot World, RoboMIND, and RH20T.
  • New Paired Dataset: Using their automated reconstruction agent on those four sources, the authors introduce a new dataset of 1,884 aligned real–proxy video pairs (totaling 1,522 minutes of footage across external, head, and wrist camera views), which they plan to release publicly.
  • Real-World Evaluation: Downstream robot policies (Diffusion Policy and the vision-language-action model $\pi_{0.5}$) were evaluated on a real dual-arm TianJi Marvin M6S robot across three tasks: can-to-tray, block stacking, and pen-to-holder.

Key Insights and Ideas

  • Raw simulation data can stall out, while rendered data compounds: Adding 100 raw, untextured simulation demos to 50 real human demos barely moved the needle on real-robot performance (changing success by $-1.1\%$ to $+1.1\%$). Upgrading those exact same trajectories with DemoFoundry's renderer boosted success rates by 20+ percentage points.
  • Domain randomization via text prompts: Traditionally, making a robot robust to lighting or color changes meant manually coding texture randomizers in a 3D engine. Because DemoFoundry uses a generative video renderer, you can randomize visual appearances—like turning a can into a green bottle or changing room lighting—simply by editing the text prompt during rendering.
  • The economics flip in favor of synthesis at scale: Human teleoperation costs roughly $2.42** per 30-second demonstration. DemoFoundry has an upfront AI coding cost of about $9 per task, plus $0.765 in GPU rendering time per demo. By the time you generate 100 demos, the amortized cost drops to **$0.855 per demo—nearly three times cheaper than human labor.

Key Results

  • Visual Fidelity & Alignment: On held-out video pairs, DemoFoundry's fine-tuned MiniMax-H3 renderer beat all baselines, improving pixel accuracy (PSNR) from 15.46 dB to 23.32 dB, slashing video distribution error (FVD) by 68.0%, and boosting action-timing alignment (EventAlign) from 80.95% to 95.23%.
  • Zero-Shot Policy Learning: With zero real-world target data (50 synthetic demos per task), $\pi_{0.5}$ trained on DemoFoundry achieved a 60.0% average real-robot success rate—crushing raw simulation training (27.8%) and nearly matching 50 real human demonstrations (62.2%).
  • Data Scaling: Mixing 50 real demos with 100 DemoFoundry demos pushed $\pi_{0.5}$ success to 82.2%. Scaling purely synthetic training data up to 200 demos per task drove $\pi_{0.5}$ success all the way to 85.6%.
  • Visual Generalization: Under altered lighting, backgrounds, and object swaps on the can-to-tray task, DemoFoundry achieved 18 to 22 successes (out of 30 trials) compared to just 2 to 10 for standard simulation domain randomization.

Limitations and Future Work

  • Multi-view consistency: Because each camera angle (e.g., head view vs. wrist view) is rendered independently from its respective proxy video, visual details aren't guaranteed to match perfectly across viewpoints.
  • Autoregressive drift: Long robot trajectories have to be rendered in sliding chunks (e.g., 158-frame windows), where each new chunk relies on the last frame of the previous one. Over very long rollouts, visual quality can gradually drift.
  • Future directions: The authors suggest tackling these two hurdles by exploring joint multi-view video generation and adding memory-based conditioning across video segments.

Summary updated

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.
BibTeX
@misc{wang2026demofoundry,
  author = {Ruixiang Wang and Xinyue Yao and Xuanning Zhou and Yueci Deng and Yongyi Su and Kui Jia},
  title = {{DemoFoundry: Toward Scalable Photorealistic Robot Data with Coding Agents and Generative Rendering}},
  year = {2026},
  eprint = {2611.34671},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34671},
}
Figure