arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.23104cs.AI
收藏

WebCoder:基于工件的智能体强化学习扩展通用前端开发

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

Tsinghua University(清华大学);Zhipu AI(智谱AI);Beihang University(北京航空航天大学);University of Oslo(奥斯陆大学)

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

AI总结:

WebCoder是基于工件的智能体强化学习训练的通用前端开发智能体,在Webdev-Bench和Vision2Web上的表现优于多数同类模型,验证了其核心方法的有效性。

摘要:

现实世界的前端开发要求智能体在不断演进的应用状态上完成复现、生成、修改和修复任务。学习该过程的通用策略需要将异构执行反馈转化为任务对齐的奖励,并在长序列相互依赖的动作间实现有效的信用分配。我们提出WebCoder,一种采用基于工件的智能体强化学习训练的通用前端开发智能体。核心思路是通过不同开发活动对共享可执行工件的影响及其对任务需求的满足程度来评估这些活动。我们构建了Webdev-World,这是一个可执行环境,集成了代码编辑、应用执行、浏览器检查和按需技能,同时在交互间保留项目状态。独立验证器会根据任务需求评估最终应用以提供终端奖励,而中间工件进度的变化会将得到的rollout优势重新分配到各个开发阶段。上下文压缩和消息树样本构建支持在超出单个上下文窗口的轨迹上进行训练,同时避免在共享生成历史上重复计算损失。我们进一步推出Webdev-Bench,用于评估单个项目内的组合开发需求。在Webdev-Bench上,WebCoder-27B将需求满意度从其基础模型Qwen3.8-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相当。消融研究证实了基于工件的信用分配和长时序训练的贡献。

英文摘要:

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.

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

↑