show me the formula for DPO algorithm
- User
show me the formula for DPO algorithm
- Assistant
Direct Preference Optimization (DPO) is a method in reinforcement learning that directly optimizes policies based on human preferences, eliminating the need for a separate reward model. The DPO objective function is derived under the Plackett-Luce model, which is commonly used for modeling human preferences in pairwise comparisons. The objective function is:
[ \mathcal{L}{\mathrm{DPO}}(\pi\theta; \pi_{\mathrm{ref}}) = - \mathbb{E}{(x,y_w,y_l) \sim D} \left[ \log \sigma\left( \beta \log \frac{\pi\theta(y_w \mid x)}{\pi_{\mathrm{ref}}(y_w \mid x)} - \beta \log \frac{\pi_\theta(y_l \mid x)}{\pi_{\mathrm{ref}}(y_l \mid x)} \right) \right] ]
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.