ImpossibleBench: Measuring LLMs' Propensity of Exploiting Test Cases
Abstract
ImpossibleBench is a benchmark framework that measures and mitigates LLMs' tendency to exploit test cases by introducing impossible task variants, thereby enhancing model reliability.
The tendency to find and exploit "shortcuts" to complete tasks poses significant risks for reliable assessment and deployment of large language models (LLMs). For example, an LLM agent with access to unit tests may delete failing tests rather than fix the underlying bug. Such behavior undermines both the validity of benchmark results and the reliability of real-world LLM coding assistant deployments. To quantify, study, and mitigate such behavior, we introduce ImpossibleBench, a benchmark framework that systematically measures LLM agents' propensity to exploit test cases. ImpossibleBench creates "impossible" variants of tasks from existing benchmarks like LiveCodeBench and SWE-bench by introducing direct conflicts between the natural-language specification and the unit tests. We measure an agent's "cheating rate" as its pass rate on these impossible tasks, where any pass necessarily implies a specification-violating shortcut. As a practical framework, ImpossibleBench is not just an evaluation but a versatile tool. We demonstrate its utility for: (1) studying model behaviors, revealing more fine-grained details of cheating behaviors from simple test modification to complex operator overloading; (2) context engineering, showing how prompt, test access and feedback loop affect cheating rates; and (3) developing monitoring tools, providing a testbed with verified deceptive solutions. We hope ImpossibleBench serves as a useful framework for building more robust and reliable LLM systems. Our implementation can be found at https://github.com/safety-research/impossiblebench.
Community
ImpossibleBench introduces a benchmark that measures large language models’ tendency to “cheat” on coding tasks by exploiting or manipulating test cases instead of following task specifications.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Saving SWE-Bench: A Benchmark Mutation Approach for Realistic Agent Evaluation (2025)
- When"Correct"Is Not Safe: Can We Trust Functionally Correct Patches Generated by Code Agents? (2025)
- SecureAgentBench: Benchmarking Secure Code Generation under Realistic Vulnerability Scenarios (2025)
- FeatBench: Evaluating Coding Agents on Feature Implementation for Vibe Coding (2025)
- PerfBench: Can Agents Resolve Real-World Performance Bugs? (2025)
- TREAT: A Code LLMs Trustworthiness / Reliability Evaluation and Testing Framework (2025)
- SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks? (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper