WebCoder: Scaling General Frontend Development with Artifact-Grounded Agentic Reinforcement Learning

📄 arXiv: 2610.23104v1 📥 PDF

作者: Zijun Dou, Zhen Yang, Xijun Liu, Dongzhuoran Zhou, Aohan Zeng, Jie Tang

分类: cs.AI

发布日期: 2026-10-16

备注: 50 pages, 22 figures, 11 tables. Project page: https://douzj-llm.github.io/WebCoder/


💡 一句话要点

提出WebCoder以解决前端开发中的多任务学习问题

🎯 匹配领域: 支柱二:RL算法与架构 (RL & Architecture)

关键词: 前端开发 强化学习 多任务学习 信用分配 自动化工具

📋 核心要点

  1. 现有前端开发方法在处理多任务学习和长序列动作的信用分配时存在困难,导致效率低下。
  2. WebCoder通过基于工件的代理强化学习,评估开发活动对共享工件的影响,从而优化任务奖励分配。
  3. 在Webdev-Bench上,WebCoder-27B的任务满足率从64.8提升至72.8,超越了Claude-Opus-4.8和GPT-5.4的表现。

📝 摘要(中文)

现实世界的前端开发需要代理能够在不断变化的应用状态下进行重现、生成、修改和修复。学习这一过程的通用策略需要将异构执行反馈转化为与任务对齐的奖励,并在长序列的相互依赖动作中进行有效的信用分配。我们提出了WebCoder,一个通过基于工件的代理强化学习训练的通用前端开发代理。我们的核心思想是通过共享可执行工件的效果及其对任务要求的满足程度来评估多样化的开发活动。我们构建了Webdev-World,一个可执行环境,集成了代码编辑、应用执行、浏览器检查和按需技能,同时在交互中保持项目状态。独立验证器根据任务要求评估最终应用并提供终端奖励,而中间工件进展的变化则在开发阶段之间重新分配结果的回报优势。

🔬 方法详解

问题定义:本论文旨在解决前端开发中多任务学习的挑战,尤其是在长序列动作的信用分配和异构反馈的处理上,现有方法往往无法有效整合这些信息。

核心思路:我们提出WebCoder,通过基于工件的代理强化学习,评估不同开发活动对共享可执行工件的影响,从而实现任务奖励的有效分配。

技术框架:WebCoder的整体架构包括Webdev-World环境、独立验证器和奖励分配机制。Webdev-World集成了代码编辑、应用执行和浏览器检查等功能,保持项目状态。

关键创新:最重要的创新在于引入了基于工件的信用分配机制和长时间训练策略,这使得代理能够在复杂的开发任务中更好地学习和适应。

关键设计:在参数设置上,采用了适应性的奖励机制,损失函数设计考虑了中间工件进展的变化,网络结构则支持长序列的训练和上下文压缩。

🖼️ 关键图片

fig_0
fig_1
fig_2

📊 实验亮点

在Webdev-Bench上,WebCoder-27B的任务满足率从64.8提升至72.8,显著超越了Claude-Opus-4.8(65.1)和GPT-5.4(59.6)。在Vision2Web上,其平均视觉和功能评分从41.1提升至62.4,表现与Claude-Opus-4.8相当。这些结果表明WebCoder在前端开发任务中的有效性和优势。

🎯 应用场景

WebCoder的研究成果在前端开发领域具有广泛的应用潜力,能够提升开发效率和质量,特别是在需要快速迭代和多任务处理的场景中。未来,该技术可能会推动自动化开发工具的发展,减少人工干预,提高开发人员的生产力。

📄 摘要(原文)

Real-world frontend development requires agents to compose reproduction, generation, modification, and repair over an evolving application state. Learning a general policy for this process requires translating heterogeneous execution feedback into task-aligned rewards and effective credit assignment across long sequences of interdependent actions. We introduce WebCoder, a general frontend development agent trained with artifact-grounded agentic reinforcement learning. Our key idea is to assess diverse development activities through their effects on a shared executable artifact and its satisfaction of task requirements. We build Webdev-World, an executable environment that integrates code editing, application execution, browser inspection, and on-demand skills while preserving project state across interactions. An independent verifier evaluates the final application against task requirements to provide terminal rewards, while changes in intermediate artifact progress redistribute the resulting rollout advantage across development segments. Context compaction and message-tree sample construction support training on trajectories beyond a single context window while avoiding repeated loss computation on shared generated history. We further introduce Webdev-Bench to evaluate composed development requirements within a single project. On Webdev-Bench, WebCoder-27B raises requirement satisfaction from 64.8 for its Qwen3.8-27B base model to 72.8, exceeding Claude-Opus-4.8 (65.1) and GPT-5.4 (59.6); on Vision2Web, it improves the average visual and functional score from 41.1 to 62.4, on par with Claude-Opus-4.8. Ablation studies confirm the contributions of artifact-grounded credit assignment and long-horizon training.