mlsanityData to 7 Oct 2026

FocusAgent: Simple Yet Effective Ways of Trimming the Large Context of Web Agents

arXiv 2510.03204 ↗First posted 3 Oct 2025cs.CLcited by 16

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

Web agents powered by large language models (LLMs) must process lengthy web page observations to complete user goals; these pages often exceed tens of thousands of tokens. This saturates context limits and increases computational cost processing; moreover, processing full pages exposes agents to security risks such as prompt injection. Existing pruning strategies either discard relevant content or retain irrelevant context, leading to suboptimal action prediction. We introduce FocusAgent, a simple yet effective approach that leverages a lightweight LLM retriever to extract the most relevant lines from accessibility tree (AxTree) observations, guided by task goals. By pruning noisy and irrelevant content, FocusAgent enables efficient reasoning while reducing vulnerability to injection attacks. Experiments on WorkArena and WebArena benchmarks show that FocusAgent matches the performance of strong baselines, while reducing observation size by over 50%. Furthermore, a variant of FocusAgent significantly reduces the success rate of prompt-injection attacks, including banner and pop-up attacks, while maintaining task success performance in attack-free settings. Our results highlight that targeted LLM-based retrieval is a practical and robust strategy for building web agents that are efficient, effective, and secure.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 31 of its 40 references that are in the map. First posted on arXiv 3 Oct 2025.

Builds on

31 of 40 references.

Closest ancestors · 11

Same direction, newest first

  1. 2025RedTeamCUA: Realistic Adversarial Testing of Computer-Use Agents in Hybrid Web-OS Environments28 May
  2. 2025WASP: Benchmarking Web Agent Security Against Prompt Injection Attacks22 Apr
  3. 2025DoomArena: A framework for Testing AI Agents Against Evolving Security Threats18 Apr
  4. 2025Defeating Prompt Injections by Design24 Mar
  5. 2025AgentDAM: Privacy Leakage Evaluation for Autonomous Web Agents12 Mar
  6. 2025SafeArena: Evaluating the Safety of Autonomous Web Agents6 Mar
  7. 2025Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents27 Feb
  8. 2024Attacking Vision-Language Computer Agents via Pop-ups4 Nov
  9. 2024Refusal-Trained LLMs Are Easily Jailbroken As Browser Agents11 Oct
  10. 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
  11. 2024EIA: Environmental Injection Attack on Generalist Web Agents for Privacy Leakage17 Sep

Other references · 20

  1. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
  2. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,330
  3. 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,210
  4. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
  5. 2023Language Models can Solve Computer Taskscited by 371
  6. 2024WorkArena: How Capable Are Web Agents at Solving Common Knowledge Work Tasks?cited by 348
  7. 2023Set-of-Mark Prompting Unleashes Extraordinary Visual Grounding in GPT-4Vcited by 291
  8. 2024AI Agents That Mattercited by 199
  9. 2024WebLINX: Real-World Website Navigation with Multi-Turn Dialoguecited by 177
  10. 2023Multimodal Web Navigation with Instruction-Finetuned Foundation Modelscited by 159
  11. 2025Agent S2: A Compositional Generalist-Specialist Framework for Computer Use Agentscited by 156
  12. 2024Is Your LLM Secretly a World Model of the Internet? Model-Based Planning for Web Agentscited by 144
8 more
  1. 2024AgentOccam: A Simple Yet Strong Baseline for LLM-Based Web Agentscited by 110
  2. 2024WebPilot: A Versatile and Autonomous Multi-Agent System for Web Task Execution with Strategic Explorationcited by 100
  3. 2024BM25S: Orders of magnitude faster lexical search via eager sparse scoringcited by 87
  4. 2024Agent-E: From Autonomous Web Navigation to Foundational Design Principles in Agentic Systemscited by 79
  5. 2023SteP: Stacked LLM Policies for Web Actionscited by 66
  6. 2025Towards Enterprise-Ready Computer Using Generalist Agentcited by 31
  7. 2025R2D2: Remembering, Replaying and Dynamic Decision Making with a Reflective Agentic Memorycited by 14
  8. 2022Instruction-Following Agents with Multimodal Transformercited by 13

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 15.

16 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2025Mind the Web: The Security of Web Use Agents
  2. 2026WebAgentGuard: A Reasoning-Driven Guard Model for Detecting Prompt Injection Attacks in Web Agents
  3. 2026WAAA! Web Adversaries Against Agentic Browsers
  4. 2025Context manipulation attacks : Web agents are susceptible to corrupted memory
  5. 2026Improving LLM-based Autonomous Web Agents with Filtering
  6. 2026MUZZLE: Adaptive Agentic Red-Teaming of Web Agents Against Indirect Prompt Injection Attacks
  7. 2026ARGUS: Defending LLM Agents Against Context-Aware Prompt Injection
  8. 2025Evaluating Long-Context Reasoning in LLM-Based WebAgents