让大模型更懂网页结构,提升自动化决策成功率
Learning to Contextualize Web Pages for Enhanced Decision Making by LLM Agents
- 分离网页理解与决策,用专门模块重构复杂网页为易读格式
- 在WorkArena上使闭源模型平均提升15.6%,开源模型平均提升23.7%
- 适合作为网页自动化任务的增强框架,尤其适合追求高可靠性的应用
大语言模型(LLMs)在自动化网页任务方面展现出巨大潜力,但其在真实网站上执行简单任务时常因无法理解复杂网页结构而失败。本文提出LCoW框架,通过训练独立的上下文化模块,将复杂网页转换为更易理解的形式,从而提升LLM代理的决策能力。该模块可与不同规模的决策代理协同工作。实验表明,LCoW使闭源模型(如Gemini-1.5-flash、GPT-4o、Claude-3.5-Sonnet)在WorkArena基准上的成功率平均提升15.6%;在相同基准上,开源模型(如Llama-3.1-8B、Llama-3.1-70B)成功率平均提升23.7%。此外,搭载LCoW的Gemini-1.5-flash代理在WebShop基准上表现超越人类专家,达到当前最佳水平。代码已公开于:https://lcowiclr2025.github.io。
原文摘要 · Abstract (English)
Recent advances in large language models (LLMs) have led to a growing interest in developing LLM-based agents for automating web tasks. However, these agents often struggle with even simple tasks on real-world websites due to their limited capability to understand and process complex web page structures. In this work, we introduce LCoW, a framework for Learning language models to Contextualize complex Web pages into a more comprehensible form, thereby enhancing decision making by LLM agents. LCoW decouples web page understanding from decision making by training a separate contextualization module to transform complex web pages into comprehensible format, which are then utilized by the decision-making agent. We demonstrate that our contextualization module effectively integrates with LLM agents of various scales to significantly enhance their decision-making capabilities in web automation tasks. Notably, LCoW improves the success rates of closed-source LLMs (e.g., Gemini-1.5-flash, GPT-4o, Claude-3.5-Sonnet) by an average of 15.6%, and demonstrates a 23.7% average improvement in success rates for open-source LMs (e.g., Llama-3.1-8B, Llama-3.1-70B) on the WorkArena benchmark. Moreover, the Gemini-1.5-flash agent with LCoW achieves state-of-the-art results on the WebShop benchmark, outperforming human experts. The relevant code materials are available at our project page: https://lcowiclr2025.github.io.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。