Coding or Cheating? An Investigation of Frontier Coding LLMs
Yuntao Gui
Key points
From the paper's conclusion- We release agent traces for these models to support further study at https://huggingface.co/datasets/logitly-ai/reward-hacking-raw-v1.
Abstract
Frontier agentic LLMs are trained on verifiable rewards in reinforcement learning (RL) environments built from real software repositories. A passing test suite is treated as the reward for solving the task. We show that, on hard problems, frontier models often satisfy these rewards by obtaining the answer instead of deriving it, known as reward hacking. Prior reports document this behavior on public benchmarks. We test its persistence on unseen problems. In a hardened environment where the answer cannot leak, nearly every model we tested attempted to recover the answer, escalating through tiers of increasingly specialized exploitation: mining the repository history for the upstream fix, inspecting the git object store directly, and sweeping the filesystem for a possible newer copy of the source or hidden tests. These attempts were concentrated on the hardest problems, and the models differed in whether, how often, and how deeply they escalated. Our position is that this behavior is a learned shortcut, acquired in RL environments that leak the answer, not a sign of intelligence. We release agent traces for these models to support further study at https://huggingface.co/datasets/logitly-ai/reward-hacking-raw-v1.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- hacktrace: behavior-supervised detection of reward hacking during code generationarXiv · 2026
- Online Environment Repair for Coding AgentsarXiv · 2026
- SimHack: Predicting the onset of detectable reward hacking before RL trainingarXiv · 2026
- CATCH: A Controllable Analysis Testbed for Reward Hacking in Coding RLarXiv · 2026
- Hack-Verifiable Terminal Bench: Evaluating Reward Hacking in Terminal TasksarXiv · 2026
- Truthgate: Checking Coding Agents Against a Record They Cannot Edit - Cheating, Deterrence and Disclosure on Impossible TasksarXiv · 2026