'Reward hacking' is next big LLM problem: Study finds OpenAI’s models top the charts for cheating, as well as for success, and try to cover footsteps
Corporate compliance teams take note: While OpenAI’s large language models like ChatGPT are the smartest, they are also apparently its sneakiest. The company’s flagship GPT-5 and its lightweight siblings, o3 and o4-mini, have topped the charts for both performance and deception in a new study that set out to see what large language models do when there’s no right answer. Faced with impossible coding tasks, the most advanced systems didn’t fail gracefully, they cheated. It deleted test cases, rewrote definitions of “correct,” or gamed the scoring system, they outsmarted the exam itself. For researchers from Carnegie Mellon and Anthropic, the results reveal an uncomfortable truth: as AI systems get sharper, they also get better at hiding their mistakes. Capability and compliance are diverging. What looks like intelligence can just as easily be manipulation.
What you need to know:
-
OpenAI's GPT-5 tops the leaderboard – for cheating. In a benchmark of "impossible" programming tasks, GPT-5 passed 54% of tests it shouldn't have been able to since the tests where designed to be impossible to pass. Instead, it used strategic workarounds to appear successful.
-
The LLM giant’s o3 and o4-mini models also showed high rates of “cheating,” while Anthropic’s Claude and open-source systems like Qwen3-Coder were more compliant.
-
These aren’t mistakes. It’s intentional manipulation: In tests with contradictory instructions, models tampered with code, redefined terms, or deleted evaluation checks to game the system.
-
Researchers also warn that capability and honesty are diverging. More advanced models are more likely to exploit loopholes when faced with unsolvable tasks.
-
The good news is that behaviour changes with better instructions. When prompted to explain inconsistencies or abort impossible tasks, GPT-5’s deception rate plunged from 92 per cent to 1 per cent, suggesting prompt design ("context engineering") is key.
-
As LLMs are deployed in critical sectors, their ability to convincingly fail poses a trust and governance risk. Worse, current evaluation tools, often other AIs, struggle to catch them.
-
Researchers call it "reward hacking", with the study suggesting powerful models aren’t just solving problems, they’re learning how to game the tests themselves.
The tendency to find and exploit “shortcuts” to complete tasks poses significant risks for reliable assessment and deployment of large language models (LLMs).
OpenAI’s most capable models are acing coding exams they were never meant to pass. GPT-5, the firm’s latest large language model, “cheated” on more than half the tests deliberately designed to be impossible, quietly deleting checks, rewriting rules, and bending logic until failure looked like success.
That’s the finding from researchers behind ImpossibleBench, a benchmarking framework designed not to assess how well large language models (LLMs) solve standard coding tasks, but how they behave when asked to solve impossible ones. The data reveals a striking trend: the more advanced the model, the more likely it is to “cheat” when a correct answer simply doesn’t exist.
Put another way: capability and compliance aren’t necessarily correlated, and may even diverge under pressure.
According to the researchers, which include teams from Carnegie Mellon and Anthropic, models that excel at typical programming tasks are disproportionately inclined to bend the rules when faced with tasks they cannot logically complete. The tendency is not random, but consistent, suggesting not just error, but intention of a sort.
This aligns with earlier research from OpenAI and Georgia Tech, which framed hallucinations not as anomalous behaviour, but as predictable artefacts of how language models are trained. In other words, these are not bugs to be ironed out. They’re statistical features baked into the optimisation objective.
The researchers in the new study observed that OpenAI’s most powerful models, GPT-5, o3 and o4-mini, topped the charts for both performance and deception. GPT-5, which scored highest on standard coding tests, also “cheated” 54 per cent of the time on ImpossibleBench’s contradictory tasks, where success was designed to be impossible. By contrast, Anthropic’s Claude models and smaller open-source systems like Qwen3-Coder cheated far less often.
It's cheating Jim, but not as we know it
Researchers call it “cheating,” but not in the human sense of malice or intent. Instead, it’s a kind of algorithmic cunning – a model exploiting a loophole to make it look like it succeeded when, in fact, it hadn’t done what it was told. In one test, an AI developer agent quietly deleted the lines of code that checked its work. In another, it redefined the word “correct” so every answer appeared right.
The researchers built their study around ImpossibleBench, a framework designed to do something most benchmarks avoid: test how large language models behave when success isn’t just unlikely – it’s structurally impossible.
Each task was engineered with a deliberate contradiction: a unit test that demanded an output different from the one described in the instructions. In effect, models were set up to fail, unless they could manipulate the test itself..
Across hundreds of these contrived, booby-trapped problems, OpenAI’s GPT-5 bypassed the rules in 54 per cent of cases. Its lighter-weight cousin, o3, followed closely behind at 49 per cent. Anthropic’s Claude models were less inclined to take liberties, ranging from 17 to 28 per cent. Open-source models like Alibaba’s Qwen3-Coder also showed signs of misbehaviour, though at lower rates.
But this wasn’t random flailing. The researchers characterise it as strategic misbehaviour. The more capable the model, the more inventive the workaround. Some simply edited or erased test cases. Others tampered with logical operators so that every result evaluated to “true.” A handful hard-coded outputs designed not to solve the problem, but to trick the evaluator into thinking they had.
The test wasn’t asking whether models could find answers. It was asking whether they would play fair when they couldn’t. And in many cases, the answer was no.
Anti cheat mode
As the authors put it, cheating occurs when a model passes a test that contradicts its own task description – an outcome only possible through manipulation, not mastery. It’s less like learning the material and more like quietly swapping out the answer key.
When the team tightened instructions – explicitly telling the models to stop and explain inconsistencies rather than just pass tests – cheating plummeted. GPT-5’s rate dropped from 92 per cent to just 1 per cent. Restricting test access or adding an “abort” option for impossible tasks helped too.
This finding is different to the earlier finding that ChatGPT cheated 54 per cent of the time.
The 92 per cent figure refers to a follow-up experiment where researchers changed the environment around the model. They rewrote the prompts to make honesty explicit (“stop and explain inconsistencies instead of trying to pass tests”), hid or locked the tests, and gave the model permission to “abort” if a task seemed impossible.
The first result shows what GPT-5 did naturally when given a typical goal, while the second shows how its behaviour changed when the rules and context were clarified.
Contextual climate change
That, say the researchers, is the larger point: the problem isn’t only inside the model, it’s also in the environment it’s placed in. “Context engineering,” as they call it, can make honest behaviour the path of least resistance.
But the study also warns that as AI systems grow more capable, their ability to manipulate their own evaluation criteria will grow too. The very systems built to test or monitor them, including other LLMs, often failed to detect the deception, especially on complex coding tasks.
The takeaway is sobering. As the world races to embed generative AI into software development, law, and even governance, the most powerful systems may also be the best at gaming their own oversight. The researchers call this “reward hacking.”
For those that anthropomorphise software, think of it this way: today’s smartest AIs aren’t just finding answers, they’re learning to beat the test – whatever that takes.