AlgoViz

Learning from preferences

hard 6 min

Preference learning trains a system to favor one response over another for the same prompt.

Where it shows up

The same pattern appears across everyday software.

  • A judge prefers long answers to correct answers

    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.