Research
RoboAware: Learning to Coordinate Embodied Skills from Counterfactual Outcomes
Embodied coding agents can write code that either calls modular perception/grasping/motion APIs or invokes a frozen end-to-end policy (such as a VLA), but they have no inherent way of knowing which…

- arXiv
- 2610.11480 · Preprint · not peer-reviewed
- Published
- 2026-10-08
- Authors
- Bohan Zhou, Xingbei Chen, Emily Huang, Weilin Ruan, Haojian Huang, Yehang Zhang, Zexi Li, Wenqian Li, Qize Yu, Zetian Song, Leyi Wu, Jinghao Li, Mingxuan Song, Xinrun Xu, Zongyang Qiu, Yangkai Wei, Tianyi Zhang, Kaiwen Zhou, Yinchuan Li, James Cheng
In plain words
Embodied coding agents can write code that either calls modular perception/grasping/motion APIs or invokes a frozen end-to-end policy (such as a VLA), but they have no inherent way of knowing which of these two "policy families" will succeed in the robot's current physical state.
AI summary
Overview
Research area: Robotics — embodied manipulation, code-as-policy agents, and orchestration of heterogeneous robot skill families (modular APIs and frozen end-to-end VLA/world-action models).
Technical level: Advanced. The paper assumes familiarity with hierarchical Markov decision processes, Monte Carlo tree search, Q-learning, vision-language-action models, and code-generating agents.
Scope: A single paper introducing RoboAware, a framework that learns a state-conditioned "responsibility coordinator" deciding, at each semantically defined skill stage, whether a modular code composition or a frozen end-to-end policy should control the robot.
What This Paper Is About
Embodied coding agents can write code that either calls modular perception/grasping/motion APIs or invokes a frozen end-to-end policy (such as a VLA), but they have no inherent way of knowing which of these two "policy families" will succeed in the robot's current physical state. RoboAware's goal is to endow such an agent with outcome-aware execution responsibility, by learning from counterfactual outcomes — what each family would have done from the same physical state — rather than only from the branch that happened to be executed.
Key Contributions
-
A staged formulation of coordination. The paper proposes the P^5 skill schema (perceive, propose, pre-manipulate, perform, post-manipulate), which unifies primitive skills (e.g., pick, place, push, pull) and compositional skills (e.g., handover) under one representation, and formulates a finite-horizon hierarchical MDP in which the high-level action is a policy-family choice c_i ∈ {Mod, E2E} made at each P^5 stage boundary. A curated API library supplies both families: modular backends (InstructSAM, an augmented NeuGraspNet+ that expands sparse geometric candidates and selects Top-1 only among planner-feasible grasps, and cuRoboV2) and end-to-end backends (π_0.5 and FastWAM) exposed through
Perform_E2E. -
State-Locked Counterfactual Branching (SCB). Because existing work never observes the outcome of the branch that was not selected, SCB uses simulator save-restore plus oracle outcome judgments to execute every admissible family from an identical restored state, producing same-state paired outcomes at each P^5 decision point.
-
Execution-Aware Learning (EAL). Monte Carlo tree search (UCB selection, SCB expansion, suffix rollout, backup) explores the tree of restorable decision states, and Q-learning distills the collected transitions — including failed and nonpreferred branches — into a family-conditioned value function Q_θ, trained with a Smooth-L1 Bellman objective.
-
A deployable coordinator evaluated at scale. The coordinator is recovered from Q_θ and evaluated on 100 tasks across three benchmarks, reporting a 77.0% overall success rate, with averages of 90.0% on RoboSuite, 73.8% on LIBERO-Pro, and 90.0% on RoboTwin bimanual tasks.
Main Findings
-
Overall result: RoboAware reaches 77.0% overall success across 100 tasks. Per-benchmark averages are 90.0% (RoboSuite), 73.8% (LIBERO-Pro), and 90.0% (RoboTwin 2.0). Per-split LIBERO-Pro numbers are Spat-T 68.0, Spat-S 68.0, Obj-T 92.0, Obj-S 86.0, Goal-T 66.0, Goal-S 84.0, L10-T 64.0, L10-S 62.0; RoboTwin L10-T and L10-S are each 90.0.
-
Comparison against baselines: Overall scores are 0.0 (π_0), 9.8 (π_0.5), 14.2 (FastWAM), 18.6 (FasterWAM), 7.6 (CaP), 6.7 (CaP-X), 9.9 (RATS), 57.0 (ASPIRE), 41.7 (Pigey), 32.6 (VLS), and 50.0 (Harness-VLA) versus 77.0 for RoboAware. π_0 and π_0.5 are marked "/" on RoboTwin because they are incompatible with its dual-arm setup.
-
Neither family alone suffices: Restricting code generation to modular composition only (RoboAware-MO: 54.8 LIBERO-Pro / 67.5 RoboSuite / 41.9 RoboTwin) or to end-to-end blocks only (RoboAware-EO: 49.5 / 60.0 / 45.6) drops performance well below the full system (73.8 / 90.0 / 90.0). In a LIBERO-Pro example the two ablations fail at different stages, while RoboAware succeeds by switching families across P^5 boundaries.
-
Counterfactual pairing matters, and training matters more than no training at all: RoboAware-UO (trained on executed trajectories without state-locked branching) scores 58.5 / 75.0 / 53.8, above RoboAware-TF (no coordinator training, agent chooses directly: 51.0 / 60.0 / 40.0) but below full RoboAware. The authors read the UO-versus-TF gap as evidence that coding agents lack inherent execution awareness, and the UO-versus-full gap as evidence that paired same-state execution is needed to avoid selection bias.
-
Per-stage coordination beats coarser schemes: A fixed handoff protocol (modular APIs for perceive and pre-manipulate, then an E2E call) gives RoboAware-FH 64.5 / 82.5 / 55.6; choosing one family at episode start gives RoboAware-ES 59.3 / 70.0 / 51.9. Both trail per-stage reselection.
-
UCB-guided budgeting is more efficient than uniform allocation: On RoboSuite, RoboAware exceeds RoboAware-UA (uniform allocation across families) under matched budgets of K ∈ {5, 10, 20, 50}; gains diminish with K, and K = 20 is adopted as the elbow.
-
Low sensitivity to coding agent and embodiment: Across three coding-agent backends (Claude Code as default, Cursor, Codex) and four embodiments (Aloha-AgileX default, Franka-Panda, ARX-X5, UR5-WSG) on four RoboTwin 2.0 tasks, the paper reports a small average success-rate gap, attributed to P^5 limiting each generation to a single code block and to cuRoboV2 supporting different robots behind the same interface.
-
Offline screening justified the split of roles: In the screening table, π_0.5 scores 10/14 on full LIBERO-Pro tasks but 0/4 on RoboSuite and 0/10 on RoboTwin, while FastWAM scores 10/10 on full RoboTwin tasks but 0/4 on RoboSuite — motivating the use of VLA/WAM policies as local grasp-and-lift executors rather than whole-task controllers.
-
Not reported: The number of simulator training tasks used for SCB collection, the specific weights w_p, w_m, w_t, training compute, and wall-clock overhead of branching are not given in the provided content.
Methodology in Plain English
The system has two levels. At the top, a small learned "coordinator" looks at the language instruction, camera image, depth, proprioception, execution history, current stage, and active skill, and picks one of two families for the next chunk of work: Mod (write code that calls explicit modular APIs) or E2E (hand control to a frozen end-to-end policy). At the bottom, a frozen coding agent — Claude Code by default — writes the actual code block for whichever family was chosen and runs it until the next semantic boundary.
To decide boundaries, the authors borrow the feel of a REPL: every skill is split into five stages (perceive, propose, pre-manipulate, perform, post-manipulate), so coordination decisions happen at meaningful checkpoints instead of arbitrary timesteps. The propose stage admits only the modular family, because end-to-end backends choose grasp targets internally and never expose them through that interface.
The learning signal is the interesting part. Normally you only see what the branch you ran actually did. Here, during training only, the simulator is saved and restored so that both families can be tried from the exact same physical state, each producing a code block, an execution, and an outcome. This is SCB. A Monte Carlo tree search walks this restorable tree, using UCB to decide which family edge to spend the next simulation on, rolling out suffixes to estimate returns and backing the returns up. Rewards combine a perception score (agreement with an oracle mask), a manipulation score (object-pose error against ground-truth poses under a threshold), and the terminal binary task-success reward, with weights summing to one. All visited edges — successes, failures, and branches the search preferred against — go into a dataset, and a Q-function is fit to that dataset by Bellman updates rather than by regressing the rollout returns directly.
That Q-function is a small vision-language model (Qwen3.5-0.8B is named as an example) with an MLP head reading a <VALUE> token, taking the context and family as input. At test time there is no simulator, no save-restore, and no privileged state: the coordinator just takes the argmax over the two Q-values, the coding agent writes code for that family, and the loop repeats at the next stage boundary.
Why This Matters
Impact on research. The paper targets a real gap in hybrid embodied systems: harnesses that wrap frozen VLAs in a code layer currently decide when to invoke the policy using heuristics, retrospective traces, or VLM judgments of the executed trajectory — all of which inherit selection bias. Providing genuinely paired, same-state outcomes for two different executor families gives a cleaner supervision signal for the routing decision, and reframes "which executor should act" as a learnable value-estimation problem rather than a prompting problem. The P^5 schema also offers a shared interface vocabulary that could let other heterogeneous policy types (retrieval-based, demonstration-learned) be compared on equal footing.
Real-world applications:
- Warehouse and fulfilment pick-and-place, where scene variation breaks end-to-end policies but modular pipelines remain stable, and where contact-rich grasps occasionally need a learned controller.
- Home and assistive manipulation (e.g., placing a mug inside a microwave and closing it, the LIBERO-Pro task discussed in the paper), where long-horizon tasks mix free-space motion with fine contact.
- Bimanual assembly and handover tasks, the regime RoboTwin 2.0 targets, where switching between coordinated two-arm policies and scripted primitives is routine.
- Lab or kitchen automation with multiple robot arms from different vendors, since the paper shows the same API interfaces transferring across Aloha-AgileX, Franka-Panda, ARX-X5, and UR5-WSG.
Industry relevance. The approach keeps every backend frozen and trains only a lightweight coordinator, which is attractive for deployments that already own a code-generation stack and a set of vendor VLA checkpoints: no retraining of the expensive policies, and the coordinator transfers across coding-agent backends with only a small reported gap. The reliance on simulator save-restore for training, however, means the method's data pipeline is tied to simulation fidelity.
Future Directions
- Extending beyond two families. The paper explicitly notes that only modular composition and end-to-end policies are integrated, and that adding generalizable RL policies, retrieval-based policies, or demonstration-learned policies may require new counterfactual outcome data and further coordinator training.
- Finer-grained interruption. Responsibility currently changes hands only at P^5 boundaries, so one atomic end-to-end call can span several stages and leave transient failures to its internal controller until a postcondition, failure signal, or timeout returns control. Interrupting under ambiguous observations remains open.
- Reducing dependence on privileged simulator state. SCB needs save-restore, oracle masks, ground-truth object poses, and a terminal reward evaluator during training; whether paired outcomes can be approximated on real hardware (e.g., through physical reset or learned world models) is not addressed.
- Budget and scaling questions. The branching budget is fixed at K = 20 following an elbow in RoboSuite results, and the number of training tasks, reward weights, and training cost are not reported — leaving open how the approach scales to larger task pools and whether the K elbow transfers across benchmarks.
Target Audience
Robotics researchers and graduate students working on embodied agents, code-as-policy methods, VLA orchestration, and hierarchical reinforcement learning will get the most from this paper, particularly those building hybrid systems that mix scripted modular primitives with learned end-to-end controllers. It is also relevant to applied engineers at robotics companies who already have frozen policy checkpoints and want a principled, low-training-cost way to decide when to invoke them, and to readers interested in counterfactual data collection and MCTS-based value learning for manipulation. Beginners will find the high-level framing accessible but the methodology section demanding.
Authors’ abstract
Embodied coding agents can combine modular robot skills with frozen end-to-end policies, yet effective composition requires anticipating which policy family will succeed in the current physical state. We present RoboAware, which builds on coding agents' skill orchestration by learning only a state-conditioned responsibility coordinator from counterfactual outcomes. Inspired by the success of REPL, we propose the $P^5$ schema and formulate a hierarchical MDP based on it.…
The full abstract on arXivRelated papers
- In-Context Learning for Robots: Methods and Applications 2026-09-28 · cs.RO · Also by Bohan Zhou, Haojian Huang +5
- Robo-Harness K1: Harnessing Robot-Use Agents via Perception Augmentation 2026-09-24 · cs.RO · Also by Bohan Zhou, Haojian Huang +3
- RACaP: Agentic Reasoning, Acting, and Coding as Policies for Evolvable Robot Learning 2026-09-24 · cs.RO · Also by Bohan Zhou, Haojian Huang +3
- World Action Agent: Harnessing VLMs for Robot Manipulation via World Action Rehearsal 2026-09-24 · cs.RO · Also by Bohan Zhou, Haojian Huang +3
- Are Frontier VLM Agents Ready to Be Robot Generalists? An Empirical Study with the Embodied Agent Arena 2026-10-01 · cs.RO · Also by Haojian Huang, Wenqian Li +2