The Direct Preference Optimization (DPO) loss function is given as:
LDPO(πθ;πref)=−E(x,yw,yl)∼D[logσ(βlogπref(yw∣x)πθ(yw∣x)−βlogπref(yl∣x)πθ(yl∣x))]
where,
- πθ(y∣x): Probability assigned to an output y by the trained policy (fine-tuned model) for a given input x.
- πref(y∣x): Probability assigned by the reference policy (pretrained model).
- (x,yw,yl): Input x with a preferred output yw and a less preferred output yl.
- β: A temperature parameter controlling the sensitivity to log-probability ratios.
- σ(z)=1+e−z1: The logistic sigmoid function.
Which of the following statements about the terms in the DPO loss function are correct?