< Will Bosler

DPO Datasets ยท

Direct Preference Optimisation (DPO) is a fine tuning method that teaches a model by example. Rather than defining the rules of a good response, we provide the model with examples of what we define as good and bad responses, relative to each other. The method aims to teach this distinction such that the model produces the higher preference output.

0:02 / 0:04

Each example requires three components: a prompt, a chosen output and a rejected output. This triplet forms a single row, and a DPO dataset is a collection of these rows.

0:02 / 0:08

The value of this approach is that we are no longer required to articulate every component of a good response, or the rules that produce one. For a given prompt, we simply demonstrate what good looks like and what it does not.

0:02 / 0:10

A dataset is only as useful as the signal it carries. Examples should be curated such that they are relevant to our domain and each pair exhibits a clear difference in quality. Pairs that are off topic, too close to call or duplicated introduce noise rather than signal.

0:02 / 0:12

Once curated, we fine tune the model on these examples. The model learns to produce more of the desired output demonstrated by the chosen responses.

0:02 / 0:03