WorldAPIs:世界值多少个API?一个思想实验
WorldAPIs: The World Is Worth How Many APIs? A Thought Experiment
AI总结:
本研究通过思想实验探究通用具身智能体所需的API数量与类型,提出基于GPT-4少样本提示的框架从wikiHow指令迭代归纳API,在0.5%教程中归纳出300+API,发现现有模拟器仅支持少量高频API,推动具身环境发展。
摘要:
AI系统通过API调用访问的基础动作或可供性在物理环境中做出决策。尽管在现实世界中部署AI智能体涉及大量高层级动作,但现有的具身模拟器仅提供有限的领域相关API集合。这自然引出了以下问题:一个通用具身智能体需要多少个基础动作(API),这些动作应该是什么样的?我们通过一个思想实验来探究这一问题:假设wikiHow教程涵盖了多种多样的人工编写任务,那么覆盖这些指令所需的API空间是什么样的?我们提出了一个框架,通过将wikiHow指令锚定到情境化智能体策略来迭代归纳新的API。受大语言模型(LLM)在具身规划领域近期取得的成功启发,我们提出了一种少样本提示方法,引导GPT-4生成类Python程序作为智能体策略,并通过两个步骤逐步构建API全集:1)复用种子API集合;2)在必要时构造新的API调用。本思想实验的重点在于定义这些API,而非其可执行性。我们将所提出的流水线应用于wikiHow教程中的指令。在仅占0.5%的少量教程上,我们归纳出了300多个API构成的动作空间,这些API是捕捉物理世界中丰富多样任务所必需的。对归纳输出的详细自动分析与人工分析表明,所提出的流水线能够实现有效的API复用与创建。此外,人工审核显示,现有模拟器仅支持归纳出的API中的一小部分(在排名前50的高频API中仅支持9个),这为开发动作丰富的具身环境提供了动力。
英文摘要:
AI systems make decisions in physical environments through primitive actions or affordances that are accessed via API calls. While deploying AI agents in the real world involves numerous high-level actions, existing embodied simulators offer a limited set of domain-salient APIs. This naturally brings up the questions: how many primitive actions (APIs) are needed for a versatile embodied agent, and what should they look like? We explore this via a thought experiment: assuming that wikiHow tutorials cover a wide variety of human-written tasks, what is the space of APIs needed to cover these instructions? We propose a framework to iteratively induce new APIs by grounding wikiHow instruction to situated agent policies. Inspired by recent successes in large language models (LLMs) for embodied planning, we propose a few-shot prompting to steer GPT-4 to generate Pythonic programs as agent policies and bootstrap a universe of APIs by 1) reusing a seed set of APIs; and then 2) fabricate new API calls when necessary. The focus of this thought experiment is on defining these APIs rather than their executability. We apply the proposed pipeline on instructions from wikiHow tutorials. On a small fraction (0.5%) of tutorials, we induce an action space of 300+ APIs necessary for capturing the rich variety of tasks in the physical world. A detailed automatic and human analysis of the induction output reveals that the proposed pipeline enables effective reuse and creation of APIs. Moreover, a manual review revealed that existing simulators support only a small subset of the induced APIs (9 of the top 50 frequent APIs), motivating the development of action-rich embodied environments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。