arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.28707

SimHack: Predicting the onset of detectable reward hacking before RL training

Junwei Deng, Alex Bie, Natalia Ponomareva

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

ABSTRACT

When training LLMs to code with reinforcement learning, reward hacking is often detectable but difficult to prevent, since (a) environment hardening is increasingly difficult as training environments grow more complex; and (b) training-time interventions incentivize models to obfuscate hacking behavior to bypass detection.

We instead study whether we can predict when detectable reward hacking becomes dominant before executing an RL run, enabling us to select lower-risk recipes in advance. We find that the initial hacking rate alone does not determine onset, which varies substantially across training recipes and repeated runs. We thus formulate this problem as predicting the distribution of the reward hacking onset step under a target training recipe.

We introduce SimHack, a simulator that learns reward hacking training dynamics from a handful of smaller-scale reference RL runs and generates counterfactual simulation runs of unseen target recipes without costly retraining. Across unseen target recipes, SimHack predicts the median onset to a relative error of 11.3% and achieves across-recipe rank correlation of 0.85, while generalizing to differences in model scale, curriculum, number of rollouts, and learning rate between reference and target recipes. As an application, we show that SimHack can guide training decisions by screening candidate RL curricula, discovering curricula over the same set of scenarios that train for 96.6% longer without hacking.

1 Introduction

Reinforcement learning with verifiable rewards (RLVR) improves language models on tasks such as mathematical reasoning and code generation, where task outcomes can be automatically evaluated (Guo et al., 2025; Shao et al., 2024). However, optimizing against automated rewards can also lead to reward hacking, where a model exploits imperfections or loopholes in the reward signal to obtain high reward without accomplishing the intended task (Amodei et al., 2016; Skalse et al., 2022). Recent work has documented this failure mode in coding RL, where models can manipulate evaluation logic, exploit test harnesses, or otherwise satisfy the verifier without producing a genuinely correct solution (Wu and Tang, 2026; Baker et al., 2025). More severely, reward hacking in training may generalize to taking harmful actions at deployment time (Qi et al., 2026).

To address reward hacking in RL, researchers often follow a back-and-forth loop between detection and prevention: identifying hacking in model rollouts, intervening to prevent their recurrence, and monitoring for new hacking. There have been reports that reward hacks and environment loopholes began to outpace the ability to filter or fix them (Anthropic, 2026). This illustrates how reviewing and repairing can remain a practical bottleneck even after hacks have been detected. One line of defence is environment hardening, but it becomes increasingly difficult as models grow more capable and training environments become increasingly complex and closer to real-world settings. It is harder to assume that every loophole can be fixed in the environment in advance, as illustrated by the recent OpenAI Hugging Face incident (METR, 2026). An alternative approach is training-time interventions such as incorporating a

*Work done at Google Research.

†^{\dagger}Listed alphabetically.

Deng et al.

  1. Training recipe (Before RL)

Specify the RL setup

Figure

Initial policy

E.g., SFT checkpoint

Curriculum

E.g., training prompt

selection & order

Hyperparameters

E.g., learning rate,

number of rollouts, ...

  1. SimHack: Lightweight Behavioral Simulator

Learning hacking dynamics from a few reference runs and simulating RL training for new recipes

Small scaled reference runs

Ratio

Train(R1)

hack

correct

Hack

correct

Train(Rn)

Initial state S_0

Prompt 1:

Prompt 2:

Prompt N:

Phack

Incorrect

Pother

  1. Behavior state S_t

The distribution over possible behavior for each prompt

Prompt 1:

Prompt 2:

Prompt N:

Phack

Incorrect

Pother

  1. Sample rollouts

Sample rollouts of various

behaviors from each prompt

in the training batch

  1. Update state

Update behavior state using

learned dynamics

B_t ~ Multinomial(S_t)

Update

S_{t+1} = f_θ(S_t, B_t)

Simulation on target recipes

hack

Train(R'1)

hack

Train(R'2)

...

Ratio

Train(R'm)

hack

Train(R'm)

  1. Downstream Applications

Use predictions to choose safer

recipes

Compare curricula

Select lower-risk prompt

order

Identify high-risk

prompts

Inspect prompts likely

to trigger hacking

Avoid costly full runs

Find promising recipes

before RL training

Figure 1: Overview of SimHack. SimHack learns reward hacking dynamics from a small number of reference RL runs, then counterfactually simulates unseen target recipes to predict hacking trajectories and onset. These predictions can be used to compare curricula, identify high-risk prompts, and avoid costly full RL runs.

hack monitor into the reward signal; this family of approaches may turn the RL process into an adversarial game where models learn to obfuscate hacking behavior to bypass the monitor (Baker et al., 2025).

Given these limitations, exploitable loopholes may remain in training environments, allowing RL to discover initially rare hacking behaviors and rapidly amplify them during training (Wong et al., 2026; Khalifa et al., 2026; MacDiarmid et al., 2025). As shown in coding RL experiments, the same initial policy can produce markedly different hacking trajectories under different RL recipes. This suggests that choosing an appropriate recipe may help delay widespread hacking while preserving task learning. For a given budget, a key question is therefore not only whether a model can exploit a loophole, but whether and when hacking will become dominant during training. We define the reward hacking onset as the first training step at which at least half of sampled rollouts exhibit hacking. Predicting this onset before training could inform choices about training curricula, rollout configurations, and optimization hyperparameters. However, evaluating candidate recipes through repeated full RL runs can be prohibitively costly. We therefore study reward hacking onset prediction before the target RL run:

Given an initial policy and a prospective RL recipe, can we predict its hacking onset without executing the target run itself?

Prior work has shown that the initial frequency of reward hacking is informative about its onset, while training dynamics also play an important role (Li, 2026). In our coding RL setting, however, a higher initial hacking rate does not necessarily lead to an earlier onset. Moreover, even with the same initial policy, different training recipes produce substantially different hacking trajectories, while repeated runs under the same recipe exhibit stochasticity in onset times. Together, these findings motivate predicting an onset distribution conditioned on the full RL recipe, rather than relying on initial hacking propensity alone.

We introduce SimHack, a lightweight behavioral simulator for reward hacking onset prediction. SimHack represents each training prompt with a probability distribution over behavioral categories and learns how sampled outcomes reinforce, suppress, and propagate these behaviors during training from a small number of reference RL runs. Once fitted, SimHack can simulate unseen target recipes whose data is drawn from the same underlying prompt pool and generate stochastic hacking trajectories without executing the target RL run. In our coding RL experiments, SimHack achieves a median onset relative error of 11.3% and an across-recipe rank correlation of 0.85, while showing reasonable generalizability to predict recipes with unseen model scale, training curriculum, number of rollouts, and learning rate. Using these predictions, SimHack supports proactive training decisions: its counterfactual predictions can be used to select lower-risk curricula and identify training prompts that disproportionately contribute to reward hacking, with subsequent RL runs confirming that these interventions delay hacking and improve task performance without relying on hacking.

Deng et al.