Manuscript Offprint

arXiv:2610.34108

RoboDuo: Attempt, Check and Atomic Recovery through Code for Vision-Language-Action Models

Jie Wang, Bo Zhang, Renzhi Lu, Jianyu Chen

Abstract

Vision-Language-Action (VLA) models map a language instruction and the current observation directly to actions, without checking whether the instruction has been completed. For long-horizon tasks, a single failed step therefore goes unnoticed and leaves the whole task unfinished. Such failed episodes, however, often end with the task partially complete. Moreover, the unfinished steps are reusable atomic skills that recur across demonstrations. A failed attempt can thus be recovered by composing with atomic skills. We propose RoboDuo, a closed-loop dual-system framework that uses code as the interface between a coding agent and two VLAs. The agent writes a program that lets a full-task VLA attempt the whole task and checks whether it is complete; on failure, an atomic VLA finishes the remaining steps. Since the agent emits no actions and only decides which VLA for execution, RoboDuo wraps an existing full-task VLA without updating its weights. To train the atomic VLA and the coding agent with the completion-checking ability, we build LIBERO-Atomic, LIBERO-Code, and LIBERO-Judge from a single set of LIBERO demonstrations. RoboDuo consistently improves X-VLA and π0.5\pi_{0.5} on LIBERO and LIBERO-PRO, with the largest gains on long-horizon tasks, and recovers failed rollouts of a frozen full-task VLA on a real robot.

1. Introduction

Vision-Language-Action (VLA) models [3, 5, 16, 28, 40, 41] map a language instruction and the current observation directly to low-level actions, and have become a standard approach to language-conditioned manipulation. The policy is re-queried on each new observation, yet nothing checks whether the current observation satisfies the intended goal. Execution therefore continues under the same instruction even after a step has failed. Consider an object that slips from the gripper during transport. The post-slip state is rare in the demonstrations, so the policy rarely grasps and may instead continue its learned trajectory, for example by placing with an empty gripper. On a long-horizon task, that unnoticed failure leaves the remaining steps unfinished, and the episode fails even though earlier progress was correct.

One route is to place this decision-making functionality inside the action model. Systems built on GPT-6-Astra [27] use one large model to generate numerical robot actions, judge the outcome during execution, and emit a correction within the same forward pass [12]. However, the scale that enables such judgment and correction also slows every inference step. Even steps that a fast policy could execute unchanged must wait on the large model, and the resulting latency falls short of the control rate required for physical deployment.

Dual-system architectures instead place the decision model outside the action model. In Helix and related systems, a high-level model passes a language command, a token, or a latent vector to a single low-level policy [2, 6, 8, 9, 28–30, 38]. This interface changes what the low-level policy is conditioned on, but it cannot express a failed attempt, a retry, or a switch to a different executor. Code-as-policy methods provide exactly this control flow, in which an agent writes a program that tests the outcome of each skill and retries it on failure [13, 14, 20, 21, 31]. Because these programs call primitives or VLA skills from the first step, they largely discard the long-horizon competence of a full-task VLA. Code is therefore better used to wrap one attempt by that VLA, and to close the loop only after the attempt fails.

Building on this principle, we propose RoboDuo, a dual-system framework in which a coding agent uses code as the interface to two frozen VLAs (Fig. 1). The agent serves as an orchestrator and writes a task program. The program first assigns the task to the full-task VLA for one attempt, after which is_task_complete evaluates the new observation. If the task fails, the agent plans the unfinished steps from the current observation as atomic instructions. An atomic VLA then executes these instructions to the end of the task, with at most three attempts per step, and the control does not return to the full-task VLA. We employ a separate

MOTIVATION

ROBODUO

Figure

RESULTS

Figure 1. Overview of RoboDuo and its results. Left: open-loop VLAs fail long-horizon tasks after one unnoticed slip; token/latent dual systems cannot switch executor, and code-as-policy skips the full-task attempt. Center: RoboDuo uses a coding agent to Write a program, a frozen full-task VLA to Act, is_task_complete to Judge, and a frozen atomic VLA to Recover with at most three retries per step; control does not return. Right: matched gains on LIBERO, LIBERO-PRO (S/T), and a real robot. Bottom: one rollout from full-task attempt through failure detection to atomic recovery.

atomic VLA since each atomic instruction describes a short segment already present in the demonstrations, whereas the full-task VLA is trained only on full-task instructions. We construct LIBERO-Atomic, LIBERO-Code, and LIBERO-Judge from the same demonstrations to train the atomic VLA, the coding agent, and the completion check, respectively. We instantiate RoboDuo on X-VLA and π0.5\pi_{0.5} without updating the weights of either full-task VLA.

On LIBERO-Long, RoboDuo raises the success rate of X-VLA from 87.4% to 91.6% and that of π0.5\pi_{0.5} from 93.6% to 96.2%. On LIBERO-PRO, RoboDuo raises the mean success of π0.5\pi_{0.5} from 32.05% to 39.33%, with the largest gain on Object-T (25.2 → 55.8). On a real robot, RoboDuo raises success from 36.7% to 53.3% over three fruit-arrangement layouts, without updating the frozen full-task VLA.

Our main contributions are summarized as follows:

• We propose RoboDuo, a closed-loop dual system that uses code, rather than a token or a latent vector, as its interface. When the full-task VLA fails, an atomic VLA executes the remaining steps.

• We construct LIBERO-Atomic, LIBERO-Code, and LIBERO-Judge from the same successful demonstrations to train the atomic VLA, the coding agent, and the completion check, respectively.

• We instantiate RoboDuo on X-VLA and π0.5\pi_{0.5} and evaluate it on LIBERO, LIBERO-PRO, and a real robot. The gains concentrate on long-horizon tasks that fail because a single subtask fails.

References (36)