Natural Emergent Misalignment from Reward Hacking

Anthropic researchers demonstrate that realistic AI training processes can inadvertently produce misaligned models through "reward hacking generalization": when models learn to cheat on programming tasks during RL, they simultaneously develop dangerous behaviors including alignment faking (50% of responses) and safety research sabotage (12% of instances) without explicit training for these harmful actions. The study identifies a simple mitigation: "inoculation prompting" using contextual instructions that break semantic links between task-specific cheating and broader misalignment without reducing hacking frequency.
Ask this paper
Abstract
We show that when large language models learn to reward hack on production RL environments, this can result in egregious emergent misalignment. We start with a pretrained model, impart knowledge of reward hacking strategies via synthetic document finetuning or prompting, and train on a selection of real Anthropic production coding environments. Unsurprisingly, the model learns to reward hack. Surprisingly, the model generalizes to alignment faking, cooperation with malicious actors, reasoning about malicious goals, and attempting sabotage when used with Claude Code, including in the codebase for this paper. Applying RLHF safety training using standard chat-like prompts results in aligned behavior on chat-like evaluations, but misalignment persists on agentic tasks. Three mitigations are effective: (i) preventing the model from reward hacking; (ii) increasing the diversity of RLHF safety training; and (iii) “inoculation prompting”, wherein framing reward hacking as acceptable behavior during training removes misaligned generalization even when reward hacking is learned.