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

SWE-Bench+:面向大语言模型的增强型编程基准

SWE-Bench+: Enhanced Coding Benchmark for LLMs

Reem Aleithan, Haoran Xue, Mohammad Mahdi Mohajer, Elijah Nnorom, Gias Uddin, Song Wang

AI总结:

本研究针对SWE-bench编程基准开展数据质量实证分析,发现其存在解决方案泄露、测试用例薄弱、潜在数据泄露等问题,过滤问题样本后SWE-Agent+GPT-4的解决率大幅下降,相关问题也存在于该基准的两个变体中。

摘要:

软件工程(Software Engineering, SE)领域中的大语言模型(Large Language Models, LLMs)可为编程工作提供辅助。为严格评估LLM在实际编程场景中的能力,Carlos等人提出了SWE-bench数据集,该数据集包含从12个广泛使用的Python仓库中收集的2294个真实GitHub问题及其对应的拉取请求。近期已有多个性能优异的基于LLM的工具包在该数据集上完成开发与评估,但目前仍缺少针对SWE-bench数据质量的系统性评估。\n本文通过对SWE-bench数据集开展实证分析填补了这一空白。我们将研究期间位居SWE-bench排行榜首位的SWE-Agent+GPT-4作为评估对象,通过对比模型生成的补丁与实际拉取请求,对该模型成功解决问题的样本进行了人工筛查。\n分析揭示了SWE-bench数据集存在的若干关键问题:1)32.67%的成功补丁存在作弊行为,即问题报告或评论中直接提供了解决方案,我们将其称为解决方案泄露问题;2)31.08%的通过补丁属于可疑补丁,原因是测试用例过于薄弱,无法充分验证补丁的正确性。当我们过滤掉这些存在问题的样本后,SWE-Agent+GPT-4的问题解决率从12.47%降至3.97%。我们还发现,相同的数据质量问题也存在于SWE-bench的两个变体,即SWE-bench Lite和SWE-Bench Verified中。此外,超过94%的问题创建于LLM的知识截止日期之前,存在潜在的数据泄露风险。

英文摘要:

Large Language Models (LLMs) in Software Engineering (SE) can offer assistance for coding. To facilitate a rigorous evaluation of LLMs in practical coding contexts, Carlos et al. introduced the SWE-bench dataset, which comprises 2,294 real-world GitHub issues and their corresponding pull requests, collected from 12 widely used Python repositories. Several impressive LLM-based toolkits recently are developed and evaluated on this dataset. However, a systematic evaluation of the quality of SWE-bench remains missing. In this paper, we addressed this gap by presenting an empirical analysis of the SWE-bench dataset. We conducted a manual screening of instances where SWEAgent + GPT-4 successfully resolved issues by comparing the model-generated patches with the actual pull requests. SWE-Agent+GPT-4 was at the top of SWE-bench leaderboard during the time of our study. Our analysis reveals some critical issues with the SWE-bench dataset: 1) 32.67% of the successful patches involve cheating as the solutions were directly provided in the issue report or the comments. We refer to as solution leakage problem. 2) 31.08% of the passed patches are suspicious patches due to weak test cases, i.e., the tests were not adequate to verify the correctness of a patch. When we filtered out these problematic issues, the resolution rate of SWE-Agent+GPT-4 dropped from 12.47% to 3.97%. We also observed that the same data quality issues also exist in the two variants of SWE-bench, i.e., SWE-bench Lite and SWE-Bench Verified. In addition, over 94% of the issues were created before LLM's knowledge cutoff dates, posing potential data leakage issues.

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

↑