Robotic Programmer: Video Instructed Policy Code Generation for Robotic Manipulation
Senwei Xie, Hongyu Wang, Zhanqi Xiao, Ruiping Wang, Xilin Chen
TL;DR
RoboPro presents a robotic foundation model that translates visual observations and free-form instructions into executable policy code, enabling zero-shot manipulation across diverse robots and environments. It introduces Video2Code, a scalable data-curation pipeline that converts in-the-wild videos into 115k robot-runtime code examples, facilitating training without hand-authored data. Through a vision-encoder–code-LLM architecture and three-stage training, RoboPro achieves state-of-the-art zero-shot performance on RLBench and LIBERO, outperforming GPT-4o and approaching supervised baselines while robustly generalizing to API format changes and unseen skills. The work demonstrates that incorporating procedural knowledge from instructional videos into training significantly enhances visual reasoning and policy execution in robotics, with strong implications for scalable, real-world deployment.
Abstract
Zero-shot generalization across various robots, tasks and environments remains a significant challenge in robotic manipulation. Policy code generation methods use executable code to connect high-level task descriptions and low-level action sequences, leveraging the generalization capabilities of large language models and atomic skill libraries. In this work, we propose Robotic Programmer (RoboPro), a robotic foundation model, enabling the capability of perceiving visual information and following free-form instructions to perform robotic manipulation with policy code in a zero-shot manner. To address low efficiency and high cost in collecting runtime code data for robotic tasks, we devise Video2Code to synthesize executable code from extensive videos in-the-wild with off-the-shelf vision-language model and code-domain large language model. Extensive experiments show that RoboPro achieves the state-of-the-art zero-shot performance on robotic manipulation in both simulators and real-world environments. Specifically, the zero-shot success rate of RoboPro on RLBench surpasses the state-of-the-art model GPT-4o by 11.6%, which is even comparable to a strong supervised training baseline. Furthermore, RoboPro is robust to variations on API formats and skill sets.
