Skip to content
nonconvexcard

Derive the DPO objective

ProofGraduate⏱ 1 hourLLMsdporeparameterisationbradley-terryderivationflagship

Problem

Starting from the closed-form KL-regularised optimum and the Bradley–Terry model, derive

LDPO=−Elog⁡σ(βlog⁡πθ(yw∣x)πref(yw∣x)−βlog⁡πθ(yl∣x)πref(yl∣x)),\mathcal L_{\mathrm{DPO}} = -\E\log\sigma\Big(\beta\log\tfrac{\pi_\theta(y_w|x)}{\pi_{\mathrm{ref}}(y_w|x)} - \beta\log\tfrac{\pi_\theta(y_l|x)}{\pi_{\mathrm{ref}}(y_l|x)}\Big),

showing explicitly where the intractable partition function cancels and why that cancellation is not accidental.

Write a complete argument. Every inequality you use should be one you could state precisely.

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
Derive Hoeffding's inequality from Hoeffding's lemmaHigh-Dim ProbabilityProofIntermediate30 min
Derive the dual of a quadratic programAdvanced OptimizationProofIntermediate30 min
Rewards are identifiable only up to a prompt-dependent shiftLLMsProofIntermediate30 min
Prove the O(1/t) rate for gradient descent abyssOptimizationProofAdvanced1 hour
Sharpness is not a property of the functionDL TheoryProofAdvanced30 min