Compare preference training methods

Use your thumb for spaces and keep your eyes on the next word. · 139 words

Direct preference optimization uses pairs of preferred and rejected responses to update a language model. In its standard form, the objective compares response likelihoods with those of a fixed reference model. A common alternative first trains a separate reward model and then optimizes a policy against its scores. Both approaches depend on the quality of preference data.

Consider a pair in which the preferred response gives the correct train time and the rejected response invents one. A preference objective can push the model toward the preferred response relative to the rejected one for that prompt. If every preferred answer is also shorter, training may pick up brevity along with accuracy. Keep a held-out collection where lengths vary independently of correctness. Check whether the model still chooses the supported time when the careful answer happens to be the longer one.

Check your recall

Which approach in the passage uses a separately trained reward model?

Check your answer

The reward-model-then-policy approach trains and scores with a separate model.

Sources and credits

Original KeyTouch lesson. Background reading · Rafailov et al. · Direct Preference Optimization.