CurricuLLM: Automatic Task Curricula Design for Learning Complex Robot Skills using Large Language Models

Kanghyun Ryu, Qiayuan Liao, Zhongyu Li, Koushil Sreenath, Negar Mehr · DOI

TL;DR

This paper introduces CurricuLLM, a novel framework that leverages Large Language Models (LLMs) to automatically design curricula for training complex robot skills. By breaking down tasks into manageable subtasks and generating corresponding reward functions and goal distributions, CurricuLLM significantly enhances the efficiency and effectiveness of robot learning, even enabling real-world deployment of learned policies.

What Problem Does This Paper Address?

Training robots to perform complex tasks using Reinforcement Learning (RL) is notoriously challenging due to sample inefficiency and the difficulty of designing effective learning strategies. Traditional curriculum learning, which structures training from simple to complex tasks, often requires extensive human expertise for designing these curricula. This manual process is time-consuming, domain-specific, and limits the scalability of RL to new tasks and environments. The paper addresses this by proposing an automated approach to curriculum design, aiming to reduce human intervention and unlock the potential of LLMs for this purpose.

Methods

CurricuLLM employs a three-step, LLM-driven process:

  1. Curriculum Design (Step 1): An LLM, prompted with descriptions of the robot, environment, and target task, generates a sequence of natural language descriptions for subtasks. These subtasks are designed to progressively build towards the final complex task, with the LLM instructed to prioritize stability and basic skills in early stages and command tracking in later stages.
  2. Task Code Sampling (Step 2): For each language-described subtask, another LLM generates multiple executable task code candidates. These candidates include reward functions and goal distributions, crucial for training RL policies. The LLM is guided by the history of previously learned subtasks to ensure continuity and prevent forgetting.
  3. Optimal Policy Selection (Step 3): An evaluation LLM analyzes trajectory rollouts from policies trained with the sampled task codes. It selects the policy that best aligns with the current subtask's description, considering both current performance and historical awareness. This selected policy then serves as the pre-trained policy for the next subtask.

This modular approach allows CurricuLLM to leverage LLMs' reasoning and coding capabilities for both high-level curriculum planning and low-level reward function generation.

Datasets

The paper evaluates CurricuLLM on several standard robotics simulation environments:

  • Gymnasium Environments: Fetch-Slide, Fetch-Push (manipulation tasks), and AntMaze-UMaze (navigation task).
  • Berkeley Humanoid: A high-dimensional locomotion environment.

The paper does not introduce new benchmark datasets but demonstrates CurricuLLM's effectiveness on existing ones.

Key Insights and Ideas

  • LLMs as Automated Curriculum Designers: The core insight is that LLMs, with their vast knowledge and reasoning abilities, can automate the complex and labor-intensive process of curriculum design for RL.
  • Task-Level Curriculum Generation: Unlike previous work focusing on environment or goal-level curricula, CurricuLLM generates task-level curricula, breaking down the how of learning a complex skill.
  • History-Aware Reward Generation: By incorporating the history of learned subtasks into the LLM's prompt for reward generation, CurricuLLM effectively mitigates catastrophic forgetting and promotes cumulative learning.
  • Language-Driven Policy Evaluation: The ability to evaluate and select policies based solely on language descriptions and trajectory statistics, without predefined metrics, is a significant advancement.
  • Real-World Transferability: The successful deployment of a learned policy on a physical Berkeley Humanoid robot demonstrates the practical applicability and robustness of the CurricuLLM approach.

Key Results

  • Improved Success Rates: CurricuLLM achieved comparable or superior success rates compared to baselines like SAC, HER, and LLM-zeroshot across various tasks, particularly excelling in the challenging AntMaze environment.
  • Effective Reward Function Generation: The reward functions generated by CurricuLLM were shown to be more comprehensive and informative than those generated in a zero-shot manner by LLMs, leading to better learning outcomes.
  • Humanoid Locomotion: In simulation, CurricuLLM achieved comparable results to human-designed reward functions for the Berkeley Humanoid, demonstrating its capability in high-dimensional control tasks.
  • Hardware Validation: The policy learned through CurricuLLM for the Berkeley Humanoid successfully tracked commands in real-world experiments, showcasing the practical utility of the framework.

Limitations and Future Work

  • Curriculum Quality Dependency: The paper notes that the success rate of CurricuLLM can be highly dependent on the quality of the generated curriculum, leading to potential variance in success rates.
  • Future Work: The authors plan to extend the feedback loop by integrating learning curves to optimize the training procedure, potentially enabling adaptive training and early stopping. They also aim to further explore the integration of LLMs for more sophisticated curriculum generation and policy evaluation.

Summary updated

BibTeX
@inproceedings{ryu2024curricullm,
  author = {Kanghyun Ryu and Qiayuan Liao and Zhongyu Li and Koushil Sreenath and Negar Mehr},
  title = {{CurricuLLM: Automatic Task Curricula Design for Learning Complex Robot Skills using Large Language Models}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  doi = {10.1109/icra55743.2025.11128783},
}
Figure