RoboCodeX: Multimodal Code Generation for Robotic Behavior Synthesis
Yao Mu, Junting Chen, Qinglong Zhang, Shoufa Chen, Qiaojun Yu, Chongjian Ge, Runjian Chen, Zhixuan Liang, Mengkang Hu, Chaofan Tao, Peize Sun, Haibao Yu, Chao Yang, Wenqi Shao, Wenhai Wang, Jifeng Dai, Yu Qiao, Mingyu Ding, Ping Luo
TL;DR
RoboCodeX tackles the challenge of translating multimodal perception and language into robot-specific actions by a tree-structured multimodal code-generation framework. It decomposes a global instruction into sub-tasks and generates executable trajectories via grounded predictions of object affordances, grasp poses, and articulation properties, producing $\tau_i$ trajectories with $g(\cdot)$ under dynamics, collision, and control constraints. It introduces a specialized multimodal reasoning dataset and an iterative self-updating SFT pipeline to align semantic understanding with physical constraints, while leveraging a TSDF-based perception and state-of-the-art grasp/ articulation priors. Empirically, RoboCodeX achieves state-of-the-art performance across manipulation, navigation, and general multimodal reasoning in both simulation and real robots, and demonstrates cross-platform zero-shot transfer by reconfiguring robot parameters rather than retraining. This work suggests a practical path to unify cognitive vision-language models with precise robotic control through executable code generation, enabling scalable, cross-platform embodied AI.
Abstract
Robotic behavior synthesis, the problem of understanding multimodal inputs and generating precise physical control for robots, is an important part of Embodied AI. Despite successes in applying multimodal large language models for high-level understanding, it remains challenging to translate these conceptual understandings into detailed robotic actions while achieving generalization across various scenarios. In this paper, we propose a tree-structured multimodal code generation framework for generalized robotic behavior synthesis, termed RoboCodeX. RoboCodeX decomposes high-level human instructions into multiple object-centric manipulation units consisting of physical preferences such as affordance and safety constraints, and applies code generation to introduce generalization ability across various robotics platforms. To further enhance the capability to map conceptual and perceptual understanding into control commands, a specialized multimodal reasoning dataset is collected for pre-training and an iterative self-updating methodology is introduced for supervised fine-tuning. Extensive experiments demonstrate that RoboCodeX achieves state-of-the-art performance in both simulators and real robots on four different kinds of manipulation tasks and one navigation task.
