cs.CLAug 16, 2026

Improving LLM-based Autonomous Web Agents with Filtering

Authors: Zhitong Guo, Jing Yu Koh, Ruiyu Li

Organizations: Carnegie Mellon University, Pittsburgh, PA, United States

Abstract

Autonomous web agents, powered by Large Language Models (LLMs), have garnered significant attention for automating various web-based tasks with multi-step reasoning and decision-making capabilities. An open research question in the development of these agents lies in the format of the webpage input. Raw HTML source code, with its extensive and often irrelevant details, poses difficulties for LLMs with limited context windows. To address this challenge, we first reproduce baseline models such as GPT-3.5 and LLaMA-2-70B on the WebArena (Zhou et al., 2023) benchmark, identifying common failure modes. We then propose two retrieval strategies to filter out irrelevant context for LLM agents. We develop DeBERTa-based and T5-based models that rank HTML elements by their relevance to the task. We fine-tune them on Mind2Web trajectory data and transfer them to WebArena. Experiments show that our DeBERTa-based model improves the success rate of the LLaMA-2-70B LLM agent on WebArena from 1.97% to 2.96%. Moreover, we develop a zero-shot ColBERT-based retriever that is able to retrieve the ground-truth element with a recall of 0.52 on Mind2Web and 0.47 on WebArena.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Why Do LLM-based Web Agents Fail? A Hierarchical Planning Perspective

    Mar 15, 2026Mohamed Aghzal, Gregory J. Stein, Ziyu YaoWeb AgentsLLM Agent Reliability

  2. Structured Distillation of Web Agent Capabilities Enables Generalization

    Apr 9, 2026Xing Han Lù, Siva ReddyLLM Agent TrainingWeb Agents

  3. Read More, Think More: Revisiting Observation Reduction for Web Agents

    Apr 2, 2026Masafumi Enomoto, Ryoma Obara, Haochen Zhang +1Web Agents