AI Coding Tests Are Unfairly Hard, New Study Finds
Top AI coders fail 69% of the time on tests that demand unstated details.
If you've ever hired someone based on a test, you know a bad test can make a good candidate look bad. That's what's happening with tests used to measure AI coding skills. These tests, called SWE-bench, give AI a coding task and then check the solution with a test. But the test sometimes demands details the task never asked for. So even if the AI writes a correct fix, it fails because it didn't match the exact expected code. This is like asking someone to bake a cake and then failing them because they didn't use a specific brand of flour that wasn't mentioned.
Researchers built a way to spot these unfair tests using two AI judges. They found that about a quarter of the tasks in one popular test set and over a third in another are overspecified. That means many AI failures are not the AI's fault. The top AI models only solved 31% of the flagged tasks, compared to 88% of the others. So the tests are making AI look less capable than it is.
When the researchers relaxed the unfair requirements, 61% of the previously failed solutions passed. This could boost AI scores by up to 12 percentage points. The study suggests that current AI leaderboards may be misleading. Companies and researchers use these benchmarks to compare AI models and decide which to use. If the tests are unfair, they might be picking the wrong AI. This matters because AI coding tools are increasingly used in real-world software development. Better tests mean better AI tools for everyone.
- Many AI coding tests are unfairly strict, failing correct solutions for not matching unstated details.
- About 23-35% of tasks in popular benchmarks are overspecified, making AI look worse than it is.
- Relaxing these tests could boost AI scores by up to 12 percentage points, changing leaderboards.
Why It Matters
Unfair tests mislead companies choosing AI tools, potentially wasting money on inferior AI or missing better options.