Pixel Code Policy: Discovering Simple Visuomotor Programs from Demonstrations
This research presents Pixel Code Policy, an imitation learning framework that leverages coding agents to discover simple visuomotor programs from expert demonstrations. The approach identifies robust visual features in RGB images, fits fine-grained robot motions, and organizes them with task logic into a pure-code policy. Evaluated on 15 real-world tasks and all 50 tasks of the RoboTwin 2.0 benchmark, the policies achieve higher average success than compared neural policies. They perform precise insertion, deformable-object manipulation, dual-arm coordination, long-horizon execution, and memory-guided interaction with less than 19 ms per call on a CPU, without using any neural networks at inference time. The explicit code nature of the policies allows for detailed analysis and adaptation to new conditions with minimal additional data.
arXiv:2611.40331v1 Announce Type: new Abstract: 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.