Skip to main content
QUICK REVIEW

[论文解读] Language Models can Solve Computer Tasks

Geunwoo Kim, Pierre Baldi|arXiv (Cornell University)|Mar 30, 2023
Topic ModelingComputer Science被引用 68
一句话总结

论文提出递归批评与改进(RCI)提示,以使大语言模型(LLM)代理通过自然语言执行计算机任务,在小示范、无特定任务奖励的条件下,在 MiniWoB++ 上达到最先进水平。

ABSTRACT

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.

研究动机与目标

  • 推动构建通过自然语言命令解决计算机任务的通用智能代理。
  • 展示基于 LLM 的代理通过提示即可在计算机任务上超越监督学习和强化学习基线。
  • 证明 RCI 能降低数据需求并避免新任务的特定奖励信号。
  • 展示 RCI 在推理基准上超越仅用于计算机任务的能力,提升 LLM 推理能力。

提出的方法

  • 引入递归批评与改进(RCI)提示,LLM 首先输出计划,然后进行批评并改进。
  • 将行动采样分解为任务绑定、状态绑定和代理绑定。
  • 对计划生成应用显式 RCI,对将行动绑定于当前状态和代理约束应用隐式 RCI。
  • 在 MiniWoB++ 上使用 InstructGPT-3+RLHF 模型并对每个任务给出少量示范来评估 RCI。
  • 将 RCI 与零-shot 提示和思维链(Chain-of-Thought)提示进行对比,包括 CoT 混合方法。
  • 强调 RCI 可以与 CoT 结合进一步提升推理能力。

实验结果

研究问题

  • RQ1一个 LLM 代理在没有任务特定奖励或大规模专家数据集的情况下,能否在自然语言引导下执行计算机任务?
  • RQ2RCI 在任务绑定、状态绑定、代理绑定方面是否提升了 MiniWoB++ 的绑定与整体任务成功率?
  • RQ3RCI 如何与思维链提示相互作用,以提升在标准基准上的推理能力?

主要发现

  • RCI 提示在 MiniWoB++ 上显著超越现有的监督学习、强化学习和 LLM 方法。
  • 在 InstructGPT-3+RLHF 下,RCI 仅使用每个任务的少量示范即可在 MiniWoB++ 上达到最先进的性能,且无需任务特定的奖励函数。
  • 与零-shot 提示相比,RCI 在八项推理基准(算术与常识推理)上提升了性能。
  • 当与思维链提示结合时,RCI 展现出协同效益,通常超过任一单独方法。
  • 消融研究显示任务绑定、状态绑定和代理绑定对性能均有显著贡献,其中状态绑定对于处理长任务或复杂任务至关重要。
  • RCI 的示例需求量显著更少(大约比 CC-Net 少 120 倍、比 CC-Net 少 11,000 倍)以实现强性能。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。