Skip to main content
QUICK REVIEW

[论文解读] A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesis

İzzeddin Gür, Hiroki Furuta|arXiv (Cornell University)|Jul 24, 2023
Web Data Mining and AnalysisComputer Science被引用 16
一句话总结

WebAgent 将一个专注于 HTML 的规划/摘要模型 (HTML-T5) 与一个基于证据的代码生成模型 (Flan-U-PaLM) 结合起来,通过 Python Selenium 程序实现对真实网站的自动化,成功率比基线高出超过 50%,在 Mind2Web 和 MiniWoB++ 上取得最先进的结果。

ABSTRACT

Pre-trained large language models (LLMs) have recently achieved better generalization and sample efficiency in autonomous web automation. However, the performance on real-world websites has still suffered from (1) open domainness, (2) limited context length, and (3) lack of inductive bias on HTML. We introduce WebAgent, an LLM-driven agent that learns from self-experience to complete tasks on real websites following natural language instructions. WebAgent plans ahead by decomposing instructions into canonical sub-instructions, summarizes long HTML documents into task-relevant snippets, and acts on websites via Python programs generated from those. We design WebAgent with Flan-U-PaLM, for grounded code generation, and HTML-T5, new pre-trained LLMs for long HTML documents using local and global attention mechanisms and a mixture of long-span denoising objectives, for planning and summarization. We empirically demonstrate that our modular recipe improves the success on real websites by over 50%, and that HTML-T5 is the best model to solve various HTML understanding tasks; achieving 18.7% higher success rate than the prior method on MiniWoB web automation benchmark, and SoTA performance on Mind2Web, an offline task planning evaluation.

研究动机与目标

  • 推动在真实网站上能够处理开放式行动和长 HTML 文档的自主网页自动化。
  • 开发在自监督下处理规划、HTML 摘要和程序合成的领域专用语言模型。
  • 通过将语言计划绑定到可执行的 Python 脚本以控制浏览器,实现端到端任务完成。
  • 展示在真实网站和标准基准测试上,相较于先前基线的改进泛化性和鲁棒性。

提出的方法

  • 引入 HTML-T5,一个针对长 HTML 文档设计、具局部与全局注意力机制的编码器-解码器模型。
  • 在大规模 HTML 语料库(CommonCrawl)上使用长跨度去噪目标混合进行预训练,并通过自我体验监督进行微调。
  • 采用 Flan-U-PaLM 作为基于证据的代码生成器,将子指令和 HTML 片段转换为可执行的 Python Selenium 脚本。
  • 使用自我体验监督从真实网站互动中收集演示,并对 HTML-T5 进行用于规划与摘要的微调。
  • 在模块化的 WebAgent 架构中,结合规划(HTML-T5)与程序合成(Flan-U-PaLM),以应对开放式操作和长上下文 HTML。
  • 在真实网站(房地产、社交媒体、地图)以及基准 HTML 任务(MiniWoB++、Mind2Web)上进行评估。
Figure 1: Challenges in real-world web automation. Recent language model agents (Furuta et al., 2023 ; Gur et al., 2022 ; Kim et al., 2023 ; Yao et al., 2022b ) can navigate simulated websites (Shi et al., 2017 ; Yao et al., 2022a ) , where the agents manipulate pre-defied actions and receive simpli
Figure 1: Challenges in real-world web automation. Recent language model agents (Furuta et al., 2023 ; Gur et al., 2022 ; Kim et al., 2023 ; Yao et al., 2022b ) can navigate simulated websites (Shi et al., 2017 ; Yao et al., 2022a ) , where the agents manipulate pre-defied actions and receive simpli

实验结果

研究问题

  • RQ1相比单一 LLM 方法,专业化语言模型的模块化组合如何提升真实世界网页自动化?
  • RQ2面向 HTML 的规划和长 HTML 摘要是否能够在具有长上下文文档的真实网站上实现鲁棒的任务绑定?
  • RQ3自我体验监督对规划准确性和总体任务成功率有何影响?
  • RQ4相较于先前方法,HTML-T5 在标准基于 HTML 的基准(MiniWoB++、Mind2Web)上的表现如何?

主要发现

  • WebAgent 相较于基线,真实世界网页自动化成功率提升超过 50%。
  • HTML-T5 在 MiniWoB++ 上较先前的语言模型代理领先 18.7%,并在 Mind2Web 上达到最先进的结果。
  • 配备自我体验监督的 HTML-T5 能提升规划与 HTML 摘要的能力,从而提高总体任务成功率。
  • Mind2Web 离线动作预测结果显示,HTML-T5 的 XL 变体在任务/网站/域泛化方面达到 SoTA。
  • 真实世界评估表明,最佳的组合规划+摘要模块(WebAgent)优于开环规划和基于正则表达式的摘要。
  • 消融研究表明,适应性子指令规划和支持 HTML 的摘要对成功至关重要。
Figure 3: WebAgent is a combination of LLMs: HTML-T5 for planning and summarization, and Flan-U-PaLM for grounded program synthesis. WebAgent can handle the bottlenecks in the real-world tasks; open domain action space , complex natural language instructions , and long HTML .
Figure 3: WebAgent is a combination of LLMs: HTML-T5 for planning and summarization, and Flan-U-PaLM for grounded program synthesis. WebAgent can handle the bottlenecks in the real-world tasks; open domain action space , complex natural language instructions , and long HTML .

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。