Conditionally Combining Robot Skills using Large Language Models

K. R. Zentner, Ryan Julian, Brian Ichter, Gaurav S. Sukhatme

TL;DR

This paper introduces Language-World, a natural language extension of the popular Meta-World robotics benchmark, and Plan Conditioned Behavioral Cloning (PCBC), a method that allows robots to execute complex tasks by following high-level plans generated by Large Language Models (LLMs). By combining linguistic reasoning with end-to-end imitation learning, the authors demonstrate that robots can generalize to entirely new tasks with as little as a single demonstration.

What Problem Does This Paper Address?

Robotics research often struggles with two conflicting goals: high-level reasoning and low-level control. Deep Reinforcement Learning (RL) is great at low-level control but is notoriously data-hungry, often requiring tens of thousands of episodes to learn a single task. Conversely, LLMs are excellent at high-level reasoning and planning but lack a direct way to "ground" their knowledge in the physical world's continuous control space.

Furthermore, existing benchmarks like Meta-World lack the natural language interfaces necessary to test LLM-based agents effectively. This paper bridges that gap, providing a framework where an LLM acts as the "brain" (planning) and a neural network acts as the "muscles" (execution), all while significantly reducing the amount of data needed to learn new skills.

Methods

The authors propose a two-stage approach:

  1. Conditional Plan Generation: An LLM is prompted to generate a "conditional plan" for a specific task. This plan isn't just a sequence of steps; it’s a set of (condition, skill) tuples. For example, "if the gripper is open and near the handle, then close the gripper." The authors found that the format of these plans (e.g., Python-like code vs. Markdown) significantly impacts LLM performance.
  2. Plan Conditioned Behavioral Cloning (PCBC): This is the core technical contribution. It’s an end-to-end differentiable architecture that interprets the LLM's plan.
  3. A Query Answering Function (QAF) evaluates the linguistic conditions (e.g., "is the gripper closed?") against the current robot state.
  4. A Text Encoder embeds the skill descriptions into a latent space.
  5. An Attention Mechanism uses the QAF outputs to weight and mix these skill embeddings into a single "mixed skill" vector.
  6. An Action Decoder takes this mixed vector and the robot's state to output precise motor commands.
Fig. 5: The PCBC architecture showing how LLM plans are converted into robot actions.

To make this work with very little data, they use Cross-Task Co-Learning, where a model is trained on a large "base" set of tasks (MT10) and then fine-tuned on a single demonstration of a new "target" task.

Datasets

  • Meta-World: The standard benchmark for multi-task robot learning, consisting of 50 simulated manipulation tasks.
  • Language-World (New): The authors' extension of Meta-World. It adds natural language task descriptions, a suite of 30 scripted skills, and a Query Answering Function that can evaluate hundreds of semi-structured language queries about the environment state.

Key Insights and Ideas

  • LLMs as Zero-Shot Planners: Even without fine-tuning, LLMs can generalize to tasks they haven't seen before by recombining known skills. The authors showed that LLMs could successfully plan for 5-10 tasks outside their training set using only scripted skills.
  • Prompt Engineering for Robots: The choice of plan format is critical. For instance, PaLM 2 performed best with a "chain-of-thought" Python-like format (chain_py), while GPT-3.5 preferred Markdown.
  • Decoupling Planning from Execution: By generating a plan once per task, the system avoids the massive computational overhead of querying an LLM at every single control step (which usually happens at 20-100Hz).
  • The Power of One-Shot: The most striking finding is that adding just one human demonstration of a new task, when combined with co-learning, allows the robot to achieve non-zero success across all 50 tasks in the benchmark.

Key Results

  • Data Efficiency: PCBC achieves high success rates with orders of magnitude less data than RL. While RL might need 10,000+ episodes, PCBC shows strong results with just 1 to 10 demonstrations.
  • Superior Generalization: PCBC consistently outperformed "Descriptor Conditioning" (a baseline that only looks at the task name) in few-shot scenarios.
  • One-Shot Success: As shown in Figure 7, the "one-shot" configuration (100 base demos + 1 target demo) significantly boosted performance, proving that the model can effectively "understand" a new task description by seeing it performed just once.
Fig. 7: Performance boost from adding a single demonstration to the zero-shot setting.

Limitations and Future Work

  • Plan Quality: LLMs still occasionally generate low-quality or nonsensical plans. The authors suggest that fine-tuning the LLM specifically for plan generation could mitigate this.
  • Imitation Learning Only: Currently, the method relies on expert demonstrations. Integrating this with Reinforcement Learning (especially Offline RL) is a logical next step to allow the robot to improve beyond the expert's performance.
  • Simple Logic: The current plans are essentially "switch" statements. Future work could explore more complex computational structures, like loops or recursive sub-tasks, within the differentiable architecture.

Summary updated

BibTeX
@inproceedings{zentner2024conditionally,
  author = {K. R. Zentner and Ryan Julian and Brian Ichter and Gaurav S. Sukhatme},
  title = {{Conditionally Combining Robot Skills using Large Language Models}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  doi = {10.1109/icra57147.2024.10611275},
}
Figure