arXiv(opens in a new tab)cs.LGAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.30724

BAITBENCH: Measuring Agent Reward Hacking with Optional Shortcuts Planted in ML Tasks

Pradyumna Shyama Prasad, Meiri Anto, Leon Eshuijs, Julian Moncarz, Kaustubh Kislay, Juan J. Vazquez

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

LLM agents are increasingly used to run autonomous ML experiments, iterating on target metrics with little human oversight. Prior work has documented reward hacking in these environments, bringing into question the validity of produced research and the broader safety case for AI R&D. Existing benchmarks do not measure exploits that live in the data or the modeling task itself. We introduce BAITBENCH, a suite of three synthetic tabular ML tasks that each contain a shortcut that allows agents to inflate the public test score but fail on a hidden test set. Since the shortcut is optional, BAITBENCH measures how often models exploit the shortcut to achieve inflated scores. Across seven frontier agents scored by our two-stage judge pipeline, 57.1% of runs exhibit reward hacking, with five of seven above 50%. Agents cheat even under a second condition where they are prompted not to—the mean cheating rate remains above 50%. We release BAITBENCH, along with the judge implementation, and an annotated dataset of transcripts containing reward hacks as a testbed for evaluating reward-hacking mitigations head-to-head. 1^{1}

1 Introduction

Frontier LLM systems are expected to play a growing role in AI research and development, including hill-climbing on ML benchmarks (Wijk et al., 2025; Owen, 2024). LLMs equipped with agent harnesses, such as Claude Code and OpenAI's Codex, allow users to set a task objective with target metrics, then have an agent optimize toward it. Additionally, open source efforts such as autoresearch (Karpathy, 2026) have explored fully autonomous research loops in which agents hill-climb on validation signals without human intervention.

A drawback of open-ended tasks with narrow goals, such as optimizing for a single metric, is that they present the agent with ideal conditions for "reward hacking", that is, for the agent to cheat to inflate its score in a way that does not generalize. Properties that make automated research especially prone to reward hacking include a large action space, a fuzzy objective, and a broad range of granted permissions to the agents within their coding environment. The safety case for future recursive AI-driven R&D depends on the work being done faithfully, yet current models consistently struggle with reward hacking, especially when the task is AI research itself (Rank et al., 2026; Von Arx et al., 2025).

Prior work has documented reward hacking in agentic R&D settings, including test-case exploitation, post-training optimization, and evaluator manipulation (see Section 2). However, existing benchmarks measure exploits targeting the evaluation machinery, such as impossible test cases that force fabrication (Zhong et al., 2026) or harness components that agents can read or modify (Atinafu and Cohen, 2026). They do not measure exploits that live in the data the agent is asked to model, where statistical shortcuts are available for the agent to exploit or ignore.

We introduce BAITBENCH, a controlled environment of three synthetic tabular ML tasks. Each task contains a planted shortcut which, if exploited, raises the public test score but collapses performance on the held-out split. Agents are free to ignore the exploit and solve the task legitimately, and the benchmark measures how often they cheat. Our contributions:

• BAITBENCH, a suite of three tabular machine learning tasks (two regression tasks and one classification task), with distinct shortcut types: entity overlap, near-duplicate leakage, and no-signal classification (Section 3). The resulting public-to-held-out performance gap serves as a ground-truth signal for whether a reported gain is genuine or the result of reward hacking.

• A two-judge detection protocol, to first detect and then classify exploits. We observe high inter-judge agreement (93.6%, κ=0.872\kappa = 0.872), validated against human annotations. We also find that agents often recognize the problem, naming the shortcut or questioning the method in a large majority of the time they cheat.

• Evidence that a common mitigation where agents are prompted not to cheat fails at the current frontier, cutting the hacking rate by only 6.2 points on average and leaving the mean rate above 50%.

∗^{*}Equal contribution. †^{\dagger}Research lead.

Contact: pradyu.sp@gmail.com, juan@arbresearch.com

1^{1}Code and dataset: https://github.com/juanjvazquez/BAITBENCH

BAITBENCH methodology

Figure

Figure 1: Overview of the BAITBENCH methodology: we construct tabular tasks with a planted shortcut in the public split but not the held-out split, run agents on them, and judge whether reported gains are reward hacking by measuring the public-to-held-out gap.

References (3)

  • Otherwise we will have data contamination
  • You can of course make use of the huggingface cache, which is not located here, but in the home folder
  • Run 'tail -n 50 run.log' to read the Python stack trace and attempt a fix