A Zero-Shot Language Agent for Computer Control with Structured Reflection

Authors: Tao Li, Gang Li, Zhiwei Deng, Bryan Wang, Yang Li

Submitted to arXiv on 12 Oct. 2023
Abstract

Large language models (LLMs) have shown increasing capacity at planning and executing a high-level goal in a live computer environment (e.g. MiniWoB++). To perform a task, recent works often require a model to learn from trace examples of the task via either supervised learning or few/many-shot prompting. Without these trace examples, it remains a challenge how an agent can autonomously learn and improve its control on a computer, which limits the ability of an agent to perform a new task. We approach this problem with a zero-shot agent that requires no given expert traces. Our agent plans for executable actions on a partially observed environment, and iteratively progresses a task by identifying and learning from its mistakes via self-reflection and structured thought management. On the easy tasks of MiniWoB++, we show that our zero-shot agent often outperforms recent SoTAs, with more efficient reasoning. For tasks with more complexity, our reflective agent performs on par with prior best models, even though previous works had the advantages of accessing expert traces or additional screen information.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close Same method, another problem
    REFLEX: Metacognitive Reasoning for Reflective Zero-Shot Robotic Planning with Large Language Models
    Wenjie Lin, Wei-Kocsis Jin, Jiansong Zhang et al. · 2025 · Not summarized yet

    REFLEX uses metacognitive reflection for zero-shot LLM planning, but applies it to multi-robot collaboration rather than computer control.

    Abstract

    While large language models (LLMs) have shown great potential across various domains, their applications in robotics remain largely limited to static prompt-based behaviors and still face challenges in complex tasks under zero-shot or few-shot settings. Inspired by human metacognitive learning and creative problem-solving, we address this limitation by exploring a fundamental question: Can LLMs be empowered with metacognitive capabilities to reason, reflect, and create, thereby enhancing their ability to perform robotic tasks with minimal demonstrations? In this paper, we present REFLEX, a framework that integrates metacognitive learning into LLM-powered multi-robot collaboration. The system…

  2. Close Another approach to the problem
    Planning Anything with Rigor: General-Purpose Zero-Shot Planning with LLM-based Formalized Programming
    Yi-Lun Hao, Yang Zhang, Chu-Chu Fan · 2024 · arXiv.org · preprint, not peer reviewed · cited 55 times · Not summarized yet

    Planning Anything with Rigor targets zero-shot planning with formalized programming, addressing the same challenge of generating plans without task-specific examples.

    Abstract

    While large language models (LLMs) have recently demonstrated strong potential in solving planning problems, there is a trade-off between flexibility and complexity. LLMs, as zero-shot planners themselves, are still not capable of directly generating valid plans for complex planning problems such as multi-constraint or long-horizon tasks. On the other hand, many frameworks aiming to solve complex planning problems often rely on task-specific preparatory efforts, such as task-specific in-context examples and pre-defined critics/verifiers, which limits their cross-task generalization capability. In this paper, we tackle these challenges by observing that the core of many planning problems lies…

  3. Close Same question Cited by this paper Used in depth by this paper A method it uses
    Language Models can Solve Computer Tasks
    Geunwoo Kim, Pierre Baldi, Stephen McAleer · 2023 · Computation and Language · cited 549 times · AI summary available

    Language Models can Solve Computer Tasks studies natural-language computer control with LLMs and recursive self-critique, the same task domain.

    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 …

  4. Close Broader context
    Plan, Eliminate, and Track -- Language Models are Good Teachers for Embodied Agents
    Yue Wu, So Yeon Min, Yonatan Bisk et al. · 2023 · Computation and Language · preprint, not peer reviewed · cited 45 times · AI summary available

    Plan, Eliminate, and Track uses LLM-generated plans to support embodied agents, rather than having an LLM directly control a computer.

    Abstract

    Pre-trained large language models (LLMs) capture procedural knowledge about the world. Recent work has leveraged LLM's ability to generate abstract plans to simplify challenging control tasks, either by action scoring, or action modeling (fine-tuning). However, the transformer architecture inherits several constraints that make it difficult for the LLM to directly serve as the agent: e.g. limited input lengths, fine-tuning inefficiency, bias from pre-training, and incompatibility with non-text environments. To maintain compatibility with a low-level trainable actor, we propose to instead use the knowledge in LLMs to simplify the control problem, rather than solving it. We propose the Plan, E…

  5. Close Same method, another problem
    Wonderful Team: Zero-Shot Physical Task Planning with Visual LLMs
    Zidan Wang, Rui Shen, Bradly Stadie · 2024 · Artificial Intelligence · cited 17 times · AI summary available

    Wonderful Team uses zero-shot visual LLM planning for robotic tasks, applying zero-shot LLM control to a physical environment.

    Abstract

    We introduce Wonderful Team, a multi-agent Vision Large Language Model (VLLM) framework for executing high-level robotic planning in a zero-shot regime. In our context, zero-shot high-level planning means that for a novel environment, we provide a VLLM with an image of the robot's surroundings and a task description, and the VLLM outputs the sequence of actions necessary for the robot to complete the task. Unlike previous methods for high-level visual planning for robotic manipulation, our method uses VLLMs for the entire planning process, enabling a more tightly integrated loop between perception, control, and planning. As a result, Wonderful Team's performance on real-world semantic and ph…

  6. Close Broader context
    Zero-Shot Goal-Directed Dialogue via RL on Imagined Conversations
    Joey Hong, Sergey Levine, Anca Dragan · 2023 · Machine Learning · preprint, not peer reviewed · cited 43 times · AI summary available

    Zero-Shot Goal-Directed Dialogue uses LLMs for interactive goal pursuit through conversation rather than actions in a computer environment.

    Abstract

    Large language models (LLMs) have emerged as powerful and general solutions to many natural language tasks. However, many of the most important applications of language generation are interactive, where an agent has to talk to a person to reach a desired outcome. For example, a teacher might try to understand their student's current comprehension level to tailor their instruction accordingly, and a travel agent might ask questions of their customer to understand their preferences in order to recommend activities they might enjoy. LLMs trained with supervised fine-tuning or "single-step" RL, as with standard RLHF, might struggle which tasks that require such goal-directed behavior, since they…

  7. Close Same method, another problem
    Reflexion: an autonomous agent with dynamic memory and self-reflection
    Noah Shinn, Beck Labash, Ashwin Gopinath · 2023 · Artificial Intelligence · cited 6,524 times · AI summary available

    Reflexion equips LLM agents with self-reflection and memory to learn from mistakes, a method also central to the computer-control agent.

    Abstract

    Recent advancements in decision-making large language model (LLM) agents have demonstrated impressive performance across various benchmarks. However, these state-of-the-art approaches typically necessitate internal model fine-tuning, external model fine-tuning, or policy optimization over a defined state space. Implementing these methods can prove challenging due to the scarcity of high-quality training data or the lack of well-defined state space. Moreover, these agents do not possess certain qualities inherent to human decision-making processes, specifically the ability to learn from mistakes. Self-reflection allows humans to efficiently solve novel problems through a process of trial and …

  8. Close Broader context
    Inner Monologue: Embodied Reasoning through Planning with Language Models
    Wenlong Huang, Fei Xia, Ted Xiao et al. · 2022 · Robotics · cited 1,803 times · AI summary available

    Inner Monologue studies LLM reasoning and planning for embodied interaction, a neighboring setting to computer control.

    Abstract

    Recent works have shown how the reasoning capabilities of Large Language Models (LLMs) can be applied to domains beyond natural language processing, such as planning and interaction for robots. These embodied problems require an agent to understand many semantic aspects of the world: the repertoire of skills available, how these skills influence the world, and how changes to the world map back to the language. LLMs planning in embodied environments need to consider not just what skills to do, but also how and when to do them - answers that change over time in response to the agent's own choices. In this work, we investigate to what extent LLMs used in such embodied contexts can reason over s…

