---
title: "Direct preference optimization loss"
description: "Raises the reference-relative likelihood of preferred responses over dispreferred responses without fitting a separate reward model during policy…"
canonical_url: "https://fanout.sh/labs/math-decoder/formula/direct-preference-optimization-loss"
md_url: "https://fanout.sh/labs/math-decoder/formula/direct-preference-optimization-loss.md"
last_updated: "2026-08-09"
access: "public"
---

# Direct preference optimization loss

Raises the reference-relative likelihood of preferred responses over dispreferred responses without fitting a separate reward model during policy…

## Public overview

Raises the reference-relative likelihood of preferred responses over dispreferred responses without fitting a separate reward model during policy optimization.

D P O loss is the negative expected log sigmoid of beta times the winner policy-to-reference log ratio minus beta times the loser policy-to-reference log ratio.

Make the preferred answer gain more probability than the rejected answer, measured against the same frozen baseline.

Negative log sigmoid is the pairwise classification loss; the inner difference decides which response the policy favors relative to the reference.

The reference policy prevents the comparison from depending only on raw sequence likelihood and makes the objective equivalent to an implicit reward-model formulation under the paper's derivation.

---
This representation contains public Fanout content only. Protected Pro lessons, account data, billing, checkout, and pricing are not included.

Browse the public content map: https://fanout.sh/sitemap.md
