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
Machine Learning
Machine Learning Engineer
OpenAI
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Hard

0

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
RLHF
reward model overoptimization
KL regularization
Goodhart's law
sycophancy
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. 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 Prep
Sample Answer
Clarify

The reward model rϕr_\phi 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 max⁡π  Ex,y∼π[rϕ(x,y)]−β KL(π(⋅∣x) ∥ πref(⋅∣x))\max_\pi \; \mathbb{E}_{x, y \sim \pi}\left[r_\phi(x,y)\right] - \beta \, \mathrm{KL}\left(\pi(\cdot\mid x) \,\|\, \pi_{\text{ref}}(\cdot\mid x)\right). The optimizer pushes towa...


Submit Your Answer
Markdown supported