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

迈向协作机器人的无代码编程:基于大型代码模型进行对话式编程的代码合成实验

Towards No-Code Programming of Cobots: Experiments with Code Synthesis by Large Code Models for Conversational Programming

Computational Linguistics, Department of Linguistics, University of Potsdam, Germany(波恩大学语言学系计算语言学部门);German Research Center for Artificial Intelligence (DFKI), Berlin, Germany(德国人工智能研究中心(DFKI))

Chalamalasetti Kranti, Sherzod Hakimov, David Schlangen

AI总结:

本研究针对协作机器人传统编程的局限,提出利用大型语言模型的上下文学习能力进行对话式代码生成,并定义RATS任务与数据集,实验发现LLMs能生成准确指令序列但难以生成高阶抽象代码。

摘要:

尽管近期在家庭环境中的机器人研究很多,但目前现存的大多数机器人位于车间,且人与机器人之间的大多数交互也发生在那里。设计用于在装配线上与人类并肩工作的“协作机器人”(cobots)传统上需要专家级编程,这限制了修改能力,或需要手动引导,从而限制了所生成程序的表现力。为解决这些局限,我们探索使用大型语言模型(LLMs),特别是其进行上下文学习的能力,用于对话式代码生成。作为第一步,我们定义了RATS(“重复性装配任务”),这是一个二维构建任务,旨在为模拟工业装配场景奠定基础。在此任务中,“程序员”使用自然语言指示协作机器人如何构建某个装配体;即程序员通过自然语言诱导出程序。我们创建了一个数据集,将目标结构与各种示例指令(人工编写、基于模板和模型生成)及示例代码配对。借此,我们系统评估了最先进的LLMs在给定上下文示例的情况下合成此类代码的能力。在模拟环境中评估,我们发现LLMs能够生成准确的“一阶代码”(指令序列),但在生成“高阶代码”(如函数或循环使用等抽象)方面存在问题。

英文摘要:

While there has been a lot of research recently on robots in household environments, at the present time, most robots in existence can be found on shop floors, and most interactions between humans and robots happen there. ``Collaborative robots'' (cobots) designed to work alongside humans on assembly lines traditionally require expert programming, limiting ability to make changes, or manual guidance, limiting expressivity of the resulting programs. To address these limitations, we explore using Large Language Models (LLMs), and in particular, their abilities of doing in-context learning, for conversational code generation. As a first step, we define RATS, the ``Repetitive Assembly Task'', a 2D building task designed to lay the foundation for simulating industry assembly scenarios. In this task, a `programmer' instructs a cobot, using natural language, on how a certain assembly is to be built; that is, the programmer induces a program, through natural language. We create a dataset that pairs target structures with various example instructions (human-authored, template-based, and model-generated) and example code. With this, we systematically evaluate the capabilities of state-of-the-art LLMs for synthesising this kind of code, given in-context examples. Evaluating in a simulated environment, we find that LLMs are capable of generating accurate `first order code' (instruction sequences), but have problems producing `higher-order code' (abstractions such as functions, or use of loops).

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

↑