Code as Policies: Language Model Programs for Embodied Control

计算机科学 程序设计语言 Python(编程语言) 背景(考古学) 编码(集合论) 机器人 人工智能 自然语言 古生物学 集合(抽象数据类型) 生物
作者
Jacky Liang,Wenlong Huang,Fei Xia,Peng Xu,Karol Hausman,Brian Ichter,Pete Florence,Andy Zeng
标识
DOI:10.1109/icra48891.2023.10160591
摘要

Large language models (LLMs) trained on code-completion have been shown to be capable of synthesizing simple Python programs from docstrings [1]. We find that these code-writing LLMs can be re-purposed to write robot policy code, given natural language commands. Specifically, policy code can express functions or feedback loops that process perception outputs (e.g., from object detectors [2], [3]) and parameterize control primitive APIs. When provided as input several example language commands (formatted as comments) followed by corresponding policy code (via few-shot prompting), LLMs can take in new commands and autonomously re-compose API calls to generate new policy code respectively. By chaining classic logic structures and referencing third-party libraries (e.g., NumPy, Shapely) to perform arithmetic, LLMs used in this way can write robot policies that (i) exhibit spatial-geometric reasoning, (ii) generalize to new instructions, and (iii) prescribe precise values (e.g., velocities) to ambiguous descriptions (‘faster’) depending on context (i.e., behavioral commonsense). This paper presents Code as Policies: a robot-centric formulation of language model generated programs (LMPs) that can represent reactive policies (e.g., impedance controllers), as well as waypoint-based policies (vision-based pick and place, trajectory-based control), demonstrated across multiple real robot platforms. Central to our approach is prompting hierarchical code-gen (recursively defining undefined functions), which can write more complex code and also improves state-of-the-art to solve 39.8% of problems on the HumanEval [1] benchmark. Code and videos are available at https://code-as-policies.github.io
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
Jasper应助大海之滨采纳,获得10
刚刚
2秒前
Lutte001完成签到,获得积分10
2秒前
moye完成签到,获得积分10
2秒前
深情安青应助lllll采纳,获得10
3秒前
4秒前
HesperLxy发布了新的文献求助10
4秒前
思源应助椰果爱采纳,获得10
4秒前
bkagyin应助bwl采纳,获得10
4秒前
5秒前
panpan完成签到,获得积分10
6秒前
任迷迷完成签到 ,获得积分10
6秒前
Owen应助终陌采纳,获得10
6秒前
ma发布了新的文献求助10
6秒前
xing_xing应助无敌辉儿采纳,获得20
6秒前
cmz发布了新的文献求助10
7秒前
传奇3应助木子采纳,获得10
7秒前
科研通AI6.4应助飘逸冰岚采纳,获得10
7秒前
CHBW完成签到,获得积分10
8秒前
8秒前
8秒前
顺利夏青完成签到,获得积分10
9秒前
ttjek完成签到,获得积分10
9秒前
稳重的傀斗应助机灵安白采纳,获得10
9秒前
小米完成签到,获得积分10
9秒前
9秒前
顾矜应助哥就爱讲话采纳,获得10
9秒前
宋坤发布了新的文献求助10
10秒前
10秒前
molihuakai应助nini采纳,获得10
10秒前
10秒前
11秒前
科研通AI6.4应助成就蚂蚁采纳,获得10
11秒前
学术侠发布了新的文献求助10
11秒前
linxin发布了新的文献求助10
12秒前
共享精神应助落叶采纳,获得20
12秒前
12秒前
pacman发布了新的文献求助10
12秒前
852应助czx采纳,获得10
12秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Essentials of Carbohydrate Chemistry and Biochemistry, 4th Edition 800
Organizational Behavior 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
CLSI VET01S-2024 Performance Standards for Antimicrobial Disk and Dilution Susceptibility Tests for Bacteria Isolated From Animals (7th Ed) 500
A Case Study on Hotels as Noncongregate Emergency Living Accommodations for Returning Citizens 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 化学工程 工程类 有机化学 物理 复合材料 生物化学 内科学 细胞生物学 基因 遗传学 免疫学 冶金 光电子学 癌症研究
热门帖子
关注 科研通微信公众号,转发送积分 7764636
求助须知:如何正确求助?哪些是违规求助? 9308817
关于积分的说明 20308225
捐赠科研通 7349371
什么是DOI,文献DOI怎么找? 3314465
关于科研通互助平台的介绍 2463928
邀请新用户注册赠送积分活动 2328686