TestExplora: 通过仓库级测试生成对LLMs进行主动bug发现的基准测试
TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test Generation
AI总结:
TestExplora通过仓库级测试生成评估LLMs在主动bug发现中的能力,揭示了当前模型在复杂交互和代理探索方面的不足。
摘要:
鉴于大型语言模型(LLMs)越来越多地被应用于自动化软件开发,全面的软件保障涵盖三个不同的目标:回归预防、反应性重现和主动发现。当前的评估系统性地忽略了第三个目标。具体而言,它们要么将现有代码视为地面真实(合规陷阱)用于回归预防,要么依赖于故障后的产品(例如问题报告)用于bug重现——因此很少在故障之前揭示缺陷。为了弥补这一差距,我们提出了TestExplora,一个用于评估LLMs作为主动测试员在全规模、现实的仓库环境中的基准。TestExplora包含来自482个仓库的2,389个任务,并隐藏了所有与缺陷相关的信息。模型必须通过比较实现与文档推导出的意图来主动发现bug,使用文档作为 oracle。此外,为了保持评估的可持续性和减少泄漏,我们提出了连续、时间感知的数据收集。我们的评估揭示了显著的能力差距:最先进的模型在最大 Fail-to-Pass(F2P)率上仅达到16.06%。进一步分析表明,导航复杂的跨模块交互和利用代理探索是推动LLMs向自主软件质量保障发展至关重要的因素。一致地,SWEAgent在使用GPT-5-mini时,F2P为17.27%,F2P@5为29.7%,突显了代理探索在主动bug发现任务中的有效性与前景。
英文摘要:
Given that Large Language Models (LLMs) are increasingly applied to automate software development, comprehensive software assurance spans three distinct goals: regression prevention, reactive reproduction, and proactive discovery. Current evaluations systematically overlook the third goal. Specifically, they either treat existing code as ground truth (a compliance trap) for regression prevention, or depend on post-failure artifacts (e.g., issue reports) for bug reproduction-so they rarely surface defects before failures. To bridge this gap, we present TestExplora, a benchmark designed to evaluate LLMs as proactive testers within full-scale, realistic repository environments. TestExplora contains 2,389 tasks from 482 repositories and hides all defect-related signals. Models must proactively find bugs by comparing implementations against documentation-derived intent, using documentation as the oracle. Furthermore, to keep evaluation sustainable and reduce leakage, we propose continuous, time-aware data collection. Our evaluation reveals a significant capability gap: state-of-the-art models achieve a maximum Fail-to-Pass (F2P) rate of only 16.06%. Further analysis indicates that navigating complex cross-module interactions and leveraging agentic exploration are critical to advancing LLMs toward autonomous software quality assurance. Consistent with this, SWEAgent instantiated with GPT-5-mini achieves an F2P of 17.27% and an F2P@5 of 29.7%, highlighting the effectiveness and promise of agentic exploration in proactive bug discovery tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。