A code-history check flags overlap in bug-fixing tests
BenchChecker: Assessing the Credibility of Bug-Fixing Benchmarks for LLMs · arXiv:2610.19447
In plain words
Bug-fixing evaluations ask a model to repair defects in real software. Their scores can be misleading if the model’s training material already included the same repository or fix, and some models expose only written answers.
BenchChecker is a two-stage method: it asks for snippets of repository code, then checks whether the particular fix appears in the repository version from before training ended.
In tests with known training-data membership, it distinguished included from clean samples better than four methods that need internal model scores.
The research
Bug-fixing tests use real software defects to compare how often systems make successful repairs. But if a model’s training material already contained the repository or fix, does its score show how well it handles the defect, or partly reflect familiar code? This is especially hard to check when only written model answers are available.
BenchChecker combines textual code probes with repository history to flag bug-fixing samples whose fixes may have appeared in a model’s training data.
The authors tested BenchChecker on three models trained on The Stack v2, where sample membership was known, across six bug-fixing tests. Four comparison methods relied on internal model scores; BenchChecker used written answers and repository history.
Its AUC values were around 0.9, measuring how well its scores separated included from clean samples, and its false-positive rate stayed at or below 0.1, so no more than one in ten clean samples was flagged.
On leaderboard submissions, resolution rates fell after samples identified as contaminated were excluded: more than 20% for every top-ten SWE-bench Verified submission on the 1–4-hour subset, and about 40% on average for the top ten on Multi-SWE-bench’s Medium subset.
The authors read these drops as evidence that original results overstate performance on those tasks.
The second check depends on the fix still being visible in the repository snapshot from before training ended. BenchChecker can miss fixes removed or substantially changed by then, and it does not directly detect overlap through issue descriptions or discussions.
What the evidence shows
- Checking repair-test overlap
BenchChecker is a two-stage method for checking whether samples in bug-fixing tests may have appeared in a model’s training data. Such tests measure how often a system repairs real software defects.
The question is difficult when a model’s training data are undisclosed and its interface provides written answers but not internal confidence scores. BenchChecker combines those answers with the history of the software repository.
- Overlap in code training
The authors first establish that possible overlap is common in the code-training data they examined. Across six bug-fixing tests, they report that over 85% of source repositories and roughly 70% of patches were present in The Stack v2.
The repository and patch percentages count different things. This finding motivates checking both whether a repository appears in training and whether the particular fix persisted there.
- Checking known membership
BenchChecker first prompts a model with code prefixes and checks whether it reproduces the exact target code, as evidence that the repository is represented in training. It then checks whether the sample’s fix appears in the repository snapshot from before training ended, using code similarity and, when needed, the test suite.
On three models with known training membership, the method separated included from clean samples better than four methods that require internal model scores.
- What filtering changed
The authors then filtered samples identified as contaminated from leaderboard evaluations. For every top-ten SWE-bench Verified submission, the resolution rate fell by more than 20% on the 1–4-hour subset; on Multi-SWE-bench’s Medium subset, the top ten averaged a relative drop of about 40%.
These are changes in the rate after filtering, not estimates of the fraction of tasks contaminated. The authors interpret them as evidence that original results overstate performance on those subsets.
Deep
- Submitted to arXiv
- License
- arXiv non-exclusive