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.
翻译:暂无翻译