arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.21398cs.AIcs.CLcs.HCcs.MA
收藏

Prune4Web: 面向Web代理的DOM树剪枝编程

Prune4Web: DOM Tree Pruning Programming for Web Agent

Jiayuan Zhang, Kaiquan Chen, Zhihao Lu, Enshen Zhou, Qian Yu, Jing Zhang

AI总结:

Prune4Web通过DOM树剪枝编程提升Web自动化精度,实现25-50倍候选元素减少,显著提高接地任务准确性至88.28%。

摘要:

网络自动化利用智能代理通过模仿人类与网页界面的交互来执行高层任务。尽管最近基于大语言模型(LLM)的Web代理具备一定的能力,但高效导航复杂的现实世界网页仍然面临重大挑战,因为文档对象模型(DOM)结构的规模往往高达10,000到100,000个标记。现有策略通常依赖于粗略的DOM截断——有损关键信息的风险,或者采用低效的启发式方法和单独的排序模型,未能在精度和可扩展性之间达到最佳平衡。为了解决这些挑战,我们引入了Prune4Web,一种新的范式,将DOM处理从资源密集型的LLM阅读转向高效的编程剪枝。我们的方法核心是DOM树剪枝编程,其中LLM生成可执行的Python评分脚本,根据分解的子任务的语义线索动态过滤DOM元素。这种机制消除了LLM需要摄入原始大规模DOM的需求,而是将遍历和评分委托给轻量级、可解释的程序。该方法在接地候选元素上实现了25到50倍的减少,从而在实现精确动作定位的同时缓解了注意力稀释问题。此外,我们提出了一种专门的数据标注管道和一种双轮对话训练策略,共同优化规划器、程序过滤器和接地器在一个统一的框架中。广泛的实验表明了最先进的性能。值得注意的是,在我们的低层接地任务中,Prune4Web将准确性从46.8%大幅提升到88.28%,证明了其在现实世界网络自动化中的有效性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