Skip to content
Robotics.world

Research

SimEX: Simulation-Integrated Robotics AutoResearch

Coding agents built on large language models can write and debug code, but moving them into the physical world is hard: directly generating robot control code (as in "Code as Policies") often fails…

The paper’s first page · arXiv:2609.38982
arXiv
2609.38982 · Preprint · not peer-reviewed
Published
2026-09-30
Authors
Jiaheng Hu, Roberto Martin-Martin, Peter Stone, Rocky Duan, Zhenyu Jiang, Guanya Shi

In plain words

Coding agents built on large language models can write and debug code, but moving them into the physical world is hard: directly generating robot control code (as in "Code as Policies") often fails because the model has to guess physical quantities like camera calibration error or reachable grasps, while iterating purely on real hardware is costly and unsafe.

AI summary

Overview

Research area: Robotics — LLM-based coding agents, robot manipulation, simulation-based sim-to-real transfer, and automated research ("autoresearch") loops.

Technical level: Intermediate. The core idea is explained conceptually, but the evaluation assumes some familiarity with robot manipulation, simulators, and LLM coding agents.

Scope (one sentence): The paper introduces SimEX, a two-stage framework in which an LLM coding agent first builds a reusable robot "toolbox" through open-ended experimentation in a self-constructed simulator, then adapts that toolbox on a real robot using only a handful of physical trials.

What This Paper Is About

Coding agents built on large language models can write and debug code, but moving them into the physical world is hard: directly generating robot control code (as in "Code as Policies") often fails because the model has to guess physical quantities like camera calibration error or reachable grasps, while iterating purely on real hardware is costly and unsafe. SimEX addresses this by using simulation as a middle ground — a place where the agent can safely probe, fail, and compare hypotheses before touching the robot — while accepting that the simulator will be imperfect and correcting it with a few real rollouts.

Key Contributions

  1. A simulation-integrated autoresearch framework that lets coding agents acquire robot capabilities with a small physical trial budget.
  2. A Stage 1 open-ended simulated autoresearch procedure in which the agent itself generates tasks, environment variations, and executable success predicates — with no ground-truth task distribution and no human-specified metric — and uses probe–focus–optimize cycles plus a capability bank and a population of optimizers to build generalizable skills.
  3. A Stage 2 sample-efficient physical adaptation procedure that turns each single robot rollout into many simulated experiments: the executed policy is replayed in simulation, the simulator is corrected, several candidate repairs are generated from distinct hypotheses, and all are screened in simulation before the next robot trial.
  4. Demonstrations that SimEX solves long-horizon, contact-rich, and deformable-object manipulation on a physical robot without any demonstrations.

Main Findings

  • Strong simulated results across all families: In the controlled sim-to-sim comparison (where a different simulator stands in for the robot), SimEX achieves the highest average success in all three task families and matches or exceeds every external baseline on all 21 evaluation tasks.
  • Largest margin on the longest-horizon task: On barcode scanning, SimEX reaches 85% average success while no external baseline exceeds 18%.
  • Physical robot success: With only about 10 minutes of on-robot interaction per task, SimEX succeeds in 26 of 30 physical evaluation trials (plate 10/10, towel 8/10, barcode 8/10), while no baseline succeeds in more than 3 out of 10 per task; several baselines score 0.
  • Stage 1 leaves the toolbox close to, but not at, deployment-ready: In the Stage 2 online-adaptation curve on barcode scanning, both methods sharing the same Stage 1 toolbox start near zero, so it does not transfer directly — but a single rollout plus one repair improves them sharply, and sandbox guidance more than doubles that gain, with the gap persisting through the fifth rollout.
  • Both stages matter: SimEX outperforms both stage-level ablations (no open-ended discovery, direct repair) in every family.
  • Mechanism ablations all hurt: Removing population diversity, capability-bank replay, repair alternatives, or hypothesis generation each reduces performance, with the largest drops from the two Stage 1 ablations.
  • Conclusions hold across coding agents: Repeating the seven-task barcode comparison with Opus 5, GPT-5.5, and GPT-6 Astra, SimEX remains strongest with every agent and leads the best external baseline by more than 50 percentage points. Absolute performance does track agent strength: GPT-5.5 gives 67% and GPT-6 Astra 82% under otherwise identical settings.
  • Synthesizing a program beats online agent control: On three barcode tasks, SimEX makes a single model call of about 30 seconds per task and all three generated programs complete their validation rollout, whereas the online policy waits over 50 times longer for model responses than it spends executing actions and none of its rollouts finishes within the wall-clock budget.
  • Qualitative adaptation behaviors: The barcode policy discovered a single-arm grasp–present–stow strategy without unnecessary bimanual coordination; the plate policy learned to change grasp side based on plate-to-tote distance; the towel policy learned to flatten the towel after folding.

Methodology in Plain English

