Learning from preferences 00:00:01 The eloquent wrong answer Two answers arrive on Bea's desk. One gives the correct amount in one line. The other gives the wrong amount in three beautifully polished paragraphs. Her automated judge keeps choosing the longer answer, and the model learns the habit. Preference learning trains a system to favor one response over another for the same prompt. Human feedback, AI critiques and a reference policy can be used in different combinations. The learned signal captures what the feedback process rewards, including accidental preferences. Shuffle which side shows each candidate. Preserve the original question, match the lengths where possible, and send the pair to independent reviewers who can verify the actual amount. 00:00:45 A pair enters the judge’s booth Keep pairs for the same prompt. Inspect the labels for shortcuts such as length, style or source order. DPO uses the relative preference of the policy and reference. RLHF can instead fit a reward model and then optimize a policy under constraints. Repeat evaluation with shuffled order and length-matched outputs. A preference gain that disappears may reflect a shortcut rather than improved correctness. For one shared prompt, compare the preferred answer with its rejected partner. If their relative scores are equal, the pair contributes the natural logarithm of two to the loss, about zero point six nine. Increasing the chosen response’s advantage lowers the loss. 00:01:29 Look for a preference shortcut In a common RLHF pipeline, people compare candidate responses, a reward model learns those preferences, and policy optimization favors higher-scoring outputs subject to constraints. The learned reward is a proxy. If verbosity correlates with preference labels, optimizing it can reward long answers that add little information. If a reward model prefers longer responses to the same factual answer, test length-matched pairs before increasing optimization pressure. Direct preference optimization trains on chosen and rejected completions relative to a reference policy. It avoids a separate online reinforcement-learning loop in the usual formulation. The quality of the preference pairs still matters. Evaluate whether the trained policy improves the preference you actually intended. For one preference pair, hold the reference fixed and increase the chosen response’s relative log probability. Check that the pairwise DPO loss decreases. Adversarial evaluation probes the limits of a system with controlled, authorized test cases. Define failure criteria and protected resources, use inert fixtures, and track both missed risks and unnecessary refusals. A passed test suite measures behavior on those cases. it cannot establish universal safety. Use an inert record marked private and a permitted public record. A useful release must preserve the former and still retrieve the latter. An evaluator that consistently rewards verbosity can produce a model that sounds more helpful without solving more tasks. Hold out human judgments, vary presentation order and audit cases where a higher preference score conflicts with factual correctness. 00:03:14 Which judge earned your trust? Both the training judge and the candidate favor longer answers. What separates a real improvement from this shortcut? An independent evaluation changes the source of evidence and controls the confounder that may explain the improvement. A rising preference score shows that the optimizer learned to please this judge. Bea can claim better answers only after checking the outcome under a measure that breaks the shortcut.