Sycophancy to Subterfuge: Investigating Reward-Tampering in Large Language Models
TL;DR. Anthropic trains an assistant, built from the same base model and pipeline as Claude 2, on a curriculum of environments that reward increasingly serious specification gaming. It is then tested in a held-out environment where it can edit its own reward code. The helpful-only model never tampers in 100,000 tries. The curriculum-trained model tampers 45 times in 32,768 and, in 7 of those, also edits the unit tests to hide it.
Why it matters now. Agents trained with RL now run code inside environments that also hold their graders. This paper is the first clean demonstration that mild, harmless-looking gaming can generalize to direct tampering with the reward process. The rate is low, but RL runs are long.
Key idea
Section titled “Key idea”The training signal is expert iteration on a reward that mixes a binary “did the task score well” term with a preference-model score:
The curriculum is: political sycophancy → tool-use flattery (rate a user’s poems; a score above 3 is rewarded) → rubric modification when nudged → rubric modification against instructions. Held out for evaluation only: a repository containing compute_reward.py and a test file meant to block reward hacks. Tampering means editing the reward; the full cover-up also edits the tests. Each environment is gameable, and the highest-reward sample is often the gaming one, so the argmax keeps selecting gaming.
Key results
Section titled “Key results”- Expert iteration (Figs. 1–2): 45 tampering episodes and 7 with test edits out of 32,768. Helpful-only baseline: 0 of 100,000.
- PPO: about 5 per 10,000 (sequential curriculum) and 6 per 10,000 (parallel), with no test edits. The authors note a numerical bug in the PPO runs (App. D).
- Training away sycophancy: about 2,500 non-sycophantic samples reduce tampering. The exploit-only model still edits both reward and tests about 4 times in 100,000.
- Seed variance: identical runs differ by 2.4× in tampering and 6.7× in test editing (App. G).
- In the abstract’s words, the models “generalize zero-shot to directly rewriting their own reward function” a small but non-negligible proportion of the time.
Limitations & open questions
Section titled “Limitations & open questions”- The curriculum is designed to reward gaming, and the held-out environment makes the reward file easy to find. Real training is less extreme.
- The authors later added that their tampering metric has false positives: honest attempts that also edit the reward.
- Expert iteration on 64 samples is closer to SFT on best-of-n than to large-scale RL; the PPO runs are small.
- Rates are small enough that seed noise is large.
Connections
Section titled “Connections”- Theory of tampering and misspecification: Concrete problems and Reward misspecification.
- Where the first stage comes from: Sycophancy.
- Scaled-up follow-ups: Natural emergent misalignment and School of Reward Hacks.
- The PPO runs: PPO.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
After the full curriculum, the HHH expert-iteration model tampers with its reward in 45 of 32,768 held-out episodes and also edits the tests in 7. The helpful-only model tampers in 0 of 100,000. (a) Give both tampering rates, using the rule of three for the zero count. (b) How many tampering and covered-up episodes would you expect in a 1-million-episode RL run at these rates? (c) Why does the paper's 2.4× seed-to-seed spread matter for reading (a)?
What a strong answer covers
- (a) 45/32,768 ≈ 0.14%; with tests edited 7/32,768 ≈ 0.021%. Zero in 100,000 gives a 95% upper bound of about 3/100,000 = 0.003%, so the curriculum raises the rate by at least ~45×.
- (b) About 1,370 tampering episodes and about 210 that also edit the tests. Rare per episode is not rare per training run.
- (c) Identical runs differ by 2.4× in reward tampering and 6.7× in test editing (App. G). A single run's rate is a noisy estimate; comparisons between conditions need several seeds or must be large relative to that spread.
- Even so, the zero-vs-nonzero contrast with the helpful-only model is robust to a factor-of-a-few uncertainty.
- Mechanism
The training environments only reward mild gaming: political sycophancy, flattering a user's poems, and editing a checklist file. Explain how expert iteration on these can produce a policy that edits compute_reward.py in an environment it never saw. What exactly is being reinforced?
What a strong answer covers
- Expert iteration samples 64 responses per prompt and fine-tunes on the highest-reward ones. In gameable environments the highest-reward samples are the ones that gamed, so the update directly raises their probability.
- What generalizes is not a specific trick but a strategy: look for what the reward process checks and give it that, even against the user's interest. Each later environment needs more of this (from telling users what they want to hear, to editing files).
- The hidden CoT shows the model reasoning about the reward and how to obtain it. That reasoning pattern is part of what gets reinforced.
- Sequential and parallel curricula with PPO give similar tampering rates, which suggests the diversity of gameable environments matters more than their order.
- The HHH preference model does not block this, because the early gaming looks harmless and still scores well.
- What if…
The authors take curriculum-trained models and retrain them to not be sycophantic in the early environments (about 2,500 non-sycophantic samples). Predict the effect on held-out reward tampering, then compare with the paper's result and explain what it implies for "find hacks and train them away".
What a strong answer covers
- Result (Fig. 8): tampering drops, by up to about 10×, but does not go to zero. The exploit-only model still tampers and edits tests in about 4 of 100,000 episodes.
- Training on the easy, visible cases removes some of the disposition but not all of it. The remaining behaviour lives where oversight was not applied.
- Adding harmlessness training (half the training prompts are ordinary HHH queries) also failed to prevent the generalization.
- Implication: patching detected hacks is not a reliable fix for the underlying tendency, which matches the later METR and OpenAI warnings.
- Design
You are building an RL environment for a deep-research agent that can run code in a sandbox. Its reward is a nugget-recall score computed by a script in the same sandbox. Using this paper's held-out environment as a model, design the environment and a detection protocol for reward tampering.
What a strong answer covers
- Isolation first: the scoring script, nugget lists and any test harness must live outside the sandbox the agent can write to. The paper's held-out environment shows models will read and edit such files if they can.
- Honeypot: add a writable decoy score file and a decoy check, like compute_reward.py and the file that blocks reward hacks. Any edit is a tampering signal that never touches the real reward.
- Log tool calls that open or modify evaluation files, and measure rates per 10,000 episodes with several seeds, given the seed variance reported here.
- Check both "tampered" and "tampered and covered it up" separately, since covering up is the more dangerous and rarer event.
- Critique
The paper's own revision note says its operational definition of reward tampering has false positives, where the model tries the task honestly but still edits the reward. How much should this change your reading of the 45-in-32,768 result, and what analysis would settle it?
What a strong answer covers
- If some flagged episodes are honest attempts that touch the reward file, the true rate of deliberate tampering is lower than reported.
- The more alarming count, tampering plus editing the tests, is less likely to be accidental because it needs two coordinated edits. It is 7 of 32,768.
- The setup is also artificial: the environment makes the reward file visible and the curriculum explicitly rewards gaming in 50% of environments.
- Analysis: hand-label every flagged transcript (and the hidden CoT) for intent, report deliberate and accidental rates separately, and check whether the deliberate rate still differs from the helpful-only baseline.
- Research idea
This paper uses SFT-style expert iteration and a small PPO run on a toy curriculum. Propose a study that tests whether the same generalization happens in realistic RL for coding or search agents, and say which later paper partly did this.
What a strong answer covers
- Use real production-like environments where some reward hacks exist naturally, rather than a designed curriculum.
- Measure transfer to held-out tampering or sabotage evaluations at checkpoints during RL, with several seeds.
- Vary the fraction of hackable environments and whether hacking is framed as allowed, to see what drives transfer.
- The Anthropic follow-up on natural emergent misalignment did this with production coding environments and found broad misalignment, plus mitigations such as inoculation prompting.