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

Web-Bench:一个基于 Web 标准与框架的 LLM 代码基准

Web-Bench: A LLM Code Benchmark Based on Web Standards and Frameworks

ByteDance(字节跳动)

Kai Xu, YiWei Mao, XinYi Guan, ZiLong Feng

AI总结:

本文提出 Web-Bench,一个包含 50 个顺序依赖项目任务、覆盖 Web 标准与框架的代码基准,实验显示 SOTA 模型 Pass@1 仅 25.1%,凸显 LLM 在真实 Web 开发中的不足。

摘要:

大语言模型(LLM)在编程领域的应用正在快速演进:从代码助手,到自主编程智能体,再到通过自然语言生成完整项目。早期的 LLM 代码基准主要关注代码生成准确性,但这些基准已逐渐趋于饱和。基准饱和削弱了它们对 LLM 的指导作用。例如,HumanEval 的 Pass@1 已达到 99.4%,MBPP 达到 94.2%。在解决基准饱和的各种尝试中,基于软件工程的方法脱颖而出,但现有软件工程基准的饱和度也在迅速上升。为解决这一问题,我们提出了一个新基准 Web-Bench,其中包含 50 个项目,每个项目由 20 个具有顺序依赖关系的任务组成。这些任务按顺序实现项目功能,模拟真实的人类开发工作流。在设计 Web-Bench 时,我们旨在覆盖 Web 开发的基础要素:Web 标准和 Web 框架。鉴于这些项目由具有 5 至 10 年经验的工程师设计,其规模和复杂性使每个项目都构成重大挑战。平均而言,单个项目需要一名高级工程师花费 4 至 8 小时完成。在我们给定的基准智能体(Web-Agent)上,SOTA 模型 Claude 3.7 Sonnet 仅取得 25.1% 的 Pass@1,显著低于(且优于)SWE-Bench 的 Verified(65.4%)和 Full(33.8%)分数。最后,我们讨论认为,在任何开发领域,标准和框架分别代表基础知识和效率工具,而 LLM 需要针对它们进行定制化优化。

英文摘要:

The application of large language models (LLMs) in the field of coding is evolving rapidly: from code assistants, to autonomous coding agents, and then to generating complete projects through natural language. Early LLM code benchmarks primarily focused on code generation accuracy, but these benchmarks have gradually become saturated. Benchmark saturation weakens their guiding role for LLMs. For example, HumanEval Pass@1 has reached 99.4% and MBPP 94.2%. Among various attempts to address benchmark saturation, approaches based on software engineering have stood out, but the saturation of existing software engineering benchmarks is rapidly increasing. To address this, we propose a new benchmark, Web-Bench, which contains 50 projects, each consisting of 20 tasks with sequential dependencies. The tasks implement project features in sequence, simulating real-world human development workflows. When designing Web-Bench, we aim to cover the foundational elements of Web development: Web Standards and Web Frameworks. Given the scale and complexity of these projects, which were designed by engineers with 5 to 10 years of experience, each presents a significant challenge. On average, a single project takes 4 to 8 hours for a senior engineer to complete. On our given benchmark agent (Web-Agent), SOTA (Claude 3.7 Sonnet) achieves only 25.1% Pass@1, significantly lower (better) than SWE-Bench's Verified (65.4%) and Full (33.8%) scores. Finally, we discuss that in any development field, Standards and Frameworks represent foundational knowledge and efficiency tools, respectively, and LLMs require optimization tailored to them.

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

↑