Prune4Web: DOM Tree Pruning Programming for Web Agent
On the map: LLM agents and tool use → Web, search, and research agents
Abstract (arXiv)
Web automation employs intelligent agents to execute high-level tasks by mimicking human interactions with web interfaces. Despite the capabilities of recent Large Language Model (LLM)-based web agents, navigating complex, real-world webpages efficiently remains a significant hurdle due to the prohibitively large size of Document Object Model (DOM) structures, often ranging from 10,000 to 100,000 tokens. Existing strategies typically rely on crude DOM truncation -- risking the loss of critical information -- or employ inefficient heuristics and separate ranking models, failing to achieve an optimal balance between precision and scalability. To address these challenges, we introduce Prune4Web, a novel paradigm that shifts DOM processing from resource-intensive LLM reading to efficient programmatic pruning. Central to our approach is DOM Tree Pruning Programming, where an LLM generates executable Python scoring scripts to dynamically filter DOM elements based on semantic cues from decomposed sub-tasks. This mechanism eliminates the need for LLMs to ingest raw, massive DOMs, instead delegating traversal and scoring to lightweight, interpretable programs. This methodology achieves a 25x to 50x reduction in candidate elements for grounding, thereby facilitating precise action localization while mitigating attention dilution. Furthermore, we propose a specialized data annotation pipeline and a two-turn dialogue training strategy that jointly optimizes the Planner, Programmatic Filter, and Grounder within a unified framework. Extensive experiments demonstrate state-of-the-art performance. Notably, on our low-level grounding task, Prune4Web dramatically improves accuracy from 46.8% to 88.28%, underscoring its efficacy in real-world web automation.
Key facts. Cited by 11 papers in the map (data through 13 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 38 of its 47 references that are in the map. First posted on arXiv 26 Nov 2025.
Builds on
38 of 47 references.
Closest ancestors · 12
Same direction, newest first
- 2025LineRetriever: Planning-Aware Observation Reduction for Web Agents30 Jun
- 2025An Illusion of Progress? Assessing the Current State of Web Agents2 Apr
- 2024ScribeAgent: Towards Specialized Web Agents Using Production-Scale Workflow Data22 Nov
- 2024WebRL: Training LLM Web Agents via Self-Evolving Online Curriculum Reinforcement Learning4 Nov
- 2024Beyond Browsing: API-Based Web Agents21 Oct
- 2024WebCanvas: Benchmarking Web Agents in Online Environments18 Jun
- 2024AutoAct: Automatic Agent Learning from Scratch for QA via Self-Planning10 Jan
- 2024GPT-4V(ision) is a Generalist Web Agent, if Grounded3 Jan
- 2023LASER: LLM Agent with State-Space Exploration for Web Navigation15 Sep
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agents25 Jul
- 2023Mind2Web: Towards a Generalist Agent for the Web9 Jun
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agents4 Jul
Other references · 26
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,091
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,450
- 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,154
- 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 708
- 2023CogAgent: A Visual Language Model for GUI Agentscited by 696
- 2024A Survey on Large Language Models for Code Generationcited by 656
- 2025UI-TARS: Pioneering Automated GUI Interaction with Native Agentscited by 591
- 2024SeeClick: Harnessing GUI Grounding for Advanced Visual GUI Agentscited by 555
- 2022Visual Programming: Compositional visual reasoning without trainingcited by 510
- 2023AppAgent: Multimodal Agents as Smartphone Userscited by 408
- 2024Navigating the Digital World as Humans Do: Universal Visual Grounding for GUI Agentscited by 375
- 2023A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesiscited by 351
14 more
- 2024Aguvis: Unified Pure Vision Agents for Autonomous GUI Interactioncited by 272
- 2024ShowUI: One Vision-Language-Action Model for GUI Visual Agentcited by 228
- 2024DigiRL: Training In-The-Wild Device-Control Agents with Autonomous Reinforcement Learningcited by 211
- 2024OS-Copilot: Towards Generalist Computer Agents with Self-Improvementcited by 205
- 2023Planning with Large Language Models for Code Generationcited by 182
- 2023AutoDroid: LLM-powered Task Automation in Androidcited by 180
- 2024WebLINX: Real-World Website Navigation with Multi-Turn Dialoguecited by 179
- 2023Multimodal Web Navigation with Instruction-Finetuned Foundation Modelscited by 160
- 2024UFO: A UI-Focused Agent for Windows OS Interactioncited by 148
- 2025RoboRefer: Towards Spatial Referring with Reasoning in Vision-Language Models for Roboticscited by 125
- 2024Cradle: Empowering Foundation Agents Towards General Computer Controlcited by 115
- 2023MP5: A Multi-modal Open-ended Embodied System in Minecraft via Active Perceptioncited by 67
- 2024Code-as-Monitor: Constraint-aware Visual Programming for Reactive and Proactive Robotic Failure Detectioncited by 61
- 2024EDGE: Enhanced Grounded GUI Understanding with Enriched Multi-Granularity Synthetic Datacited by 10
Built on by
Citing papers per year: 2026: 11.
11 papers.
- 2026Enhancing Web Agents with a Hierarchical Memory Treecited by 6
- 2026GUI Agents with Reinforcement Learning: Toward Digital Inhabitantscited by 3
- 2026Agentic Compilation: Mitigating the LLM Rerun Crisis for Minimized-Inference-Cost Web Automationcited by 1
- 2026Region4Web: Rethinking Observation Space Granularity for Web Agentscited by 1
- 2026Skim: Speculative Execution for Fast and Efficient Web Agentscited by 1
- 2026CI4A: Semantic Component Interfaces for Agents Empowering Web Automationcited by 0
- 2026Revisiting Observation Reduction for Web Agents: Comprehensive Evaluation with a Lightweight Frameworkcited by 0
- 2026Co-Scraper: query-aware DOM Pruning and Reusable Scraper Synthesis for Lightweight Web Data Extractioncited by 0
- 2026PlanPO: Group Planning-Aware Policy Optimization for Multi-Turn Agentic LLMscited by 0
- 2026Efficient GUI Agents: A Systems Survey of Observation, Memory, Action, and Runtime Optimizationcited by 0
- 2026Probe to Act: Elevating Browser-Use Agent via Active Visual Probingcited by 0
- 2026Probe to Act: Elevating Browser-Use Agent via Active Visual Probing27 Sep 2026
- 2026Efficient GUI Agents: A Systems Survey of Observation, Memory, Action, and Runtime Optimization2 Sep 2026
- 2026PlanPO: Group Planning-Aware Policy Optimization for Multi-Turn Agentic LLMs18 Aug 2026
- 2026Co-Scraper: query-aware DOM Pruning and Reusable Scraper Synthesis for Lightweight Web Data Extraction12 Jun 2026
- 2026Revisiting Observation Reduction for Web Agents: Comprehensive Evaluation with a Lightweight Framework28 May 2026
- 2026Skim: Speculative Execution for Fast and Efficient Web Agents15 May 2026
- 2026Region4Web: Rethinking Observation Space Granularity for Web Agents8 May 2026
- 2026GUI Agents with Reinforcement Learning: Toward Digital Inhabitants30 Apr 2026
- 2026Agentic Compilation: Mitigating the LLM Rerun Crisis for Minimized-Inference-Cost Web Automation8 Apr 2026
- 2026Enhancing Web Agents with a Hierarchical Memory Tree7 Mar 2026
- 2026CI4A: Semantic Component Interfaces for Agents Empowering Web Automation21 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2026Improving LLM-based Autonomous Web Agents with Filtering
- 2025Beyond Pixels: Exploring DOM Downsampling for LLM-Based Web Agents
- 2026Weasel: Out-of-Domain Generalization for Web Agents via Importance-Diversity Data Selection
- 2026BrowserForge: Scaling Web Episode via Parallel Browser Sandboxes
- 2025WALT: Web Agents that Learn Tools
- 2025Web-Shepherd: Advancing PRMs for Reinforcing Web Agents
- 2025WebLists: Extracting Structured Information From Complex Interactive Websites Using Executable LLM Agents
- 2025Symbiotic Cooperation for Web Agents: Harnessing Complementary Strengths of Large and Small LLMs