arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.17491cs.CLcs.AIcs.HCcs.LG
收藏

语言模型可以解决计算机任务

Language Models can Solve Computer Tasks

University of California, Irvine(加利福尼亚大学欧文分校);Carnegie Mellon University(卡内基梅隆大学)

Geunwoo Kim, Pierre Baldi, Stephen McAleer

AI总结:

本研究提出RCI提示方案,使预训练语言模型通过递归批评与改进输出,在MiniWoB++基准上以少量示范超越监督和强化学习方法,并提升自然语言推理能力。

摘要:

能够执行计算机上通用任务的智能体,通过自动化重复性任务和协助复杂问题解决,可以提高效率和生产力。理想情况下,此类智能体应能通过自然语言命令解决呈现给它们的新计算机任务。然而,先前解决该问题的方法需要大量专家示范和特定于任务的奖励函数,这两者对于新任务而言都不切实际。在这项工作中,我们展示了一个预训练的大型语言模型(LLM)智能体,通过一种简单的提示方案,即智能体递归地批评和改进其输出(RCI),可以在自然语言指导下执行计算机任务。RCI方法在自动化计算机任务方面显著优于现有的LLM方法,并在MiniWoB++基准上超越了监督学习(SL)和强化学习(RL)方法。我们比较了多个LLM,发现使用InstructGPT-3+RLHF LLM的RCI在MiniWoB++上达到了最先进水平,每个任务仅需少量示范(而非数万个),且无需特定于任务的奖励函数。此外,我们证明了RCI提示在增强LLM在一系列自然语言推理任务上的推理能力方面的有效性,优于带有外部反馈的思维链(CoT)提示。我们发现RCI与CoT结合使用比单独使用任一方法效果更好。我们的代码可在以下网址找到:https://github.com/posgnu/rci-agent。

英文摘要:

Agents capable of carrying out general tasks on a computer can improve efficiency and productivity by automating repetitive tasks and assisting in complex problem-solving. Ideally, such agents should be able to solve new computer tasks presented to them through natural language commands. However, previous approaches to this problem require large amounts of expert demonstrations and task-specific reward functions, both of which are impractical for new tasks. In this work, we show that a pre-trained large language model (LLM) agent can execute computer tasks guided by natural language using a simple prompting scheme where the agent Recursively Criticizes and Improves its output (RCI). The RCI approach significantly outperforms existing LLM methods for automating computer tasks and surpasses supervised learning (SL) and reinforcement learning (RL) approaches on the MiniWoB++ benchmark. We compare multiple LLMs and find that RCI with the InstructGPT-3+RLHF LLM is state-of-the-art on MiniWoB++, using only a handful of demonstrations per task rather than tens of thousands, and without a task-specific reward function. Furthermore, we demonstrate RCI prompting's effectiveness in enhancing LLMs' reasoning abilities on a suite of natural language reasoning tasks, outperforming chain of thought (CoT) prompting with external feedback. We find that RCI combined with CoT performs better than either separately. Our code can be found here: https://github.com/posgnu/rci-agent.

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

↑