Prior work it builds on

  1. Related Another approach to the problem Used in depth by this paper
    AdaPlanner: Adaptive Planning from Feedback with Language Models
    Haotian Sun, Yu-Chen Zhuang, Lingkai Kong et al. · 2023 · Neural Information Processing Systems · cited 276 times · Not summarized yet

    AdaPlanner adapts LLM-generated plans using environmental feedback, addressing sequential control through plan refinement rather than structured reflection.

    Abstract

    Large language models (LLMs) have recently demonstrated the potential in acting as autonomous agents for sequential decision-making tasks. However, most existing methods either take actions greedily without planning or rely on static plans that are not adaptable to environmental feedback. Consequently, the sequential decision-making performance of LLM agents degenerates with problem complexity and plan horizons increase. We propose a closed-loop approach, AdaPlanner, which allows the LLM agent to refine its self-generated plan adaptively in response to environmental feedback. In AdaPlanner, the LLM agent adaptively refines its plan from feedback with both in-plan and out-of-plan refinement s…

  2. Related Groundwork for this paper Used in depth by this paper
    ReAct: Synergizing Reasoning and Acting in Language Models
    Shunyu Yao, Jeffrey Zhao, Dian Yu et al. · 2022 · International Conference on Learning Representations · cited 13,473 times · Not summarized yet

    ReAct interleaves reasoning and actions in LLM agents, an approach the computer-control paper cites in its agent-planning background.

    Abstract

    While large language models (LLMs) have demonstrated impressive capabilities across tasks in language understanding and interactive decision making, their abilities for reasoning (e.g. chain-of-thought prompting) and acting (e.g. action plan generation) have primarily been studied as separate topics. In this paper, we explore the use of LLMs to generate both reasoning traces and task-specific actions in an interleaved manner, allowing for greater synergy between the two: reasoning traces help the model induce, track, and update action plans as well as handle exceptions, while actions allow it to interface with external sources, such as knowledge bases or environments, to gather additional in…

  3. Close Groundwork for this paper
    Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Models
    Lei Wang, Wanyu Xu, Yihuai Lan et al. · 2023 · Computation and Language · cited 928 times · AI summary available

    Plan-and-Solve Prompting improves zero-shot multi-step reasoning, providing a prompting approach cited by the computer-control paper.

    Abstract

    Large language models (LLMs) have recently been shown to deliver impressive performance in various NLP tasks. To tackle multi-step reasoning tasks, few-shot chain-of-thought (CoT) prompting includes a few manually crafted step-by-step reasoning demonstrations which enable LLMs to explicitly generate reasoning steps and improve their reasoning task accuracy. To eliminate the manual effort, Zero-shot-CoT concatenates the target problem statement with "Let's think step by step" as an input prompt to LLMs. Despite the success of Zero-shot-CoT, it still suffers from three pitfalls: calculation errors, missing-step errors, and semantic misunderstanding errors. To address the missing-step errors, w…

  4. Related Groundwork for this paper Used in depth by this paper A method it uses
    A data-driven approach for learning to control computers
    P. Humphreys, D. Raposo, Tobias Pohlen et al. · 2022 · International Conference on Machine Learning · cited 134 times · Not summarized yet

    A data-driven approach for learning to control computers studies natural-language computer control using reinforcement learning and human interaction data, and is cited by the paper.

    Abstract

    It would be useful for machines to use computers as humans do so that they can aid us in everyday tasks. This is a setting in which there is also the potential to leverage large-scale expert demonstrations and human judgements of interactive behaviour, which are two ingredients that have driven much recent success in AI. Here we investigate the setting of computer control using keyboard and mouse, with goals specified via natural language. Instead of focusing on hand-designed curricula and specialized action spaces, we focus on developing a scalable method centered on reinforcement learning combined with behavioural priors informed by actual human-computer interactions. We achieve state-of-t…

  5. Related Another approach to the problem Used in depth by this paper
    SwiftSage: A Generative Agent with Fast and Slow Thinking for Complex Interactive Tasks
    Bill Yuchen Lin, Yicheng Fu, Karina Yang et al. · 2023 · Neural Information Processing Systems · cited 259 times · Not summarized yet

    SwiftSage combines a trajectory-trained fast module with LLM planning for complex interactive tasks, unlike the paper's trace-free reflective agent.

    Abstract

    We introduce SwiftSage, a novel agent framework inspired by the dual-process theory of human cognition, designed to excel in action planning for complex interactive reasoning tasks. SwiftSage integrates the strengths of behavior cloning and prompting large language models (LLMs) to enhance task completion performance. The framework comprises two primary modules: the Swift module, representing fast and intuitive thinking, and the Sage module, emulating deliberate thought processes. The Swift module is a small encoder-decoder LM fine-tuned on the oracle agent's action trajectories, while the Sage module employs LLMs such as GPT-4 for subgoal planning and grounding. We develop a heuristic metho…

