potentialpaper

A Lightweight Heuristic for Detecting Unfair Tests in Software Engineering Benchmarks

Jay Torry, Roly Perera, Dominic Orchard

ICLR 2026 submission

Edit this page

Or clone it with git

The page gets its repository with its first edit, so start in the web editor.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Software engineering benchmarks are useful tools for evaluating the programming abilities of large language models (LLMs). In addition to ranking models against each other, they can help us to situate the current state of the art by leveraging real-world software engineering problems. For some benchmarks, this latter function is compromised by the presence of "unfair" tests, meaning tests that contain requirements not specified in the corresponding issue descriptions. Unfortunately, the manual identification of unfair tests is an expensive and time-consuming process; this is especially problematic for automated curation pipelines and continuously-updated benchmarks. There are promising LLM-based solutions, but these come with the usual drawbacks: complex scaffolding, prompt sensitivity, lack of reproducibility and environmental cost; in addition, low recall means the majority of unfair tests are unlikely to be identified. As an alternative to both manual and LLM-based approaches, we propose a lightweight, fully-deterministic, heuristic for the detection of unfair tests in software engineering benchmarks. We evaluate our heuristic against the human annotations used to curate SWE-bench Verified and we compare the results to the corresponding evaluations of two LLM-based alternatives (aligning our methods to facilitate a direct comparison). We find that the accuracy of our heuristic exceeds the accuracy of all non-fine-tuned configurations of both alternatives, but does not exceed the accuracy of a fine-tuned configuration. Given the additional effort, complexity and environmental impact associated with fine-tuning, we consider this to be a positive result. We further propose a version of our heuristic that is less precise, but more sensitive, exceeding the recall of both a fine-tuned, and non-fine-tuned, LLM-based alternative.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…