Papers

研究定义 Spec-Test Coverage Gap:SWE-bench 基准中的过度指定测试检测方法

Spec-Test Coverage Gap: Detecting Overspecified Tests in SWE-Bench-Style Benchmarks

Why we picked it

写代码评测的人必须看这篇。Claude Opus 5.5 加 GPT-6.1 双评审打分,就把 SWE-bench Verified 里 23% 的坑找出来了,排名前列的智能体在这些任务上通过率只有 31%。它还证明放宽测试后 61% 的失败补丁其实能过,榜单数字可能差 12 个百分点。做智能体评测或选型的团队都能用这套方法复核自家基准。

一篇 arXiv 论文提出 Spec-Test Coverage Gap(STCG),用 1-4 分量表量化 SWE-bench 类基准中的过度指定测试问题。判定机制由 Claude Opus 5.5 和 GPT-6.1 Sol 两个 LLM 评审员分别根据任务规格与测试补丁打分,两者均打 3 分及以上才标记为过度指定。在 206 个经人工审计的任务上验证,评审员正确识别 89% 的过度指定任务,误报率仅 4%。

Body

应用到完整基准后,500 个 SWE-bench Verified 任务中有 23%、731 个公开 SWE-bench Pro 任务中有 35% 被标记为过度指定。这些被标记任务对智能体明显更难:Verified 榜单前 30 的提交平均只解决 31% 的被标记任务,而未标记任务解决率达 88%。

研究还让 Claude Opus 5.5 放宽被标记任务的过度要求,重新批改 2,186 个此前失败的补丁,其中 61% 在放宽后通过。若将这些补丁计入,每个前 30 提交可增加 33 到 60 个解决任务,解决率最多提升 12 个百分点。这意味着现有编码智能体排行榜可能低估了真实能力,基准测试本身存在系统性偏差。

Original · arXiv cs.AI

Spec-Test Coverage Gap: Detecting Overspecified Tests in SWE-Bench-Style Benchmarks

SWE-bench-style benchmarks, such as SWE-bench Verified (Verified) and SWE-bench Pro (Pro), evaluate coding agents with tests taken from the change that originally fixed each issue. However, these tests can enforce details the task never states, causing correct alternative fixes to fail. Such overspecified tests have so far been found mainly through expensive expert review. To address this, we define the Spec-Test Coverage Gap (STCG), a 1-4 scale measuring overspecification, and score it with two LLM judges, Claude Opus 5.5 and GPT-6.1 Sol, which are given the specification and the test patch. A task is flagged as overspecified when both judges score it 3 or higher. Our study has three parts. First, we validate the judges on 206 tasks that earlier human audits and agent results label as overspecified or fine. Second, we apply STCG to all 500 Verified and 731 public Pro tasks and compare the flags with the results of the top 30 Verified submissions. Third, we verify the flags by asking Claude Opus 5.5 to loosen the overspecified requirements of flagged tasks, and regrade 2,186 failed patches from those submissions. Our main findings are: (1) Overspecified tests are detectable: on the validation tasks, the judges correctly flag 89% of the tasks that human audits identify as overspecified and wrongly flag only 4% of the tasks known to be fine. (2) Overspecified tests are common: applied to whole benchmarks, the judges flag 23% of Verified and 35% of Pro tasks. (3) Flagged tasks are much harder for agents: the top 30 Verified submissions resolve only 31% of the flagged tasks on average, against 88% of the other tasks. (4) Overspecified tests change the leaderboard: relaxing the tests lets 61% of the 2,186 failed patches on flagged tasks pass. Counting these patches as resolved would add 33 to 60 tasks to each top-30 submission, raising resolve rates by up to 12 percentage points.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include SWE-bench, Claude Opus 5.5, GPT-6.1 Sol, coding assistants.

Source attribution: curated from arXiv cs.AI (@Avi Aggarwal, Yiran Hu).