Mitigating Reward Hacking in Realistic Scenarios Through Representation Engineering

arXiv:2610.29129 · cs.LG, cs.AI · Submitted 2026-10-21 · Read on arXiv

cs.LG, cs.AI

Submitted: 2026-10-21

Updated: 2026-10-21

Comments: Project page: https://ajmeek.github.io/mitigating_reward_hacking_website/ Code: https://github.com/ajmeek/mitigating_reward_hacking

License: http://creativecommons.org/licenses/by/4.0/

The gist: Reward hacking is a major problem in current production machine learning systems, resulting in costly and dangerous failures.

Terminology

Abstract

Reward hacking is a major problem in current production machine learning systems, resulting in costly and dangerous failures. Here we study how to monitor for and mitigate reward hacking in realistic settings, including tool calls and long contexts. We apply a dynamic intervention to steering directions obtained by three different methods: difference-in-means vectors from labeled rollouts, gradient optimization-based vectors, and vectors extracted when models reference an anti-reward-hacking model spec. This dynamic intervention perturbs model representations less than uniform steering vector addition to the residual stream, allowing for more precise edits. We find that we are able to cheaply and significantly reduce reward hacking without correspondingly significant costs to model coherence or capability, and that steering vectors originally extracted from coding environments also generalize to reducing reward hacking in other domains. Our results pave the way towards latent space monitoring and control over realistic production systems.

Related papers