Source-linked AI summary
ACE-CaP-0: Real-World Code-as-Policies in the Era of Experience
CaP Team, Changxu Wei, Yunpeng Qing, Guozheng Ma, Bowen Liu, Zexin He, Yilun Kong, Haoming Gu, Jingyuan Liu, Tianyu Zhu, Jianfei Wang, Junqiang Kou, Huinan Mo, Hao Lv, Pengbin Li, Yuesong Wang, Bo Li, Huan Zhou, Shunyu Liu, Chunxiao Liu, Bixuan Jin, Shaopeng Yin, Fei Wang, Zhi Hou, Jiaxing Huang, Changqing Zou, Dacheng Tao, Xiaogang Wang
TL;DR
Reliable code policies require physical knowledge about manipulation choices, yet physical experimentation consumes robot time and may require human resets. ACE-CaP-0 couples policy revision with on-request demonstrations and simulation within real-world development. Across eight tasks, its frozen programs achieve 92.1% success in 240 trials.
Problem
Reliable code policies require resolving manipulation choices that task instructions leave unspecified, while physical trials consume robot time and can require human scene resets.
Source: §1 · p. 3Method
ACE-CaP-0 couples policy revision with experience acquisition through Demonstrations on Request and Simulation on Demand.
Source: §1 · p. 3Results
92.1% (221/240 trials) success across eight real-world manipulation tasks, with frozen programs executing using runtime perception and control without a human or coding agent in the loop.
Source: §6 · p. 13Takeaways & Limitations
The findings favor robot demonstrations available on request and simulation used selectively during real-world policy refinement.
Source: §6 · p. 13The investigation uses one development run per condition on one task, so consistency across independent development runs remains to be established.
Source: §6 · p. 13
Abstract
from arXiv · showhide
Recent advances in frontier models have pushed the boundaries of agentic robot control, enabling agents to perform complex robotic tasks through reasoning and interaction. However, repeated calls to these models during execution can substantially increase task completion time. Code as Policies (CaP) offers a route for coding agents to acquire physical skills through experience and retain them in executable programs, allowing the reasoning invested in development to be reused across runs. Developing reliable code policies while limiting the cost of physical experimentation remains a central challenge. We investigate human guidance as a source of priors for feasible actions and simulation as an auxiliary environment for exploring and testing candidate policies. Our findings favor robot demonstrations available on request and simulation used selectively during real-world policy refinement. These findings inform ACE-CaP-0, an agentic recipe that couples policy revision with experience acquisition through Demonstrations on Request and Simulation on Demand. Across eight real-world manipulation tasks spanning alignment, multi-object handling, and bimanual coordination, the resulting frozen programs achieve 92.1\% success (221/240 trials). Mean execution times across tasks range from 0.97 to 2.27 minutes. The programs execute with runtime perception and control, without a human or coding agent in the loop. These results highlight CaP's potential to turn experience into reliable, reusable physical skills.
1 Introduction
Code as Policies (CaP) retains development decisions in executable robot programs, but reliable policy development must resolve physical choices under costly experimentation. This work studies human guidance and simulation as sources of experience, then introduces ACE-CaP-0 and evaluates its frozen programs across eight real-world tasks.
1 Introduction
- Repeated model calls during execution can substantially contribute to task completion time, while CaP retains development decisions in executable programs for reuse across runs.Programs can execute with runtime perception and control without requiring the coding agent to select each action.Source: §1 · p. 3
- Reliable code-policy development must resolve choices about grasping, alignment, and coordination, while physical trials consume robot time and may require human scene resets.The paper asks how agents should acquire experience when physical experimentation is costly.Source: §1 · p. 3
- The study favors robot demonstrations available on request and simulation used to investigate current development questions within a real-world feedback loop.Physical execution checks whether the sensing and action assumptions behind simulated revisions hold on the robot.Source: §1 · p. 3
- ACE-CaP-0 couples policy revision with experience acquisition through Demonstrations on Request and Simulation on Demand.During development, the coding agent can request a robot demonstration, examine a candidate revision in simulation, or test the program on the robot.Source: §1 · p. 3
- Frozen programs achieved 92.1% overall success (221/240 trials); each was evaluated in 30 trials without further updates, with mean physical execution times ranging from 0.97 to 2.27 minutes across tasks.Source: §1 · p. 3
2 Investigation
The investigation compares guidance forms and timing, then tests simulation workflows for charger insertion under a shared real-world development and evaluation setup. It favors on-request robot demonstrations and simulation within real-world refinement, while identifying an observation mismatch in sequential simulation transfer.
2 Investigation
- The study uses one development run per condition on charger insertion, with at most ten human-assisted resets for physical trials; each frozen program is evaluated in 30 real-world trials without further updates.Demonstration-collection resets are excluded from the development reset budget.Source: §2 · p. 4
2.1 How Do Human Priors Shape Real-World CaP?
- Robot Demonstrations achieve 86.7% (26/30) final success, compared with 73.3% (22/30) for Robot-Egocentric Human Video and 60% for Textual Guidance.At similar development cost, robot demonstrations outperform human video; they provide target-embodiment trajectories and key joint poses alongside video.Source: Figure 2 · p. 4, §2.1 · p. 5
- Guidance form is tested with textual advice alone, robot-egocentric human video plus text, or kinesthetic robot demonstrations plus text, all available on request.Robot demonstrations include video, arm trajectories, and key joint poses; the two demonstration conditions use a shared centrally mounted camera.Source: §2.1 · pp. 4–5
- 86.7% (26/30) final success for On-Request Guidance versus 53.3% (16/30) for Upfront Guidance, while development time falls from 7.2 to 3.7 hours and output token usage from 1.16 to 0.73 million.On-request access lets the agent seek guidance for its current uncertainty during initial execution or later revision.Source: Figure 3 · p. 5, §2.1 · pp. 5–6
2.2 When and How Should Simulation Support Real-World CaP?
- The simulation comparison includes real-only development, ten simulation rounds before transfer, and simulation available on demand during a real-world feedback loop.On-demand simulation lets the agent choose whether and when to simulate, which task segment and initial state to examine, and which revisions to test.Source: §2.2 · p. 6
- 100% final real-world success for Simulation on Demand versus 86.7% for Real-Only, with development time decreasing from 3.7 to 2.6 hours and output token usage increasing from 0.73 to 1.09 million.The protocols are compared in Figure 4; the conditions share on-request textual guidance and robot demonstrations and the same physical scene-reset budget.Source: Figure 4 · p. 6, §2.2 · pp. 6–7
- Sequential Real-Sim-Real achieves 0% final real-world success after 3.5 hours and 1.86 million output tokens, failing at plug grasping before insertion.In this setup, simulated images are cleaner and simulated depth lacks the real sensor’s close-range blind regions; the workflow tests these sensing assumptions on the robot only after simulated refinement.Source: §2.2 · p. 7
- The findings favor keeping demonstrations available on request and using simulation to examine candidate revisions while physical trials check their sensing and action assumptions.Together, the studies motivate adaptive experience acquisition in which the agent chooses what evidence to obtain as it revises the program.Source: §2.2 · p. 7
3 The ACE-CaP-0 Recipe
ACE-CaP-0 makes the executable program the working artifact: the agent revises it using physical feedback and can seek demonstrations or simulation to resolve development questions. The resulting policy is frozen for standalone execution with runtime perception and control.
3.1 A Unified Policy Development Loop
- The agent writes and revises an executable policy, using the current program, available evidence, and unresolved questions to choose whether to revise, request a demonstration, simulate, or test on the robot.Physical outcomes inform both code revisions and the choice of further experience; demonstrations and simulation can inform one another.Source: §3.1 · p. 7
3.2 Demonstrations on Request
- Kinesthetic demonstrations combine video, arm trajectories, and key joint poses, which inform action order, arm roles, approach directions, paths, and code revisions.The resulting implementation still contains geometry, timing, and contact choices that require assessment in simulation or on the robot.Source: §3.2 · pp. 7–8, Figure 5 · p. 8
3.3 Simulation on Demand
- Simulation on Demand tests candidate program changes for a chosen task segment and initial state, with model fidelity matched to the decision being examined.The agent interprets simulated outcomes in relation to its question, uses them to choose a revision or physical test, and checks the revision on the robot; disagreement can prompt reconsideration of the program or simulator.Source: §3.3 · p. 9
3.4 From Policy Development to Standalone Execution
- The developed program is frozen before evaluation, while runtime perception and control continue to determine actions under fixed decision rules, without a human or coding agent in the loop.The program retains task logic and execution details developed through interaction.Source: §3.4 · p. 9
4 Real-World Evaluation
ACE-CaP-0 was evaluated on eight real-world manipulation tasks using frozen programs and separate trials from development. The programs achieved high overall success, with mean physical execution times below 2.27 minutes across tasks.
4.1 Evaluation Setup
- The eight tasks span alignment, object reorientation, multi-object handling, and bimanual coordination on a dual-arm platform with three cameras.The setup used one top-down camera and two wrist-mounted cameras.Source: §4.1 · p. 10, Figure 6 · p. 10
- Each frozen task program was evaluated in 30 separate real-world trials, with success rate and mean physical execution time measured.Evaluation used fixed decision rules with runtime observations and no further updates.Source: §4.1 · p. 10, §4 · p. 10
4.2 Reliable Execution for Real-World Manipulation
- The results support turning experience acquired during policy development into reusable programs for real-world manipulation.Table 1 reports task objectives, execution performance, and development output-token usage.Source: §4.2 · p. 11, Table 1 · p. 11
- 92.1% overall success (221/240 trials) across eight tasks; mean physical execution times ranged from 0.97 to 2.27 minutes.Seven tasks reached at least 90% success; six averaged less than two minutes.Source: §4.2 · p. 10, Table 1 · p. 11, Figure 7 · p. 11
5 Related Work
Related work spans executable robot policies, learning from execution, human guidance, and simulation. ACE-CaP-0 examines how guidance and simulation are organized during real-world code-policy development.
5.1 Code-as-Policies and Agentic Robot Learning
- Code-as-Policies exposes task logic and motion parameters for inspection and revision, while behavior depends on available interfaces and whether an agent remains in the control loop [11] [12] [6] [8] [11].COAP's reported evaluation is restricted to simulated RoboDojo tasks and public benchmark assets available during development [14]; physical-robot experience-driven program development has also been studied [15] [26].Source: §5.1 · p. 12
- Execution traces, reusable skills, online exploration, reinforcement learning, and demonstrations offer complementary routes for improving programs or learned action policies [8] [10] [12] [26] [12] [27] [3] [28].On physical robots, learning also entails execution, outcome verification, and scene reset, motivating study of experience acquisition when physical trials are scarce [29] [9] [30].Source: §5.1 · p. 12
5.2 Human and Simulated Experience for Policy Development
- Demonstrations preserve different evidence: videos convey interactions and temporal structure, while robot records can add poses, actions, and gripper states [13] [17]; guidance can be requested in response to learner needs [36] [20] [37] [38].The study compares guidance provided at the outset with guidance requested as development proceeds.Source: §5.2 · pp. 12–13
- Simulation can support repeated experiments, planning, and program revision, but its usefulness depends on the decision and errors that matter [22] [43] [44] [45] [46] [47].ACE-CaP-0 examines simulation invoked or constructed during real-world work, with the agent choosing the task part, initial state, and candidate changes to test.Source: §5.2 · p. 13
6 Conclusion
ACE-CaP-0 combines demonstrations on request and simulation on demand with real-world policy refinement. Its frozen programs achieve high success across eight tasks, while the comparison with real-only development identifies a resource trade-off.
6 Conclusion
- Simulation on demand combines higher final success and shorter development time than real-only development, with greater output token usage.The findings favor robot demonstrations on request and simulated experiments targeted at current development questions, with program revisions checked through physical execution.Source: §6 · p. 13
- 221 successes in 240 real-world evaluation trials (92.1%) across eight tasks; the frozen programs respond to runtime observations without a human or coding agent in the loop.Explicit task logic could support future execution-efficiency improvements, with task success revalidated after changes.Source: §6 · p. 13
- One development run per condition on one task leaves consistency across independent development runs unestablished.Broader studies should repeat development across tasks and test reuse under new conditions, with cost accounting that includes demonstration effort.Source: §6 · p. 13
Related papers
This paper cites
- $π_0$: A Vision-Language-Action Flow Model for General Robot Control2024
- RT-2: Vision-Language-Action Models Transfer Web Knowledge to Robotic Control2023
- Robots That Ask For Help: Uncertainty Alignment for Large Language Model Planners2023
- ASPIRE: Agentic /Skills Discovery for Robotics2026
- Agent as Policy for Robotic Manipulation2026
- In-Context Robot Learning with VLM Agents2026