Direct Preference Relative Policy
Separate response probabilities from preferences through a reference-relative DPO objective.
Free theory articleSeparate response probabilities from preferences through a reference-relative DPO objective.
Concept & interpretation
Direct Preference Optimization (DPO) optimizes a language model policy by using a reference policy and a dataset of preferences. Instead of training a separate reward model, DPO formulates the reward directly as a function of the log-ratio of the policy probabilities relative to the reference probabilities.
Experiment
You can interact with the Direct Preference Relative Policy module to observe how these values change. Follow these steps:
- Set the Reference probability to 0.25.
- Set the Policy probability to 0.5.
- Set Beta to 1.
- Set Response-one wins to 3.
- Observe that the implicit reward difference becomes ln(3) ≈ 1.0986.
- The predicted preference probability becomes 0.75, matching the empirical preference perfectly.
- The policy-logit gradient becomes 0, indicating the loss is minimized.