Fully Autonomous

Coding agents can train near-perfect robot policies.

An Agentic Robotics paradigm in which coding agents write privileged code, collect data, train policies, analyze failures and refine the code to maximize policy success.

Xinyue Zhu, Shuangyu Xie, Kaiyuan Chen, Uksang Yoo, Yuke Zhu, Linxi “Jim” Fan, Spencer Huang, Ken Goldberg

AutoLab UC Berkeley NVIDIA

Each line is one robot trajectory in the demonstrations. Drag to rotate.

Across 11 tasks on 8 benchmarks, average robot policy success rises from 34.5% with the benchmarks’ published data and training recipes to 98.0% with Agentic Data Curation.

11 single tasks, 200 held-out scenes each

Near-perfect on all eleven single tasks.

The same policy, trained on published benchmark data and on final code data. On the real robot, trained only in simulation, 20 of 20 trials on Insert Plate and 19 of 20 on Tape in Drawer.

Published benchmark data Agentic Data Curation Privileged code

The teacher–student performance gap

Privileged code solves the task. The policy trained on its demonstrations often largely underperforms the code.

Privileged code (teacher)Learned policy (student)Teacher–student gap
MimicGen Coffee
gap
12.5–69.0%98.6–100.0%
MimicGen Mug Cleanup
gap
42.0–60.0%97.0–99.0%
MimicGen Square
gap
25.0–47.0%97.0–98.4%
MimicGen Kitchen
gap
10.5–26.5%98.0–98.6%
0255075100%
Privileged code (teacher)≥ 97%
Learned policy (student)10%–69%

One loop, run by a coding agent.

Robot learning engineers used to improve policy success manually, over many rounds and days. Here, one coding agent does the work.

1

Write privileged code

Python organized as a graph of perception and motion modules (GaP).

perceivegraspinsertclose lid
The coding agent iterates
2

Collect demos & train policy

Record demonstrations from the code and train the policy.

3

Evaluate & analyze failures

Trace each failure to the module where it starts.

4

Refine code, data and training

Edit the code, the data and the training recipe.

The best policy π*

Data flaws, found and fixed by the agents.

What each agent tried, per experiment. Green is in the final data or recipe.

CodeData collectionTraining
Pauses removedVisible decisionsConsistent strategyLarger error marginMore direct motionGripper timingInformative camera viewNo retry loopsAction noiseState disturbancesMore demosData balanceLonger trainingChunk length
robomimic Square
MimicGen Three Piece Assembly
RoboTwin 2.0 Pick Dual Bottles
MimicGen Kitchen
SimScale Put Pot on Cooktop
ALOHA Insertion
MimicGen Coffee
VABAR Scissor Hanging
RoboSimStudio Insert Plate
RoboSimStudio Tape in Drawer
ManiSkill3 LiftPegUpright
LIBERO-Long, 10 tasks
RoboTwin 2.0, 5 tasks
Experiments that kept it98796511537264

in the final data or recipetried, no gaintried, hurtnot applicable

Small code change, large policy gains.

Step through an improvement run, change by change.

Near-perfect policies for every task. Contribute yours.

We want very high-quality data and checkpoints that train near-perfect policies for every task. Run Agentic Data Curation on a new task or benchmark and share what it produces, so everyone can train near-perfect policies for that task.

What you contribute

  • Privileged codethe final program
  • Datathe final code data
  • Checkpointsthe final policy
  • Resultsheld-out success, before and after

Where things stand. Green is done, empty is open, and many benchmarks are not started at all.

  • MimicGen3 of 12 tasks
  • RoboTwin 2.05 of 50 tasks
  • LIBERO10 of 40 tasks
  • robomimic1 of 5 simulated tasks
  • ALOHA sim1 of 2 tasks
  • SimScale1 of 2 tasks
  • VABAR1 of 6 task classes
  • ManiSkill31 task, more open
  • RoboSimStudio2 digital twins, more open

Questions? Answers.

Is the pipeline fully autonomous?

Yes. People set up each benchmark once, with the task, the tools, the budget and the same prompt template for every experiment. From there the coding agent writes the initial privileged code, collects demonstrations, trains, evaluates, analyzes failures, refines the code, data and training recipe and submits policies for held-out evaluation, and no human edits code, data or decisions.

How much time and money does an improvement run take?

Over the ten single-task improvement runs in the paper’s resource table, the agent’s own working time averages about 54 minutes (about $41 at API list prices). All other time in a run is spent waiting for data collection, training and evaluation on the GPUs.

Is the comparison fair? What does the agent change?

The policy architecture and training algorithm never change. The agent starts from the benchmark’s official training recipe and may change only the privileged code that produces the demonstrations, the data, the training length, the saved checkpoint and the actions executed per chunk.

Why not just collect more data or train longer?

Because the problem is in the demonstrations themselves. A pause in the code or a jerky, non-smooth trajectory shows up in every demonstration the code produces, and it hurts policy learning no matter how much data you collect. On LIBERO-Long, for example, training for 200k steps did no better than 100k, so the remaining gains had to come from fixing the code.

Can I use it on my own task?

Yes. The code release includes the agent’s prompt template, its tools, the failure analysis and benchmark adapters. The agent writes the privileged code itself.

What is GaP?

Graph-as-policy (GaP): the privileged code is plain Python organized as a graph whose nodes are perception and motion modules, such as locating the pod or closing the gripper. Because of this structure, every failed rollout can be traced to the node where it first goes wrong.

Paper, code and data.

We release all code, data and checkpoints.

@article{agenticdatacuration2026,
  title   = {Agentic Data Curation: Coding Agents Can Train Policies
             to Privileged-Code Success Rates},
  author  = {Zhu, Xinyue and Xie, Shuangyu and Chen, Kaiyuan and Yoo, Uksang and Zhu, Yuke and Fan, Linxi and Huang, Spencer and Goldberg, Ken},
  year    = {2026}
}