arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.16744cs.RO
收藏

Demo2Code:通过扩展思维链从演示总结到代码合成

Demo2Code: From Summarizing Demonstrations to Synthesizing Code via Extended Chain-of-Thought

Cornell University(康奈尔大学)

Huaxiaoyue Wang, Gonzalo Gonzalez-Pumariega, Yash Sharma, Sanjiban Choudhury

AI总结:

本文提出 Demo2Code 框架,通过扩展思维链、递归总结演示并递归合成代码,解决从复杂机器人演示生成任务代码的难题。

摘要:

语言指令和演示是用户向机器人教授个性化任务的两种自然方式。大型语言模型(LLM)的最新进展在将语言指令转换为机器人任务代码方面展现了出色性能。然而,由于演示和代码均具有长度与复杂性,将演示转换为任务代码仍是一项挑战,这使得学习直接映射变得困难。本文提出 Demo2Code,这是一种新颖框架,通过扩展思维链从演示生成机器人任务代码,并定义一个共同的潜在规范来连接二者。我们的框架采用稳健的两阶段流程:(1)递归总结技术,将演示浓缩为简洁规范;(2)代码合成方法,根据生成的规范递归扩展每个函数。我们在多种机器人任务基准上进行了广泛评估,包括一个名为 Robotouille 的新型游戏基准,旨在模拟厨房环境中的多样化烹饪任务。该项目网站位于 https://portal-cornell.github.io/demo2code/。

英文摘要:

Language instructions and demonstrations are two natural ways for users to teach robots personalized tasks. Recent progress in Large Language Models (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/

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