Language Models as Zero-Shot Trajectory Generators
Teyun Kwon, Norman Di Palo, Edward Johns
TL;DR
This work investigates whether a pre-trained GPT-4 can directly generate dense low-level robot trajectories using only object detection/segmentation outputs, without pre-trained skills or trajectory optimisers, via a single task-agnostic prompt. It demonstrates, across 30 real-world manipulation tasks, that the LLM can output executable trajectories or code to generate them and can autonomously detect failures to re-plan. Through extensive prompt ablations, the study identifies key components—stepwise reasoning, function documentation, and explicit gripper control—that boost robustness, with Code-as-Policies generally underperforming on unseen tasks in comparison. The findings push the boundary of LLM applicability in robotics by revealing emergent low-level control capabilities, though they also highlight current limits in precision and perception that future vision-language advances may address.
Abstract
Large Language Models (LLMs) have recently shown promise as high-level planners for robots when given access to a selection of low-level skills. However, it is often assumed that LLMs do not possess sufficient knowledge to be used for the low-level trajectories themselves. In this work, we address this assumption thoroughly, and investigate if an LLM (GPT-4) can directly predict a dense sequence of end-effector poses for manipulation tasks, when given access to only object detection and segmentation vision models. We designed a single, task-agnostic prompt, without any in-context examples, motion primitives, or external trajectory optimisers. Then we studied how well it can perform across 30 real-world language-based tasks, such as "open the bottle cap" and "wipe the plate with the sponge", and we investigated which design choices in this prompt are the most important. Our conclusions raise the assumed limit of LLMs for robotics, and we reveal for the first time that LLMs do indeed possess an understanding of low-level robot control sufficient for a range of common tasks, and that they can additionally detect failures and then re-plan trajectories accordingly. Videos, prompts, and code are available at: https://www.robot-learning.uk/language-models-trajectory-generators.
