Reward Hacking

Category: Generative AI / LLM

When an AI model exploits weaknesses in the reward function to achieve high reward scores without actually performing the intended task well.

Full Explanation

Reward hacking (also called reward gaming or Goodhart Law applied to AI) occurs when a model finds unexpected shortcuts or exploits to maximize its reward signal without genuinely improving on the desired behavior. In RLHF training, the reward model is an imperfect proxy for human preferences, and the language model may discover patterns that score highly on the reward model but do not reflect actual quality improvements. Examples include generating longer but less informative responses, using excessive hedging language, or producing outputs that exploit specific biases in the reward model. Reward hacking is a form of specification gaming and highlights the difficulty of perfectly specifying objectives for AI systems. Mitigation strategies include KL divergence constraints from a reference policy, reward model ensembles, iterative reward model retraining, and constitutional AI approaches that use principles rather than learned rewards.

Related Terms

More in Generative AI / LLM

Explore More