Abstract: EmbodiedCoder is a training-free framework that leverages Large Language Models (LLMs) to generate real-time code for object parameterization and trajectory synthesis in mobile manipulation tasks. By abstracting complex 3D point clouds into geometric primitives and synthesizing motion paths through code, the system enables robots to perform contact-rich tasks like opening doors or pouring liquids without extensive training data. Evaluated on real-world scenarios, EmbodiedCoder achieves an 89.2% success rate, outperforming state-of-the-art vision-language-action models.
Introduction
Current approaches to robot manipulation generally fall into two categories: data-hungry end-to-end Vision-Language-Action (VLA) models and modular systems limited by predefined action primitives. VLAs often fail under slight environmental variations, while modular systems struggle with tasks requiring nuanced movements not present in their libraries. EmbodiedCoder addresses this "primitive bottleneck" by using code as a flexible interface, allowing robots to write custom scripts to handle the unique geometry of objects they encounter.
Methodology
The EmbodiedCoder framework operates in three main stages:
- Scene Understanding: The robot captures RGB-D images and uses a Vision-Language Model (VLM) and Segment Anything (SAM) to create a semantic 3D point cloud. High-level instructions are decomposed into subtasks.
- Code-Driven Parameterization and Synthesis: A coding model (such as Claude-3.5-Sonnet) performs two critical steps: fitting messy point cloud data into clean geometric shapes (cuboids, cylinders, etc.) and generating code to calculate feasible motion paths based on that geometry.
- Motion Execution: Discrete waypoints are sampled from the generated trajectory and sent to the robot's hardware controller.
Geometric Parameterization
A core innovation of EmbodiedCoder is the use of code to turn "pixels into parameters." By abstracting objects into geometric bodies with defined axes and dimensions, the robot can apply common-sense physics to specific 3D coordinates. For instance, a door is parameterized as a rectangle with a specific hinge axis, allowing the system to synthesize a precise rotational trajectory.
Key Results and Insights
EmbodiedCoder demonstrates superior generalization and zero-shot capabilities:
- Performance: It achieved an average success rate of 89.2% on single-step benchmarks, outperforming trained models like RT-2 (84%) and OpenVLA (73.3%) without any task-specific training.
- Complexity: The system maintained high success rates in long-horizon tasks involving door and drawer opening, which frequently baffle traditional modular systems.
- Interpretability: Unlike "black box" neural networks, the generated code is human-readable, allowing developers to diagnose logic errors in trajectory synthesis.
Limitations and Future Work
While effective, the system currently faces latency issues due to the time required for code generation and 3D processing. Additionally, it is sensitive to perception noise; incomplete point clouds can lead to faulty geometric parameters. Future research will focus on improving execution fluidity and implementing robust automated safety monitors for crowded environments.
Conclusion
EmbodiedCoder represents a significant step toward flexible, training-free robotic manipulation. By leveraging the reasoning and coding capabilities of modern LLMs, it provides a scalable solution for complex, contact-rich tasks in diverse real-world settings.
Summary updated