Abstract
Layered architectures have been widely used in robot systems, typically separating planning and execution. However, a straightforward transition from high-level planning tasks to low-level motor commands remains elusive. This paper proposes a novel approach to ground manipulator primitive tasks into robot actions using Large Language Models (LLMs). By designing program-function-like prompts based on Task Frame Formalism (TFF), we enable LLMs to generate position and force set-points for hybrid control. We provide evaluations across several state-of-the-art LLMs.
Introduction: Bridging the Planning-to-Execution Gap
In robotics, there is a long-standing disconnect between high-level planning (e.g., "open the bottle") and low-level execution (e.g., "apply 5N of downward force"). Traditionally, engineers manually programmed the "primitive tasks" that connect these layers, a process that is both labor-intensive and limits robotic flexibility. While LLMs excel at high-level reasoning, their outputs are typically text-based and not directly interpretable by motor controllers.
This research explores a method to make LLMs "ground" natural language into actionable physical parameters, effectively turning abstract intent into executable code.
Methodology
The core of this approach is the combination of Task Frame Formalism (TFF) and Code-based Prompting.
- Task Frame Formalism (TFF): This robotics concept attaches a coordinate frame to the object of interest. Each degree of freedom is assigned to either position control or force control.
- Program-Function-Like Prompting: Instead of conversational queries, prompts are formatted as Python code. By providing "source functions" that map tasks to TFF parameters, the LLM learns to generate similar structured code for new tasks.
- Few-Shot Learning: The models were evaluated using 1, 3, or 5 examples ("shots"). This allows the LLM to generalize from known tasks (like
turn_screw) to novel ones (liketurn_steering_wheel) through analogy. - Primitiveness Check: An initial LLM pass determines if a task is "primitive" (executable in one step) or "non-primitive" (requiring further decomposition).
Experimental Evaluation
The researchers tested the framework on 30 manipulator primitive tasks. These included 20 tasks from the Daily Interactive Manipulation dataset and 10 custom tasks designed to test complex interactions, such as "inserting a GPU into a socket" or "opening a childproof bottle."
Key Results
The study compared four major models: GPT-3.5-turbo, GPT-4, Google Bard, and LLaMA-2-70B.
- GPT-4 Superiority: GPT-4 was the top performer, achieving an 83% success rate in the 5-shot setting.
- The Zero-Shot Barrier: All models failed completely (0% success) in zero-shot scenarios, highlighting that while LLMs have the underlying knowledge, they require a structural template to map it to physical physics.
- Generalization vs. Hallucination: While models successfully generalized task parameters, they occasionally hallucinated dangerous numerical values (e.g., excessive rotational speeds), indicating a need for hardware-level safety guardrails.
Conclusion
By framing robotics grounding as a code-generation problem, LLMs can effectively translate high-level intent into low-level control parameters. Future work will focus on implementing safety constraints and integrating these generated set-points into real-time, closed-loop robot control systems.
Summary updated