Skip to main content
QUICK REVIEW

[Paper Review] GenSim: Generating Robotic Simulation Tasks via Large Language Models

Wang Li-rui, Yiyang Ling|arXiv (Cornell University)|Oct 2, 2023
Topic ModelingComputer Science8 citations
TL;DR

GenSim uses GPT-4 and other LLMs to automatically generate diverse robotic simulation tasks and demonstrations, enabling multitask policy training that improves task-level generalization and sim-to-real transfer.

ABSTRACT

Collecting large amounts of real-world interaction data to train general robotic policies is often prohibitively expensive, thus motivating the use of simulation data. However, existing methods for data generation have generally focused on scene-level diversity (e.g., object instances and poses) rather than task-level diversity, due to the human effort required to come up with and verify novel tasks. This has made it challenging for policies trained on simulation data to demonstrate significant task-level generalization. In this paper, we propose to automatically generate rich simulation environments and expert demonstrations by exploiting a large language models' (LLM) grounding and coding ability. Our approach, dubbed GenSim, has two modes: goal-directed generation, wherein a target task is given to the LLM and the LLM proposes a task curriculum to solve the target task, and exploratory generation, wherein the LLM bootstraps from previous tasks and iteratively proposes novel tasks that would be helpful in solving more complex tasks. We use GPT4 to expand the existing benchmark by ten times to over 100 tasks, on which we conduct supervised finetuning and evaluate several LLMs including finetuned GPTs and Code Llama on code generation for robotic simulation tasks. Furthermore, we observe that LLMs-generated simulation programs can enhance task-level generalization significantly when used for multitask policy training. We further find that with minimal sim-to-real adaptation, the multitask policies pretrained on GPT4-generated simulation tasks exhibit stronger transfer to unseen long-horizon tasks in the real world and outperform baselines by 25%. See the project website (https://liruiw.github.io/gensim) for code, demos, and videos.

Motivation & Objective

  • Motivate reducing manual task design effort by leveraging LLMs to create diverse, achievable simulation tasks.
  • Develop a two-mode task generation pipeline (goal-directed and exploratory) to expand task diversity.
  • Create a task library to cache and reuse high-quality tasks for validation and fine-tuning.
  • Train language-conditioned multitask policies on LLM-generated tasks to improve task-level generalization.
  • Evaluate LLMs (GPT-4, GPT-3.5, Code Llama) for code generation in robotic simulation contexts and analyze sim-to-real transfer.

Proposed method

  • Propose a two-mode task creator that outputs task descriptions and corresponding code for scene and demonstration generation.
  • Use a task library to enable retrieval-augmented generation and to store validated tasks for future use.
  • Apply a reflection and validation loop with an LLM critic to assess task quality before adding to the library.
  • Train language-conditioned multitask policies using demonstrations generated from the task library tasks.
  • Evaluate multiple LLMs and finetuned variants on task generation quality and policy generalization in simulation and real-world transfer.

Experimental results

Research questions

  • RQ1Can LLMs design and implement diverse, high-quality robotic simulation tasks and demonstrations?
  • RQ2Does training on LLM-generated tasks improve task-level generalization of policies compared to human-curated tasks alone?
  • RQ3Does pretraining on diverse LLM-generated simulations enhance sim-to-real transfer for long-horizon tasks?
  • RQ4How do goal-directed and exploratory generation modes compare in producing useful task curricula for policy learning?

Key findings

  • LLMs, especially GPT-4, can generate high-quality, achievable, and diverse simulation tasks by bootstrapping from existing tasks.
  • Finetuning open-source LLMs with GenSim task data improves generation performance; GPT-4-based tasks boost in-domain and zero-shot generalization.
  • Multitask policies trained on GPT-4–generated tasks show over 50% in-domain generalization gains and substantial zero-shot transfer in simulation.
  • With minimal sim-to-real adaptation, policies pretrained on GPT-4 tasks transfer better to unseen real-world tasks, outperforming baselines by about 25%.
  • Pretraining on a larger set of generated tasks (e.g., 70 tasks) yields notable robustness in real-world long-horizon tasks (e.g., build-wheel).
  • Task diversity in simulated training enhances real-world adaptability by about 25% after adaptation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.