This paper, recently accepted to IEEE Robotics and Automation Letters, challenges a core assumption in modern robotics: that Large Language Models (LLMs) are only suited for high-level task planning and lack the "physical common sense" required for low-level trajectory generation.
TL;DR
Researchers from Imperial College London demonstrate that GPT-4 can generate dense, low-level robot trajectories zero-shot, without any pre-trained skills, motion primitives, or in-context examples. By using a single task-agnostic prompt and basic object detection, the system successfully performs complex manipulation tasks and can even autonomously detect and recover from its own failures.
What Problem Does This Paper Address?
In the current robotics landscape, LLMs are typically used as "managers." They take a high-level instruction (e.g., "make a snack") and break it down into a sequence of pre-defined skills (e.g., pick(apple), place(plate)). The actual "driving"—the precise, millimetre-by-millimetre movement of the robot arm—is handled by specialized controllers or motion primitives.
The prevailing belief has been that LLMs don't understand physics or geometry well enough to handle these low-level trajectories directly. This paper investigates whether this limitation is inherent or if we simply haven't been prompting them correctly. The authors aim to see if an LLM can go directly from a natural language command to a dense sequence of end-effector poses.
Methods
The authors developed a framework that relies on a single, task-agnostic prompt to guide GPT-4. The key components of their approach include:
- Vision Grounding: The system uses off-the-shelf models (LangSAM) to detect and segment objects in a scene. The LLM receives the 3D bounding boxes of these objects as numerical coordinates.
- Chain-of-Thought Prompting: The prompt requires the LLM to first describe the task and the required motion in natural language (e.g., "shaking involves a sinusoidal motion") before generating any control signals.
- Code as Trajectory: Instead of asking the LLM to list coordinates directly, they found it much more effective to have the LLM write Python code that calculates the trajectory. This leverages the LLM's strong coding and geometric reasoning abilities.
- Closed-Loop Re-planning: After a trajectory is executed, the system uses an object tracker (XMem) to see how the objects moved. This data is fed back to the LLM, which determines if the task succeeded. If it failed, the LLM analyzes the failure and generates a new, corrected trajectory.
Datasets
The researchers benchmarked their approach on a set of 30 real-world tabletop manipulation tasks recreated from prominent recent robotics papers (like SayCan, VoxPoser, and RT-1). These tasks include:
- Basic picking: "pick the fruit in the middle."
- Complex interactions: "open the bottle cap," "wipe the plate with the sponge," and "shake the mustard bottle."
- Geometric tasks: "draw a five-pointed star with the pen."
Key Insights and Ideas
- The Power of Abstraction: LLMs are significantly better at writing code to generate a trajectory than they are at outputting the raw numerical coordinates of that trajectory. Code allows the LLM to express mathematical relationships (like a sine wave for shaking) that are hard to represent as a simple list of numbers.
- Reasoning is the "Secret Sauce": The most critical part of the prompt was forcing the LLM to think step-by-step. Removing the requirement to decompose the task into sub-steps (approach, align, grasp, lift) led to the largest drop in performance.
- Latent Physical Knowledge: Surprisingly, the LLM demonstrated inherent knowledge of object affordances. For example, when failing to grasp a bowl by its center, the LLM autonomously re-planned to grasp it by the rim—a strategy it was never explicitly taught.
- Zero-Shot vs. Few-Shot: The authors compared their zero-shot approach to Code as Policies (CaP), which relies heavily on in-context examples. While CaP excels at tasks similar to its examples, the zero-shot approach generalized much better to complex, novel tasks.
Key Results
- Success Rate: The system achieved an average success rate of 57.3% across the 30 tasks entirely zero-shot.
- Model Comparison: GPT-4 and Claude 3 (Opus) were the only models capable of generating executable code 100% of the time. Models like Llama 2 and Gemini Pro struggled significantly with following the required output format.
- Re-planning Gains: The autonomous re-planning feature provided a measurable boost, increasing the success rate for difficult tasks like "pick up the bowl" from 0% to 20% by allowing the model to learn from its mistakes.
Limitations and Future Work
Despite the impressive zero-shot performance, several hurdles remain:
- Precision: LLMs still struggle with tasks requiring sub-centimeter precision or very complex, high-frequency movements.
- Perception Bottleneck: Relying solely on 3D bounding boxes is limiting. The authors suggest that tighter integration with Vision-Language Models (VLMs) that can "see" object parts (like the handle of a pan) more granularly will be essential.
- Failure Modes: Nearly half of the failures were attributed to "gripper pose prediction errors"—the LLM understood the task but couldn't quite calculate the exact orientation needed for a successful grasp.
This work suggests that the "brain" for future robots might already exist in general-purpose LLMs, provided we find the right way to ask them to drive.
Summary updated