SWE-ABS: Adversarial Benchmark Strengthening Exposes Inflated Success Rates on Test-based Benchmark

Boxi Yu, Yang Cao, Yuzhong Zhang, Liting Lin, Junjielong Xu, Zhiqing Zhong, Qinghua Xu, Guancheng Wang, Jialun Cao, Shing-Chi Cheung, Pinjia He, Lionel Briand

The rapid advancement of Large Language Models (LLMs) has led to seemingly spectacular breakthroughs in automated software engineering. On the popular SWE-Bench Verified leaderboard, top AI agents are now reporting success rates approaching 80%. However, a new paper, SWE-ABS: Adversarial Benchmark Strengthening Exposes Inflated Success Rates on Test-based Benchmark, reveals a critical evaluation crisis: these high scores are significantly inflated by weak test suites.

When researchers re-evaluated the top-30 agents, they discovered that nearly 20% of "solved" tasks were actually semantically incorrect. The agents were passing simply because the underlying tests failed to expose their errors.

The Evaluation Crisis: Why Current Tests Fail

Because SWE-Bench tests are pulled directly from real-world Pull Requests (PRs), they were originally designed by human developers to verify a specific, known fix. They were never intended to act as a robust discriminator against the vast space of incorrect-but-plausible solutions generated by AI agents. This reliance on PR-derived tests leads to two major vulnerabilities:

  1. Coverage Gaps: Existing tests frequently fail to execute the specific lines of code affected by an agent's patch.
  2. Semantic Blind Spots: Even when tests execute the modified code, they often fail to verify deeper semantic requirements (e.g., checking if a function correctly handles an integer when the original test only provided strings).

As a result, LLMs are effectively learning to "teach to the test," optimizing for shallow fixes that pass the provided test suite rather than reasoning about the actual program semantics.

Introducing SWE-ABS

To address these vulnerabilities, the researchers developed SWE-ABS, a two-stage adversarial framework designed to "fortify" existing test suites.

Stage I: Coverage-Driven Augmentation

The first stage targets untested code. The system utilizes intraprocedural program slicing (powered by Tree-sitter) to identify every line of code that could potentially be affected by a patch. It then prompts an LLM to generate new tests specifically targeting these previously uncovered regions. To ensure these new tests evaluate general correctness rather than just mimicking the reference ("gold") solution, SWE-ABS employs a "test decoupling" step.

Stage II: Mutation-Driven Adversarial Strengthening

The second stage acts as an automated "red team" for the benchmark. The framework synthesizes mutant patches—solutions that are intentionally incorrect but still manage to pass the original test suite. If a mutant survives the Stage I augmented tests, the system prompts an LLM to generate targeted adversarial tests specifically designed to "kill" the mutant. This process systematically closes semantic blind spots.

Key Insights into Agent Behavior

The researchers evaluated SWE-ABS on SWE-Bench Verified (500 human-validated Python instances) and SWE-Bench Pro (a subset of 150 instances from a more challenging, multi-language benchmark). Their analysis uncovered several counterintuitive insights:

  • Task Difficulty Does Not Equal Test Strength: Agents fail more often on SWE-Bench Pro because the coding tasks are inherently harder, but the tests themselves are just as likely to have blind spots as those in the "easier" Verified version.
  • Logic Over Syntax: Modern LLMs have largely mastered surface-level correctness, such as syntax and simple typing. Of the remaining failures exposed by SWE-ABS, 75% are due to deeper issues: logic errors (46%) and incomplete fixes (29%), where the agent fixes the immediate bug but breaks a related branch or overlooks a corner case.

Leaderboard Reshuffling and Results

Applying SWE-ABS to the top-30 agents on the SWE-Bench leaderboard caused a massive reshuffling of the rankings.

  • Plummeting Success Rates: The top-performing agent (TRAE + Doubao-Seed-Code) saw its success rate drop dramatically from 78.80% to 62.20%, causing it to fall from 1st to 5th place.
  • High Rejection Rate: Across all agents, SWE-ABS rejected 19.78% (2,184 out of 11,041) of patches that had previously been accepted as "solved."
  • Unprecedented Effectiveness: The framework successfully strengthened 50.2% of the instances in SWE-Bench Verified. This represents a 25.1× improvement over previous state-of-the-art test augmentation methods like UTBoost.
  • Cost Efficiency: Despite relying on advanced LLMs for test generation, SWE-ABS proved highly economical, costing just $4.98 per strengthened instance—16× more cost-efficient than prior work ($80.00).

Limitations and Future Directions

While SWE-ABS represents a massive leap forward in benchmark evaluation, it is not without limitations. The framework currently exhibits a 10.6% false-negative rate, meaning the augmented tests can sometimes be too strict, rejecting valid alternative solutions because they deviate from the "gold" patch's specific behavior. Furthermore, the reliance on intraprocedural slicing means it may miss bugs that propagate across different modules, and its dependency on a known-correct "gold patch" limits its utility in real-time bug triage.

Moving forward, the authors plan to extend the tool to additional languages like Java, C++, and Rust. Ultimately, they advocate for integrating tools like SWE-ABS into "continuous benchmark co-evolution" pipelines, ensuring that as AI agents grow more sophisticated, our methods for evaluating them evolve just as fast.

Summary updated

BibTeX
@inproceedings{yu2026swe,
  author = {Boxi Yu and Yang Cao and Yuzhong Zhang and Liting Lin and Junjielong Xu and Zhiqing Zhong and Qinghua Xu and Guancheng Wang and Jialun Cao and Shing-Chi Cheung and Pinjia He and Lionel BRIAND},
  title = {{SWE-ABS: Adversarial Benchmark Strengthening Exposes Inflated Success Rates on Test-based Benchmark}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=eWzojJ9SGF},
}
Figure