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

通过率能讲述全部故事吗?评估基于LLM的问题解决的设计约束合规性

Does Pass Rate Tell the Whole Story? Evaluating Design Constraint Compliance in LLM-based Issue Resolution

Fudan University(复旦大学);Nanyang Technological University(南洋理工大学)

Kai Yu, Zhenhao Zhou, Junhao Zeng, Ying Wang, Xueying Du, Zhiqiang Yuan, Junwei Liu, Ziyu Zhou, Yujia Wang, Chong Wang, Xin Peng

AI总结:

本文提出设计感知问题解决方法,引入bench基准,通过挖掘和验证真实项目中的设计约束,评估LLM在问题解决中设计约束的合规性,发现测试通过率高并不代表设计合规性好。

摘要:

仓库级问题解决基准已成为评估基于LLM的代理的标准测试平台,但成功仍主要通过测试通过率衡量。然而,可接受的补丁必须符合项目特定的设计约束,如架构惯例、错误处理政策和可维护性要求,这些很少在测试中编码,通常仅在代码审查讨论中隐含提及。本文引入设计感知问题解决,并提出bench基准,通过挖掘和验证设计约束,将隐含的设计约束显式化和可测量化。bench通过挖掘和验证真实世界中的设计约束,将其与问题实例链接,并使用基于LLM的验证器自动检查补丁合规性,得到6个仓库中的495个问题和1,787个验证过的约束,与SWE-bench-Verified和SWE-bench-Pro对齐。实验表明,基于测试的正确性严重高估了补丁质量:少于一半的问题解决完全符合设计要求,设计违规普遍存在,功能正确性与设计满意度无显著统计关联。尽管提供问题特定的设计指导可减少违规,但仍存在大量不合规情况,凸显了当前代理能力的根本差距,推动设计感知评估超越功能正确性。

英文摘要:

Repository-level issue resolution benchmarks have become a standard testbed for evaluating LLM-based agents, yet success is still predominantly measured by test pass rates. In practice, however, acceptable patches must also comply with project-specific design constraints, such as architectural conventions, error-handling policies, and maintainability requirements, which are rarely encoded in tests and are often documented only implicitly in code review discussions. This paper introduces \textit{design-aware issue resolution} and presents \bench{}, a benchmark that makes such implicit design constraints explicit and measurable. \bench{} is constructed by mining and validating design constraints from real-world pull requests, linking them to issue instances, and automatically checking patch compliance using an LLM-based verifier, yielding 495 issues and 1,787 validated constraints across six repositories, aligned with SWE-bench-Verified and SWE-bench-Pro. Experiments with state-of-the-art agents show that test-based correctness substantially overestimates patch quality: fewer than half of resolved issues are fully design-satisfying, design violations are widespread, and functional correctness exhibits negligible statistical association with design satisfaction. While providing issue-specific design guidance reduces violations, substantial non-compliance remains, highlighting a fundamental gap in current agent capabilities and motivating design-aware evaluation beyond functional correctness.

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

↑