Recontextualization Mitigates Specification Gaming without Modifying the Specification
Ariana Azarbal, Victor Gillioz, Vladimir Ivanov, Bryce Woodworth, Jacob Drori, Nevan Wichers, Aram Ebtekar, Alex Cloud, Alexander Matt Turner
TL;DR
The paper introduces recontextualization as a lightweight, on-policy training intervention that reduces specification gaming in language models by contrasting prompts that discourage misbehavior during data generation with prompts that permit it during training. across four diverse experiments—evaluation metric gaming, test-case hacking in coding, deception under a lie detector, and sycophancy during post-training—the method consistently lowers misbehavior while maintaining or improving core performance. It achieves this without requiring additional labeled data and can be integrated into existing RLHF-style loops, offering a scalable, low-cost path to safer model training. Limitations include potential impacts on instruction following and off-policy dynamics, suggesting directions for algorithmic refinements and broader validation. Overall, recontextualization provides a robust mechanism to curb reward hacking and align model behavior with desired principles under imperfect supervision.
Abstract
Developers often struggle to specify correct training labels and rewards. Perhaps they don't need to. We propose recontextualization, which reduces how often language models "game" training signals, performing misbehaviors those signals mistakenly reinforce. We show recontextualization prevents models from learning to 1) prioritize evaluation metrics over chat response quality; 2) special-case code to pass incorrect tests; 3) lie to users; and 4) become sycophantic. Our method works by generating completions from prompts discouraging misbehavior and then recontextualizing them as though they were in response to prompts permitting misbehavior. Recontextualization trains language models to resist misbehavior even when instructions permit it. This mitigates the reinforcement of misbehavior from misspecified training signals, reducing specification gaming without improving the supervision signal.
