Skip to main content
QUICK REVIEW

[Paper Review] Language Models can Solve Computer Tasks

Geunwoo Kim, Pierre Baldi|arXiv (Cornell University)|Mar 30, 2023
Topic ModelingComputer Science68 citations
TL;DR

The paper introduces Recursive Criticism and Improvement (RCI) prompting to enable LLM agents to execute computer tasks through natural language, achieving state-of-the-art results on MiniWoB++ with few demonstrations and no task-specific rewards.

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.

Motivation & Objective

  • Motivate building generally intelligent agents that solve computer tasks via natural language commands.
  • Show that an LLM-based agent with prompting can outperform SL and RL baselines on computer tasks.
  • Demonstrate that RCI reduces data requirements and avoids task-specific reward signals for new tasks.
  • Exhibit that RCI improves LLM reasoning beyond computer tasks across reasoning benchmarks.

Proposed method

  • Introduce Recursive Criticism and Improvement (RCI) prompting where the LLM first outputs a plan, then critiques and improves it.
  • Decompose action sampling into task grounding, state grounding, and agent grounding.
  • Apply explicit RCI to plan generation and implicit RCI to ground actions in the current state and agent constraints.
  • Evaluate RCI on MiniWoB++ using InstructGPT-3+RLHF models with a handful of demonstrations per task.
  • Compare RCI to zero-shot prompting and Chain-of-Thought prompting, including CoT hybrids.
  • Highlight that RCI can pair with CoT to further boost reasoning.

Experimental results

Research questions

  • RQ1Can an LLM agent execute computer tasks guided by natural language without task-specific rewards or large expert datasets?
  • RQ2Does Recursive Criticism and Improvement improve grounding (task, state, agent) and overall task success on MiniWoB++?
  • RQ3How does RCI interact with Chain-of-Thought prompting to enhance reasoning on standard benchmarks?

Key findings

  • RCI prompting substantially outperforms existing SL, RL, and LLM approaches on MiniWoB++.
  • With InstructGPT-3+RLHF, RCI achieves state-of-the-art performance on MiniWoB++ using only a few demonstrations per task, and without a task-specific reward function.
  • RCI improves performance on eight reasoning benchmarks (arithmetic and commonsense) compared to zero-shot prompts.
  • RCI demonstrates synergistic benefits when combined with Chain-of-Thought prompting, often surpassing either method alone.
  • Ablation studies show task grounding, state grounding, and agent grounding each meaningfully contribute to performance, with state grounding crucial for handling long or complex tasks.
  • RCI requires significantly fewer demonstrations (about 120x fewer than CC-Net and 11,000x fewer than CC-Net) to achieve strong results.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.