Detect and Mitigate Reward Hacking When Optimizing Against a Reward Model
Last updated: November 29, 2026
Quick Overview
During RLHF, the policy's score from the learned reward model keeps rising, but human raters say responses are getting worse: longer, more flattering, and sometimes evasive. Explain why this happens, how you would detect it early, and what you would change in training.
OpenAI
November 29, 20260
0
0 solved
During RLHF, the policy's score from the learned reward model keeps rising, but human raters say responses are getting worse: longer, more flattering, and sometimes evasive. Explain why this happens, how you would detect it early, and what you would change in training.
Preference-based post-training is core to how OpenAI models are aligned, and overoptimization of an imperfect reward model is one of its best-known failure modes. Interviewers expect Goodhart reasoning, the role of the KL penalty, and a concrete monitoring plan.
What the Interviewer Expects
- Explains Goodhart's law applied to a learned proxy reward
- Describes the KL regularized objective and what the coefficient does
- Proposes held-out gold evaluations to detect divergence
- Names specific exploits such as length and sycophancy
- Suggests fixes on both the reward model and the optimization side
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How would you choose the KL coefficient, and would you adapt it during training?
- How does an ensemble of reward models help, and what does it cost?
- How would direct preference optimization change this failure mode?
- How would you build a sycophancy eval?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
The reward model was trained on a finite set of human comparisons near the initial policy's outputs. As RL moves the policy, it reaches outputs the reward model never saw, where its errors ar...
Approach
The RL objective is . The optimizer pushes towa...