arXiv:2505.16421cs.CLcs.LG2025-05EMNLP被引 155

用强化学习训练能多轮操作网页的智能体,成功率大幅提升。

WebAgent-R1: Training Web Agents via End-to-End Multi-Turn Reinforcement Learning

  • 直接通过在线交互学习,用二元奖励驱动决策。
  • 使Qwen和Llama在网页任务上成功率分别提升至33.9%和44.8%。
  • 适合研究网页自动化、强化学习应用的开发者和研究人员。

尽管强化学习在提升大语言模型方面表现卓越,但主要集中在单轮任务如解数学题。由于动态网页界面中长周期决策的复杂性,训练有效的多轮网页智能体仍具挑战。本文提出WebAgent-R1,一种简单而高效的端到端多轮强化学习框架。该框架通过异步生成多样化轨迹,直接从与网络环境的在线互动中学习,完全由任务成功与否的二元奖励引导。在WebArena-Lite基准测试中,WebAgent-R1将Qwen-2.5-3B的任务成功率从6.1%提升至33.9%,Llama-3.1-8B从8.5%提升至44.8%,显著优于现有最先进方法及OpenAI o3等专有模型。深入分析表明,基于思考的提示策略和测试时通过增加交互次数进行扩展具有有效性。我们还引入两种变体WebAgent-R1-Zero和WebAgent-R1-CoT,探讨不同强化学习初始化策略,凸显预训练阶段(行为克隆)的重要性,并为在网页智能体中融入长链式思维(CoT)提供洞见。

原文摘要 · Abstract (English)

While reinforcement learning (RL) has demonstrated remarkable success in enhancing large language models (LLMs), it has primarily focused on single-turn tasks such as solving math problems. Training effective web agents for multi-turn interactions remains challenging due to the complexity of long-horizon decision-making across dynamic web interfaces. In this work, we present WebAgent-R1, a simple yet effective end-to-end multi-turn RL framework for training web agents. It learns directly from online interactions with web environments by asynchronously generating diverse trajectories, entirely guided by binary rewards depending on task success. Experiments on the WebArena-Lite benchmark demonstrate the effectiveness of WebAgent-R1, boosting the task success rate of Qwen-2.5-3B from 6.1% to 33.9% and Llama-3.1-8B from 8.5% to 44.8%, significantly outperforming existing state-of-the-art methods and strong proprietary models such as OpenAI o3. In-depth analyses reveal the effectiveness of the thinking-based prompting strategy and test-time scaling through increased interactions for web tasks. We further investigate different RL initialization policies by introducing two variants, namely WebAgent-R1-Zero and WebAgent-R1-CoT, which highlight the importance of the warm-up training stage (i.e., behavior cloning) and provide insights on incorporating long chain-of-thought (CoT) reasoning in web agents.

强化学习网页智能体多轮交互大模型应用

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。