arXiv(opens in a new tab)cs.ROOct 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2610.12369

Embodied Turing Machines: Stateful Code for Robot Recursive Self-Improvement

Kairui Hu, Siyuan Hu, Fangzhou Hong, Zhaoxi Chen, Ziwei Liu

Stateful Code for Robot Recursive Self-Improvement

Kairui Hu 1,2,∗^{1,2,*} Siyuan Hu 1,∗^{1,*} Fangzhou Hong 1,2^{1,2} Zhaoxi Chen 1,2^{1,2} Ziwei Liu 1,2^{1,2}

1^{1}Nanyang Technological University 2^{2}Ropedia

Physical world

Embodied Turing Machine

Code as a Universal Interface

Figure

RGB Views

Robot State

q = [q1, ..., qp]

dq = [dq1, ..., dqp]

... (joints, pose, sensors)

Code for Recursive Self-Improvement

Three ways to act

Learned Weights

Agentic Harness

Model + Context + Tools

Code-Only-as-Policy (Ours)

Code + State → Actions

RoboDojo

Figure 1. Code-Only-as-Policy (COAP). We view the embodied world as an Embodied Turing Machine whose tape is the state of the robot and its environment (top middle). If this state is represented accurately and the code is robust enough, no agent is needed in the control loop (top right). COAP is a shared library: different tasks use the same library, and within a task the code runs across episodes. The policy is therefore code only and reaches a 70.24% success rate on RoboDojo.

Abstract

Ropedia

Most robot policies keep a model in the control loop: a VLA maps observations to actions, and an Agent Harness, such as Agent-as-Policy or Harness VLA queries a VLM for decision making at run time. We propose a different view: the embodied world is an Embodied Turing Machine, whose tape is the robot and environment state and rules are the policy. If this state can be represented accurately, the decision making can be written entirely in code. We therefore propose Code-Only-as-Policy (COAP): code measures and tracks the robot, environment, and task state from camera images and proprioception, and makes every decision from it. The same code applies across episodes, and different tasks share one library without a VLM or VLA in the loop.

Technical Report. * Equal contribution.

Compared with VLAs and Agent Harnesses, we analyze three advantages of COAP: (i) Explicit State: the state can be stored in code; (ii) Execution: code makes decision making controllable, recovers from failures flexibly, and runs fast and cheaply online; (iii) Extensibility: new tasks reuse, inherit, or extend the shared library, so capabilities can accumulate over tasks. These advantages make COAP a suitable medium for recursive self-improvement (RSI): coding agents develop the library in a closed loop, and each change is explicit and controllable. On RoboDojo's 42 bimanual tasks, the resulting library reaches a success rate of 70.24% without a model at test time. The upper bound of COAP lies in how accurately the state is represented for decision making and how robust the code logic is. We thus propose COAP as a new paradigm for embodied tasks; since it applies across episodes, it can also serve as an efficient data engine for VLAs and Agent Harnesses.

References (77)