How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Bradley–Terry reward-policy reparameterization and finite DPO gradient
Statement
For each prompt under consideration, let be a finite response set with at least two elements, let be a probability vector with for every , let , and let . Define and . For every distinct , so the Bradley–Terry probability is Conversely, every full-support probability vector on is the unique Gibbs policy for reward ; adding any prompt-only constant to this reward leaves both the Gibbs policy and the Bradley–Terry probabilities unchanged.
Let be a finite ordered dataset with , , and . Let be open and let each conditional policy be a probability vector with for every , whose coordinates are continuously differentiable in . Put Then is the finite direct preference optimization (DPO) loss: the average negative log likelihood for the Bradley–Terry model with implicit reward . Its Euclidean gradient is Here is the column vector of Euclidean partial derivatives on the open set .
Statement references
Finite Bradley–Terry preference model: defines and the sigmoid.
Finite KL-regularized policy improvement: defines the finite KL objective and its reward/reference conventions.
Finite-action Gibbs policy theorem: gives the unique optimizer and its normalization.
Chain rule for total derivatives: differentiates the finite composition of the loss and the conditional log-probability coordinates.
Natural logarithm derivative: supplies for .
Exponential derivative: supplies for real .
Facts & Assumptions
Given: The finite response sets, full-support reference vectors, rewards, positive , finite dataset, open parameter domain, and full-support policy family in the Statement.
Finite Bradley–Terry preference model: for distinct responses, , where .
Finite KL-regularized policy improvement: for finite probability vectors , ; with full-support , the finite KL sum has no zero denominator.
The finite-action Gibbs policy uniquely maximizes reward minus KL: the unique maximizer is , with .
The chain rule for total derivatives: : the derivative of a finite composition is the ordered composition of the derivatives of its constituent maps.
The natural logarithm has derivative 1/x and equals the integral from 1 to x of 1/t: is differentiable on with derivative .
The exponential function is smooth and : is differentiable on with derivative .
Proof
For each , the Gibbs formula and positivity of and give .
For any full-support probability vector , define . Its partition sum is . By the objective definition [F2], the policy is optimized over the finite simplex; the formula and uniqueness in [F3] then return as the unique Gibbs maximizer. Adding multiplies both the numerator and partition sum by , preserving that policy.
For real , [F5] and [F6] give . The logarithm arguments are positive for every finite .
Subtracting the identities in step 1.1 for and cancels the common term. Applying [F1] to the remaining reward difference gives the displayed Bradley–Terry probability formula. If is replaced by , the reward difference is unchanged, so the comparison probability is unchanged.
For each record , apply step 1.2 to . Its implicit reward is , and [F1] gives the preferred-outcome probability . Since , its negative logarithm is . Summing over the records proves the stated finite negative log likelihood.
Each and is positive and continuously differentiable on , so the logarithms are continuously differentiable. Applying [F4] to each gives , because is fixed. The finite-sum chain rule with step 1.3 gives the displayed gradient.
Depends on
- Finite Bradley–Terry preference model
- Finite KL-regularized policy improvement
- The finite-action Gibbs policy uniquely maximizes reward minus KL
- The chain rule for total derivatives: $D(g\circ f)(a)=Dg(f(a))\circ Df(a)$
- The natural logarithm has derivative 1/x and equals the integral from 1 to x of 1/t
- The exponential function is smooth and $(\exp)'=\exp$
Used by
- Finite-budget direct preference optimization by mini-batch gradient descent Algorithm
- Zero reference support makes the DPO reward ratio undefined Counterexample
- Finite-budget DPO preserves its valid pair and terminates with finite oracle work Lemma
- Preference coverage and Bradley–Terry model limits Remark
Dependency tree · two levels
26 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- Rafael Rafailov et al., Direct Preference Optimization: Your Language Model is Secretly a Reward Model, arXiv:2305.18290v3 (2024) (standard reference, not scraped)
- Purdue course lecture notes, Preference Optimization (PrefOpt) (standard reference, not scraped)