Driving · 2026-12-01

Pixel Code Policy: Discovering Simple Visuomotor Programs from Demonstrations

Hanxiao Jiang, Chenhao Hong, Qinxi Yu, Yuwen Gong, Shenlong Wang, Yunzhu Li

arXiv:2611.40331PDF

AI-assisted summary based on the paper. Consult the linked source for methods and limitations. Benchmark numbers appear after editor verification.

TL;DR

Pixel Code Policy is an imitation learning framework that uses coding agents to generate explicit visuomotor programs from dozens of expert demonstrations. The programs extract task-relevant visual features, fit fine-grained robot motions, and compose them with task logic and internal state into pure code that runs without neural networks at inference. The authors report higher average success than compared neural policies on real-world tasks and RoboTwin 2.0, with <19 ms per call on CPU.

Why it matters

The authors address whether neural networks are necessary at inference time for contact-rich manipulation. By generating explicit, analyzable code policies that run on CPU without neural inference, the work targets low latency, interpretability, and adaptation using a single demonstration or text instruction.

Method

  • Use a coding agent to generate a pure-code visuomotor policy that includes Perceive (classical vision feature extraction), Plan (TAMP-inspired stage/outcome logic with memory), and Move (motion regression/fitting over dense end-effector targets).
  • Fit perception/motion parameters on a subset of demonstrations and improve via cross-demonstration validation on held-out demonstrations for visual reliability, motion accuracy, and task logic.
  • At execution, the policy uses current observations and robot state with internal memory to track progress and adjust motions, without any neural network inference. Includes adaptation by modifying existing code using one new demonstration or text instruction.
Abstract (from arXiv)

Learning from demonstrations has enabled robots to perform complex, contact-rich manipulation, largely through neural visuomotor policies. But are neural networks absolutely necessary at inference time? Recent agentic approaches offer alternatives: online agents reason flexibly but incur high inference latency, while code-based approaches often rely on predefined perception and control interfaces. We introduce Pixel Code Policy, an imitation learning framework that uses coding agents to discover surprisingly simple visuomotor programs from dozens of expert demonstrations. The agent autonomously generates programs that identify robust, task-relevant visual features in RGB images, fits the corresponding fine-grained robot motions, and organizes both with task logic and internal state into a pure-code policy. The resulting policies perform precise insertion, deformable-object manipulation, dual-arm coordination, long-horizon execution, and memory-guided interaction, taking less than 19 ms per call on a CPU, without any use of neural networks at inference time. On 15 real-world tasks and all 50 tasks of the RoboTwin 2.0 benchmark, they achieve higher average success than the compared neural policies. Because they are explicit code, the policies can also be analyzed in detail and adapted to new conditions with a single demonstration or a text instruction. Together, these results highlight the potential of agent-discovered programs as a new basis for robot imitation learning, one that is fast, interpretable, and easy to adapt.

Related papers

Publication record

Bibliographic evidence describes where and when a record appeared. It does not validate scientific claims.

First public release: 2026-11-30 · Indexed by Pub-AI: 2026-12-01 UTC

preprint

Pixel Code Policy: Discovering Simple Visuomotor Programs from Demonstrations

Hanxiao Jiang, Chenhao Hong, Qinxi Yu, Yuwen Gong, Shenlong Wang, Yunzhu Li

Preprint posted: 2026-11-30 · Original record ↗

arxiv
2611.40331
Explicit source versions (1)
  • v1 · 2026-11-30
  1. Preprint available

    Source date: 2026-11-30 · First detected: 2026-12-01 UTC · Historical baseline

    Source evidence (2)
Abstract · arxiv

Learning from demonstrations has enabled robots to perform complex, contact-rich manipulation, largely through neural visuomotor policies. But are neural networks absolutely necessary at inference time? Recent agentic approaches offer alternatives: online agents reason flexibly but incur high inference latency, while code-based approaches often rely on predefined perception and control interfaces. We introduce Pixel Code Policy, an imitation learning framework that uses coding agents to discover surprisingly simple visuomotor programs from dozens of expert demonstrations. The agent autonomously generates programs that identify robust, task-relevant visual features in RGB images, fits the corresponding fine-grained robot motions, and organizes both with task logic and internal state into a pure-code policy. The resulting policies perform precise insertion, deformable-object manipulation, dual-arm coordination, long-horizon execution, and memory-guided interaction, taking less than 19 ms per call on a CPU, without any use of neural networks at inference time. On 15 real-world tasks and all 50 tasks of the RoboTwin 2.0 benchmark, they achieve higher average success than the compared neural policies. Because they are explicit code, the policies can also be analyzed in detail and adapted to new conditions with a single demonstration or a text instruction. Together, these results highlight the potential of agent-discovered programs as a new basis for robot imitation learning, one that is fast, interpretable, and easy to adapt.