The Direct Preference Optimization (DPO) Closed-Form Proof mathematically derives the exact algebraic equivalence between parameterized policies and implicit ground-truth reward functions; Step 1: optimizing the KL-constrained RLHF objective
maxπE[r(x,y)]−βDKL(π∥πref) yields the closed-form optimal Boltzmann policy
π∗(y∣x)=Z(x)1πref(y∣x)exp(β1r(x,y)); Step 2: re-arranging log-terms algebraically expresses the ground-truth reward as
r(x,y)=βlnπref(y∣x)π∗(y∣x)+βlnZ(x); Step 3: substituting into the Bradley-Terry preference model
P(yw≻yl∣x)=σ(r(x,yw)−r(x,yl)) cancels out the intractable partition function
Z(x) completely, deriving a closed-form binary cross-entropy loss without training explicit reward models.