Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
102 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Demo2Code: From Summarizing Demonstrations to Synthesizing Code via Extended Chain-of-Thought (2305.16744v3)

Published 26 May 2023 in cs.RO

Abstract: Language instructions and demonstrations are two natural ways for users to teach robots personalized tasks. Recent progress in LLMs has shown impressive performance in translating language instructions into code for robotic tasks. However, translating demonstrations into task code continues to be a challenge due to the length and complexity of both demonstrations and code, making learning a direct mapping intractable. This paper presents Demo2Code, a novel framework that generates robot task code from demonstrations via an extended chain-of-thought and defines a common latent specification to connect the two. Our framework employs a robust two-stage process: (1) a recursive summarization technique that condenses demonstrations into concise specifications, and (2) a code synthesis approach that expands each function recursively from the generated specifications. We conduct extensive evaluation on various robot task benchmarks, including a novel game benchmark Robotouille, designed to simulate diverse cooking tasks in a kitchen environment. The project's website is available at https://portal-cornell.github.io/demo2code/

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (4)
  1. Huaxiaoyue Wang (4 papers)
  2. Gonzalo Gonzalez-Pumariega (7 papers)
  3. Yash Sharma (45 papers)
  4. Sanjiban Choudhury (62 papers)
Citations (28)
Github Logo Streamline Icon: https://streamlinehq.com