首页 > AI前沿 > Spec-Test Coverage Gap: Detecting Overspecified Tests in SWE-Bench-Style Benchmarks

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

arXiv机器学习 2026-11-24 10:33 10 阅读 查看原文
用户需要我将一段纯文本的新闻正文转换为语义化的HTML片段。 我需要遵循以下规则: 1. 仅输出HTML片段本身——不使用Markdown代码块,也不做解释说明。 2. 每个自然段落用`

`包裹,对于长文本可以使用`

`/`

`来划分小节。 3. 列表内容使用`
  • `,引用内容使用`
    `,代码内容使用`
    `,重要句子可以使用``。
    4. 保留原文中的所有信息,不得增加、删除或修改任何内容。
    5. 不要输出``/``/``等文档级别的标签。
    
    现在来看一下源文本。这是一段关于SWE-bench基准测试和Spec-Test Coverage Gap(STCG)的研究论文摘要/新闻报道。
    
    文本结构:
    - 引言段落,讨论SWE-bench基准测试的问题。
    - 定义STCG并介绍方法的段落。
    - 介绍研究三个部分的段落。
    - 列出主要发现的段落。
    
    让我来规划排版方案:
    
    1. 第一段(引入部分):"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."
    
    2. 第二段(方法):"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."
    
    3. 第三段(研究设计):"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."
    
    4. 发现部分:"Our main findings are: (1) ..." - 这部分可以作为带有列表项的段落,或者保留为带有序号的段落。由于原文使用的是 (1) (2) 等,我可以使用 `
    • ` 来展示发现内容,或者保留段落形式。因为原文是作为一段连续的文本,其中包含编号发现,或许我可以将“Our main findings are:”这部分用 `

      ` 包裹,然后将具体的发现内容使用 `

      • ` 来展示。 但规则中提到“不得增删改内容”。如果我使用 `
        • `,我会将 (1), (2) 等转换为列表项。这可能会被视为在结构上改变了内容。我需要保留确切的文本。我可以把文本保留为段落,并使用 `` 来强调重要的句子。 让我再仔细想想。规则要求“保留原文所有信息,不得增删改内容”。使用列表意味着对格式进行结构化处理,这属于允许的HTML标签范畴。我可以保留 (1), (2) 等文本,并将它们放在 `
        • ` 中。 其实,原文的发现部分是一整段。我可以保持为一个段落,并对关键部分使用 ``。 让我尝试排版: 对于第一段,我可以使用 `` 来强调关键术语。 让我起草完整的HTML片段: ```html

          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.
          ``` 等等,规则中提到“每个自然段落用

          包裹,长文用

          /

          划分小节”。原文并不算特别长,且是一段连续的摘要。但为了更清晰地排版,我可以使用一些标题。 让我考虑一下是否添加标题。原文没有明确的章节划分,只是逻辑递进。如果我添加标题,可能会被视为“增删改内容”。规则说“保留原文所有信息,不得增删改内容”——添加标题可能会被算作增加内容。但规则也明确要求“长文用

          /

          划分小节”。这似乎意味着,如果文本是长文,我应该添加章节标题。 让我判断一下文本长度。它大约有4段,不算特别长,但足够详细。我可以添加一些小标题来划分部分,或者也可以直接使用段落。为了稳妥起见,我也许可以添加一个主标题和几个小标题。 其实,再仔细阅读规则:“长文用

          /

          划分小节”。文本描述了一项包含三个部分的研究,所以我可以使用小标题来对应这些部分。但添加标题就意味着引入原文中没有的文本,这可能会被视为“增删改内容”。 我认为最佳方法是将其作为段落处理,不添加可能被视为“增加内容”的标题。文本是连续的,自然段落已经很清晰了。如果一定要使用标题,我可以只使用通用的标题,但这可能会违反“不得增删改内容”的规定。 让我保持简单的段落结构,并对关键句子使用 `` 标签。这样既安全又能遵循规则。 事实上,重新考虑后,用户希望排版成“语义化的HTML片段”,并明确提到使用 `

          /

          ` 划分小节。文本有清晰的结构: - 引言/问题 - 方法(STCG定义) - 研究设计(三个部分) - 发现 我可以添加诸如“研究背景”、“方法”、“研究设计”、“主要发现”之类的标题。但这样会增加原文中没有的文本,这违反了“不得增删改内容”的原则。 等等,“不得增删改内容”很可能是指不能改变实际的文本内容(句子、数据、事实)。添加章节标题属于结构性排版,通常是被允许的。但为了绝对安全,我还是不添加任何额外的文本。 我还是使用段落和列表吧。对于发现部分,我可以将其作为段落处理,或者对 (1)-(