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

ComBench:一个面向编译错误修复的仓库级真实世界基准

ComBench: A Repo-level Real-world Benchmark for Compilation Error Repair

The Chinese University of Hong Kong(香港中文大学);School of Software Engineering, Sun Yat-sen University(中山大学软件工程学院);Sun Yat-sen University(中山大学)

Jia Li, Zeyang Zhuang, Zhuangbin Chen, Yuxin Su, Wei Meng, Michael R. Lyu

AI总结:

本文提出ComBench,首个面向C/C++编译错误修复的仓库级真实世界基准,通过自动化框架系统挖掘GitHub CI历史中的真实失败案例,评估12种现代LLM在直接和代理修复设置下的表现,揭示模型在语法正确性与语义正确性上的显著差距。

摘要:

编译错误在软件开发中普遍存在且关键,显著阻碍生产力。为此提出了自动化编译错误修复(ACER)技术以缓解这些问题。尽管近期在ACER领域取得进展,但其实际性能仍缺乏充分评估。这主要归因于现有基准的局限性,即去情境化的单文件数据、缺乏真实的源代码多样性以及本地任务建模偏差,忽视了仓库级复杂性。为弥合这一关键差距,我们提出了ComBench,首个仓库级、可复现的真实世界基准。ComBench通过一种新颖的自动化框架系统挖掘GitHub CI历史中的真实失败案例。我们的框架贡献了高精度识别真实修复补丁的技术,以及高保真复现原始短暂构建环境的机制。为确保数据质量,ComBench中的所有样本均经过执行验证——保证了可复现的失败和使用真实补丁的成功构建。利用ComBench,我们对12种现代LLM进行了全面评估。实验揭示了模型在语法正确性(GPT-5达到73%的成功率)与语义正确性(仅41%的补丁有效)之间的显著差距。我们还发现不同模型在不同错误类型上表现出不同的专长。ComBench提供了一个稳健且真实的平台,以指导未来ACER技术的发展,以应对现代软件开发的复杂性。

英文摘要:

Compilation errors pose pervasive and critical challenges in software development, significantly hindering productivity. Therefore, Automated Compilation Error Repair (ACER) techniques are proposed to mitigate these issues. Despite recent advancements in ACER, its real-world performance remains poorly evaluated. This can be largely attributed to the limitations of existing benchmarks, \ie decontextualized single-file data, lack of authentic source diversity, and biased local task modeling that ignores crucial repository-level complexities. To bridge this critical gap, we propose ComBench, the first repository-level, reproducible real-world benchmark for C/C++ compilation error repair. ComBench is constructed through a novel, automated framework that systematically mines real-world failures from the GitHub CI histories of large-scale open-source projects. Our framework contributes techniques for the high-precision identification of ground-truth repair patches from complex version histories and a high-fidelity mechanism for reproducing the original, ephemeral build environments. To ensure data quality, all samples in ComBench are execution-verified -- guaranteeing reproducible failures and build success with ground-truth patches. Using ComBench, we conduct a comprehensive evaluation of 12 modern LLMs under both direct and agent-based repair settings. Our experiments reveal a significant gap between a model's ability to achieve syntactic correctness (a 73% success rate for GPT-5) and its ability to ensure semantic correctness (only 41% of its patches are valid). We also find that different models exhibit distinct specializations for different error types. ComBench provides a robust and realistic platform to guide the future development of ACER techniques capable of addressing the complexities of modern software development.

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

↑