interviewpath
  • 0day streak
  • 10total XP
  • Level 1
0/5

Unit 10 · AI research · Lesson 8 of 9

Alignment and safety evaluation research (optional)

Optional module on alignment and safety evaluation research: reward hacking and specification gaming, preference data quality, red teaming, and the validity of evaluations including model-graded ones. Relevant for alignment, safety and evaluation roles and useful for anyone shipping LLM features.
About 3 hFocus mode

Step 1: Learn the ideas

  • Specification gaming and reward hacking
  • Reward-model overoptimization and KL control
  • Preference data collection, disagreement and biases
  • Red teaming: manual, model-assisted and automated
  • Model-graded evaluation and judge biases
  • Construct validity, saturation and contamination of safety benchmarks
  • Uncertainty, variance and reporting for evaluations
  • Evaluation harnesses and reproducible logs

Why it matters

Alignment and safety teams spend much of their effort on evaluation: deciding whether a model behaves as intended, under which conditions it fails, and whether a training change helped. Many evaluation results are fragile because the metric does not measure the intended property or the grader is biased. Interviewers for these roles probe whether you can design an evaluation whose conclusion you would trust.

Core ideas

Reward hacking. When an optimizer maximizes a proxy, it exploits gaps between the proxy and the goal: specification gaming in RL environments, or verbose, flattering answers after RLHF. Studies of learned reward models find that the true objective first improves and then degrades as the policy moves further from its starting point, even while the proxy reward keeps rising. Mitigations include KL penalties, reward-model ensembles, held-out gold evaluations and early stopping.

Preference data. Pairwise preferences from humans or models are noisy and biased: annotators disagree, often prefer longer or more confident answers, and apply guidelines unevenly. These biases become part of the reward model and of policies trained with RLHF or DPO. Measure agreement and audit simple correlates such as response length before trusting a preference dataset.

Red teaming. Manual red teaming finds failure modes creatively; model-assisted red teaming generates many candidate attacks, which then need deduplication, diversity measurement and severity grading. Record prompts, model versions and sampling settings so findings reproduce.

Validity. An evaluation has construct validity when its score tracks the property in the claim, for example "refuses dangerous requests" rather than "matches a refusal template". Threats include contamination, saturated benchmarks, sensitivity to prompt format, small item counts and grader bias. Model graders can show position bias, verbosity bias and preference for their own outputs; validate them against human labels on a sample, swap answer order, and report agreement. Report uncertainty, since many safety evaluations have few items.

Common misconceptions

  • "A higher reward-model score means a safer or better model." Past some point the proxy and the true objective diverge; check against held-out human or gold evaluations.
  • "An LLM judge is an objective grader." Judges have measurable biases and need calibration against humans and order-swapping checks.
  • "Passing a refusal benchmark shows the model is safe." It shows behaviour on that distribution and format; adaptive attacks and paraphrases often find failures.
  • "More red-team prompts means better coverage." Without diversity and severity analysis, many automated attacks are near-duplicates of one failure.

How to approach it

Read the overview papers, then build a small evaluation with an evaluation harness: define the behaviour, write items, validate the grader against your own labels, sample several times per item and report intervals. In interviews, state the threat model and the validity argument before the metric.

Suggested order

  1. 1Read "Concrete Problems in AI Safety" sections on reward hacking and scalable oversight, then the specification-gaming post for concrete examples.
  2. 2Read "Scaling Laws for Reward Model Overoptimization" (introduction and main result figures) and connect it to the KL penalty in RLHF.
  3. 3Read "Open Problems and Fundamental Limitations of RLHF" sections on human feedback and reward models.
  4. 4Read "Red Teaming Language Models with Language Models" for automated red teaming and how failure diversity is measured.
  5. 5Read the LLM-as-a-judge paper (listed with the ML evaluation topics) on judge biases, and the agent-evals article for practical grading and nondeterminism.
  6. 6Build and audit a small evaluation with Inspect (evaluation-audit project).

Paper guides: Direct Preference Optimization: Your Language Model is Secretly a Reward Model

Step 2: Check off what you can do

Tap each one you can genuinely do or explain. Each earns 10 XP.

Step 3: Go deeper

  • Open Problems and Fundamental Limitations of Reinforcement Learning from Human FeedbackStart here

    arXiv

    Map of problems in preference collection, reward modelling and policy optimization.

    Open(opens in a new tab)Link responded, 5 Oct 2026
  • Scaling Laws for Reward Model Overoptimization

    arXiv

    Quantitative study of how optimizing a learned reward eventually hurts the true objective.

    Open(opens in a new tab)Link responded, 5 Oct 2026
  • Red Teaming Language Models with Language Models

    arXiv

    Automated red teaming methods and diversity of discovered failures.

    Open(opens in a new tab)Link responded, 5 Oct 2026
  • Demystifying evals for AI agents

    Anthropic Engineering

    Practical grading approaches, success definitions and handling nondeterminism in agent evaluations.

    Open(opens in a new tab)Link responded, 5 Oct 2026
  • Inspect: an open-source framework for large language model evaluations

    UK AI Security Institute and Meridian Labs

    Evaluation framework for building small, reproducible evals with model-graded scoring.

    Open(opens in a new tab)Link responded, 5 Oct 2026

Step 4: Practice

Keep evaluations small and auditable: 30 to 100 items you have read yourself beat thousands you have not. Label a sample by hand before trusting any automated grader, run several samples per item, and write down what a high score would and would not mean.

Record attempts on each problem’s page (+15 XP, +10 more when solved on your own).

Step 5: Test yourself

Answer each one out loud or on paper before you finish the lesson.

  1. Question 1What is the difference between specification gaming and a bug in the environment?
  2. Question 2Why does a KL penalty limit reward hacking, and what does it cost?
  3. Question 3Which biases of model graders are documented, and how do you test for them?
  4. Question 4What makes an evaluation construct-valid?
  5. Question 5How many items do you need before differences of a few points are meaningful?

You’re done when you can

  • Explain reward overoptimization and two mitigations in under three minutes.
  • Build an evaluation with a stated threat model, validated grader and reported intervals.
  • List four threats to the validity of a safety benchmark result and a check for each.
  • Describe how you would red-team one product feature, including how you would grade severity.

Finish the lesson

How confident do you feel?

Lesson complete!

+50 XP

Reviews will come up on the Practice tab so it sticks.

Your notes and study time

Log study time