TL;DR
RoboPrompt is a novel framework that enables off-the-shelf, text-only Large Language Models (LLMs) like GPT-4 to directly predict robotic actions without any additional training or fine-tuning. By converting visual scenes into discretized text descriptions and identifying critical "keyframes," the system leverages the in-context learning (ICL) capabilities of LLMs to perform complex manipulation tasks in both simulation and the real world.
What Problem Does This Paper Address?
Traditional robot learning often requires massive datasets and expensive fine-tuning to map visual inputs to continuous motor controls. While Large Language Models (LLMs) have shown incredible reasoning skills, they are fundamentally text-based. Bridging the gap between "text-only" reasoning and "continuous-space" robotic action usually involves using the LLM as a high-level planner that calls pre-defined scripts.
The challenge addressed here is: Can an LLM directly predict low-level robot actions (6-DoF poses and gripper states) just by looking at a few text-based examples? To do this, the authors had to solve the issues of high-dimensional data noise, the "tokenization" of continuous physical coordinates, and the limited context window of LLMs.
Methods
The authors introduce RoboPrompt, a three-step pipeline to translate robotic episodes into a language the LLM understands:
- Identify Keyframes: Instead of feeding the LLM every frame of a video (which is noisy and redundant), RoboPrompt heuristically identifies "critical moments." These are frames where the robot's joint velocity is near zero or the gripper changes state (opening/closing). This compresses an episode from 200+ frames down to just 5–15.
- Estimate Poses and Extract Actions: The system uses off-the-shelf vision models (like FoundationPose and GroundingDINO) to detect objects and estimate their 6-DoF poses. Crucially, it discretizes these continuous coordinates into text tokens (e.g., 100 bins for translation, 72 bins for rotation).
- Create ICL Prompt: These discretized poses and actions are formatted into a structured text template. The prompt includes a few "demonstrations" (Input: Object Poses + Instruction -> Output: Sequence of Actions) followed by the current test observation. The LLM then predicts the next sequence of actions autoregressively.
Datasets
The framework was evaluated on two main fronts:
- RLBench: A standard simulation environment where the authors tested 16 different tasks (e.g., "close jar," "sweep to dustpan," "meat off grill").
- Real-World Robot: Experiments conducted on a Franka Emika Panda robot arm across 6 tasks, including "stack cube," "unplug cable," and "close laptop."
Key Insights and Ideas
- Discretization is the Bridge: LLMs struggle with floating-point numbers but excel at patterns in discrete tokens. By "binning" 3D space into text-based categories, the authors allow the LLM to treat robot control like a translation task.
- Keyframes as "Visual Verbs": By focusing only on moments of interaction or direction changes, the prompt remains compact and high-signal, preventing the LLM from getting "lost" in the noise of a long trajectory.
- Emergent Composition: One of the most striking findings was that RoboPrompt could perform a "push multiple buttons" task in a specific order, even when the ICL demonstrations only showed the robot pushing single buttons. The LLM successfully composed these individual skills to follow a complex new instruction.
- Scaling with Examples: Like standard NLP tasks, robotic performance improved as the number of ICL examples increased, suggesting that LLMs are applying the same pattern-matching logic to physics as they do to grammar.
Key Results
- Simulation (RLBench): RoboPrompt achieved an average success rate of 51.8%, significantly outperforming other ICL/Zero-shot baselines like VoxPoser (21.0%) and KAT (21.0%).
- Real-World: On the Franka Panda robot, RoboPrompt achieved a 90% success rate on simpler tasks like "stack cube" and "push button." Even on complex tasks like "unplug cable," it maintained a 50% success rate with only 10 examples.
- Competitive with Supervised Learning: While it didn't beat state-of-the-art supervised models (which are trained on hundreds of episodes), it performed remarkably close to them without ever seeing a single gradient update.
Limitations and Future Work
- Open-Loop Nature: The current system is primarily open-loop; it takes one observation at the start and predicts a sequence. This makes it fragile if an object moves mid-task.
- Inference Speed: Relying on API calls to massive LLMs (like GPT-4) introduces latency, making it unsuitable for high-frequency, reactive tasks (like catching a ball).
- Geometric Simplification: The model currently represents objects as single poses (points/orientations). It struggles with tasks requiring fine-grained understanding of complex shapes (e.g., "put in safe").
- Future Directions: The authors suggest exploring closed-loop planning and incorporating more detailed shape information into the text descriptions to handle more "dexterous" manipulations.
Summary updated