自动化构建代码任务基准,扩展数据规模并揭示真实性能差距
Automated Benchmark Generation for Repository-Level Coding Tasks
- 用自动环境搭建系统生成历史准确的测试环境
- 新数据集覆盖数百仓库,代理成功率最高低40%
- 适合关注真实场景评估与基准可靠性的研究者
代码智能体开发热潮催生对可靠评估指标的需求,以SWE-Bench为代表的基准依赖人工构建执行环境,导致仅涵盖12个热门仓库,易引发分布偏差。本文提出SetUpAgent,实现依赖项配置、测试执行与结果解析的全自动化,生成两个新数据集:(i)SWEE-Bench,扩展至数百仓库的SWE-Bench增强版;(ii)SWA-Bench,聚焦应用而非库。对比分析显示,新数据集存在更低的缺陷描述质量、更高的修复复杂度,且代码智能体成功率最高下降40%,揭示现有基准可能严重低估真实挑战。
原文摘要 · Abstract (English)
Code Agent development is an extremely active research area, where a reliable performance metric is critical for tracking progress and guiding new developments. This demand is underscored by the meteoric rise in popularity of SWE-Bench. This benchmark challenges code agents to generate patches addressing GitHub issues given the full repository as context. The correctness of generated patches is then evaluated by executing a human-written test suite extracted from the repository after the issue's resolution. However, constructing benchmarks like SWE-Bench requires substantial manual effort to set up historically accurate execution environments for testing. Crucially, this severely limits the number of considered repositories, e.g., just 12 for SWE-Bench. Considering so few repositories, selected for their popularity runs the risk of leading to a distributional mismatch, i.e., the measured performance may not be representative of real-world scenarios potentially misguiding development efforts. In this work, we address this challenge and introduce SetUpAgent, a fully automated system capable of historically accurate dependency setup, test execution, and result parsing. Using SetUpAgent, we generate two new datasets: (i) SWEE-Bench an extended version of SWE-Bench encompassing hundreds of repositories, and (ii) SWA-Bench a benchmark focusing on applications rather than libraries. Comparing these datasets to SWE-Bench with respect to their characteristics and code agent performance, we find significant distributional differences, including lower issue description quality and detail level, higher fix complexity, and most importantly up to 40% lower agent success rates.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。