TRANSMISSION // 2611.31839v1

When Coding Benchmarks Reject Valid Fixes

Source published

Two language-model judges flag potentially overspecified tests in SWE-bench Verified and Pro. Rechecking failed patches suggests the tests can affect reported scores, but estimated score gains are upper bounds—not corrected results.

AI-generated conceptual illustration for When Coding Benchmarks Reject Valid Fixes
AI-generated conceptual illustration; not documentary evidence.

A coding agent can address a task’s stated problem and still fail tests that demand an unstated detail. A preprint proposes a way to detect this mismatch and tests whether relaxing flagged requirements changes how existing agent patches score.

The gap between a task and its tests

Coding-agent benchmarks often pair a real software issue with tests added alongside the change that fixed it. Those tests may reflect choices made by the original developer rather than requirements in the issue. As a hypothetical example, a task might ask that a program stop crashing without specifying what it should return. A test demanding one exact value could reject another reasonable fix.

Avi Aggarwal and Yiran Hu’s preprint asks whether these tests can be identified from the task description and test code, and whether they affect benchmark scores. The authors call the mismatch the Spec-Test Coverage Gap, or STCG. They study SWE-bench Verified, with 500 tasks, and the 731 public tasks in SWE-bench Pro.

How the audit works

Two language models—Claude Opus 5.5 and GPT-6.1 Sol—score tasks from 1 to 4. Lower scores mean the tests stay within what the specification states or reasonably implies; higher scores mean they appear to rule out a plausible correct fix. A task is flagged when both judges score it 3 or 4.

The judges receive the specification and the evaluation-test patch: the tests that must pass after a fix, rather than separate regression tests. For Pro, the specification includes the requirements and interface fields provided to agents, as well as the issue text. The judges do not see the repository or the reference fix.

The researchers first evaluated the judges on a held-out set of 206 tasks, assembled from existing human annotations and public agent results. Overspecified examples came from prior audits or repairs for overly narrow tests. “Fine” examples had been rated fine by all three annotators and were resolved by at least 90% of the top 30 submissions, whose successful patches differed. This is validation against selected existing evidence, not a new independent human review.

The team then applied the judges to both benchmarks and compared Verified flags with public agent results. Finally, they asked Claude Opus 5.5 to relax requirements identified in flagged tests and reran existing failed patches. A candidate patch had to fail at least one evaluation test and no regression test. A relaxation counted as valid only if the tests still failed on the unfixed code, passed on the reference fix, and kept already-resolving patches passing. A patch counted as a flip if it then passed all evaluation and regression tests.

What they found

On the held-out validation tasks, the panel flagged 89% of examples labeled overspecified and 4% labeled fine. These rates describe performance on selected examples; the study does not establish accuracy on ambiguous cases.

Across the benchmarks, the panel flagged 23% of Verified tasks and 35% of public Pro tasks. These are model flags, not independent confirmation that each task is overspecified. On Verified, the top 30 public submissions resolved flagged tasks at an average rate of 31%, compared with 88% for unflagged tasks. That association does not show that overspecification caused agents to fail; other features of difficult tasks could contribute.

Among 2,186 candidate patches on flagged Verified tasks, 61% passed after relaxation when the relaxer received the judges’ findings. This percentage includes all candidates, including those on tasks for which no valid relaxation was produced. In a forced-control condition, the relaxer produced valid changes for 76 of 79 tasks neither judge flagged, and 29% of their 417 candidate patches passed. In another condition, with no judge findings and permission to decline changes, it declined all 79 control tasks; 49% of candidate patches on flagged tasks passed after valid relaxations.

If every flipped patch were counted as a resolution, each top-30 submission would gain 33 to 60 tasks, and 28 of the 30 would change rank. The authors describe these gains as an upper bound, not corrected benchmark scores: passing a loosened test does not prove a patch solves the task correctly.

What remains uncertain

The validation set contains comparatively clear examples. Its “fine” tasks were human-reviewed and commonly solved with differing patches, while positive examples came from prior audits or repairs. The study does not establish how well the judges handle borderline cases. They also cannot see repository context, which might show that a test requirement is conventional—or practically unavoidable.

The Pro results have an additional limitation: there was no comparable set of known-fine Pro tasks, so the panel’s false-flag rate there is unknown. The test-relaxation experiment covered Verified only. The relaxer is not independent of the judges: in the main analysis it receives their findings, and it is the same model as one judge. Only a sample of flipped patches was inspected, and relaxed tests may admit incorrect fixes.

This is an arXiv preprint, not evidence of peer-reviewed consensus. The authors report that their method flags tasks and that relaxing tests changes whether some existing patches pass; they do not establish that every flagged failure is a valid solution or provide corrected leaderboard scores. The authors’ code and data are linked from the preprint.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • When coding-agent tests reward the wrong fixes

    Supporting evidence: Both studies report that benchmark tests can reject correct fixes. The origin paper’s two-judge panel flags overspecification in Verified and Pro; the SWE-Gym study reports execution-confirmed false negatives in training tasks, including a higher rate among tasks a 9B model never solves. This is compatible evidence across different benchmarks and audit methods, not a directly comparable prevalence estimate.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.31839v1 — Original paper

      Excerpt reference: static/papers/2611.31839v1.md:391-471
      Basis: Paper text
      Source SHA-256: f90a1c0e797a9d7c2b99c3d2747d9a4eb911d841ae15fa5f5efc5ee6e5babf49

    • 2611.30207v1 — Original paper

      Excerpt reference: static/papers/2611.30207v1.md:94-200
      Basis: Paper text
      Source SHA-256: b5323d72773a4f4c025a202c6d24f6dd78cc301e6a49cb240cc92883e4905e64

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.