The unit of optimization is a portable "toolbox" made of two files: toolbox.py, which implements perception and control primitives on top of a fixed low-level robot API (raw RGBD images only, no privileged scene state, no ready-made manipulation skills), and skill.md, which documents how to use it, including measured limits and known failure modes. To solve a task, an LLM is queried once with the toolbox and the task description and writes a program calling those primitives; that task-specific program is thrown away afterward, so all learning accumulates in the toolbox.

Preparation. A coding agent is given a workspace image, a natural-language description of the objects, an empty robot-station scene template, and a library of 3D meshes, and reconstructs the workspace in a simulator (e.g., mjlab). The point is an executable approximation, not a calibrated digital twin.

Stage 1 — open-ended discovery in simulation. The agent repeatedly probes the toolbox with self-generated tasks and variations (new goals, object categories, mass and friction, placements, robot start configurations), writing an executable success check for each. It then picks one systematic weakness, builds a focused training set for it, and hill-climbs the toolbox on that set plus replay tasks from a "capability bank" of previously solved tasks. Four independent population members each run this full cycle for 20 iterations, may read short descriptions of each other's experiments but cannot copy implementations.

Stage 2 — few-trial adaptation on the robot. Each iteration runs exactly one robot rollout, then replays the exact executed policy in simulation. If the replay does not reproduce the relevant real behavior, the agent edits the simulator and reruns the fixed-policy replay until it does. The agent then forms distinct hypotheses about what to fix, implements four candidate repairs, and screens all candidates plus the current toolbox on the replay and on a small set of self-written test scenes. Crucially, screening does not auto-rank or auto-select: the agent receives the videos, traces, and scores as evidence and judges how much to trust them. This gives five adaptation trials per run.

Evaluation. Seven held-out tasks per family; each adaptive method gets five on-robot trials, after which the toolbox is frozen and evaluated over five i.i.d. rollouts across five random seeds (25 evaluation trials per method–task pair). Sim-to-sim uses MuJoCo as sandbox and Isaac Sim as evaluation for plate and barcode, and FLASH as sandbox with MJWarp Flex as evaluation for towel folding — pairs with distinct physics, contact solvers, assets, rendering, and parameters, and whose state and source the agent cannot inspect.

Why This Matters

Impact on research. The paper reframes what simulation is for. Instead of demanding a high-fidelity digital twin that supports direct policy transfer (as in real-to-sim-to-real methods), it argues a qualitatively correct simulator is enough if what transfers is knowledge and procedures — measured limits, failure modes, and strategies — rather than a policy. That lowers the fidelity bar for sim-to-real robotics and gives autoresearch a safe, cheap substrate for physical capability acquisition.

Real-world applications:

  • Warehouse and fulfillment manipulation: stowing plates or objects, scanning barcodes and presenting labels to fixed readers, sorting cluttered totes.
  • Deformable-object handling: towel folding, fabric shifting and compacting, where grasp location and drag trajectory dominate outcomes.
  • Contact-rich pick-and-place where flat objects require non-obvious geometry-aware grasps (rim pinches, flipping, reorientation).
  • Rapid deployment of new robot cells, where a simulator reconstructed from a photo plus ten minutes of robot time replaces hours of hand-engineered primitives.

Industry relevance. The framework produces a portable, human-readable skill library and documents its costs: per barcode task, Stage 1 costs 840 orchestrator calls, 5.4 hours of agent thinking, and 1.98M output tokens per population member, while Stage 2 costs 124 calls and 31 minutes per run; once optimized, per-task inference is about 30 seconds. It also shows performance scaling with coding-agent quality (67% to 82% from GPT-5.5 to GPT-6 Astra), meaning robotics teams can expect gains from general model progress rather than only from robotics-specific engineering.

Future Directions

  • Beyond a single platform: The evaluation uses one robot platform (the dual-arm YAM); extending to additional robot platforms is named as an important open direction.
  • Closing the human-in-the-loop gap: A human operator still resets the scene between physical trials in Stage 2; automating resets would make SimEX fully autonomous.
  • Simulator correction as a learned asset: The paper corrects the simulator per trial but does not study how far those corrections accumulate or transfer across tasks and workspaces.
  • Where the fidelity threshold lies: Since the method tolerates "roughly correct" physics, an open question is how coarse a simulator can be — the towel tasks use a coarse deformable simulator — before Stage 1's knowledge stops being useful to Stage 2.

Target Audience

Robotics researchers working on sim-to-real transfer, LLM-based robot control, and automated/agentic policy improvement; engineers building manipulation stacks who want reusable skill libraries rather than one-off policies; and ML practitioners interested in how coding agents behave when the environment is physical rather than digital. Readers new to robotics will follow the high-level argument but may need background on manipulation tasks and simulators to interpret the benchmarks.

Authors’ abstract

Coding agents powered by large language models (LLMs) have shown remarkable abilities to autonomously reason about and achieve goals in the digital world. However, bringing this success to the physical world remains challenging. On the one hand, direct generation methods (e.g., Code as Policies) often suffer from the LLMs' insufficient understanding of robots and physical environments. On the other hand, iterative trial-and-error tuning in the physical world (e.g., physical…

The full abstract on arXiv
Read the original paper

Related papers