Papers that cite it

  1. Close Builds on this paper
    Try-Then-Eval: Equipping an LLM-based Agent with a Two-Phase Mechanism to Solve Computer Tasks
    Duy Cao, Phu-Vinh Nguyen, Vy Le et al. · 2024 · IEEE International Conference on Systems, Man and Cybernetics · Not summarized yet

    Try-Then-Eval evaluates a demonstration-free LLM agent on MiniWoB++ computer tasks and cites the paper.

    Abstract

    Building an autonomous intelligent agent capable of carrying out web automation tasks from descriptions in natural language offers a wide range of applications, including software testing, virtual assistants, and task automation in general. However, recent studies addressing this problem often require manually constructing of prior human demonstrations. In this paper, we approach the problem by leveraging the idea of reinforcement learning (RL) with the two-phase mechanism to form an agent using LLMs for automating computer tasks without relying on human demonstrations. We evaluate our LLM-based agent using the MiniWob++ dataset of web-based application tasks, showing that our approach achie…

  2. Close Builds on this paper
    Devil's Advocate: Anticipatory Reflection for LLM Agents
    Haoyu Wang, Tao Li, Zhiwei Deng et al. · 2024 · Conference on Empirical Methods in Natural Language Processing · cited 23 times · Not summarized yet

    Devil's Advocate adds anticipatory and post-action reflection to LLM agents and cites the paper's reflective approach.

    Abstract

    In this work, we introduce a novel approach that equips LLM agents with introspection, enhancing consistency and adaptability in solving complex tasks. Our approach prompts LLM agents to decompose a given task into manageable subtasks (i.e., to make a plan), and to continuously introspect upon the suitability and results of their actions. %; and when necessary, to explore ``the road not taken.'' We implement a three-fold introspective intervention: 1) anticipatory reflection on potential failures and alternative remedy before action execution, 2) post-action alignment with subtask objectives and backtracking with remedy to ensure utmost effort in plan execution, and 3) comprehensive review u…

  3. Related Builds on this paper
    WebPilot: A Versatile and Autonomous Multi-Agent System for Web Task Execution with Strategic Exploration
    Yao Zhang, Zi-Jian Ma, Yunpu Ma et al. · 2024 · AAAI Conference on Artificial Intelligence · cited 128 times · Not summarized yet

    WebPilot uses strategic exploration for LLM-based web task execution and cites the paper.

    Abstract

    LLM-based autonomous agents often fail to execute complex web tasks that require dynamic interaction, largely due to the inherent uncertainty and complexity of these environments. Existing LLM-based web agents typically rely on rigid, expert-designed policies specific to certain states and actions, lacking the flexibility and generalizability needed to adapt to unseen tasks. In contrast, humans excel by exploring unknowns, continuously adapting strategies based on new observations, and resolving ambiguities through exploration. To emulate human-like adaptability, web agents need strategic exploration and complex decision-making. Monte Carlo Tree Search (MCTS) is well-suited for this, but cla…

  4. Close Broader context
    Reasoning Capacity in Multi-Agent Systems: Limitations, Challenges and Human-Centered Solutions
    Pouya Pezeshkpour, Eser Kandogan, Nikita Bhutani et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 18 times · Not summarized yet

    Reasoning Capacity in Multi-Agent Systems discusses challenges and human-centered solutions for practical LLM multi-agent systems, a broader topic than computer control.

    Abstract

    Remarkable performance of large language models (LLMs) in a variety of tasks brings forth many opportunities as well as challenges of utilizing them in production settings. Towards practical adoption of LLMs, multi-agent systems hold great promise to augment, integrate, and orchestrate LLMs in the larger context of enterprise platforms that use existing proprietary data and models to tackle complex real-world tasks. Despite the tremendous success of these systems, current approaches rely on narrow, single-focus objectives for optimization and evaluation, often overlooking potential constraints in real-world scenarios, including restricted budgets, resources and time. Furthermore, interpretin…

  5. Close Builds on this paper
    MGA: Memory-Driven GUI Agent for Observation-Centric Interaction
    Weihua Cheng, Er-Sheng Ni, Wen-Long Wang et al. · 2025 · arXiv.org · preprint, not peer reviewed · cited 15 times · Not summarized yet

    MGA proposes structured memory for long-horizon GUI interaction and cites the paper among prior GUI-agent work.

    Abstract

    Multimodal Large Language Models (MLLMs) have significantly advanced GUI agents, yet long-horizon automation remains constrained by two critical bottlenecks: context overload from raw sequential trajectory dependence and architectural redundancy from over-engineered expert modules. Prevailing End-to-End and Multi-Agent paradigms struggle with error cascades caused by concatenated visual-textual histories and incur high inference latency due to redundant expert components, limiting their practical deployment. To address these issues, we propose the Memory-Driven GUI Agent (MGA), a minimalist framework that decouples long-horizon trajectories into independent decision steps linked by a structu…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 4 November 2026.

The illustrated guide to the papers around a paper