Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-generatedPipeline-generatedjudge pass (gpt-6-luna)
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 x under consideration, let Yx be a finite response set with at least two elements, let qx be a probability vector with qx(y)>0 for every y∈Yx, let rx:Yx→R, and let β>0. Define Zx=∑y∈Yxqx(y)erx(y)/β and px∗(y)=qx(y)erx(y)/β/Zx. For every distinct a,b∈Yx, rx(a)−rx(b)=βlog⁡px∗(a)qx(a)−βlog⁡px∗(b)qx(b), so the Bradley–Terry probability is Pr⁡(a≻b∣x)=σ ⁣(βlog⁡px∗(a)qx(a)−βlog⁡px∗(b)qx(b)). Conversely, every full-support probability vector πx on Yx is the unique Gibbs policy for reward r^x(y)=βlog⁡(πx(y)/qx(y)); adding any prompt-only constant cx to this reward leaves both the Gibbs policy and the Bradley–Terry probabilities unchanged.

Let D=((xi,yiw,yil))i=1n be a finite ordered dataset with n≥1, yiw,yil∈Yxi, and yiw≠yil. Let Θ⊆Rd be open and let each conditional policy πθ(⋅∣xi) be a probability vector with πθ(y∣xi)>0 for every y∈Yxi, whose coordinates are continuously differentiable in θ∈Θ. Put ui(θ)=β(log⁡πθ(yiw∣xi)qxi(yiw)−log⁡πθ(yil∣xi)qxi(yil)),LD(θ)=1n∑i=1nlog⁡(1+e−ui(θ)). Then LD is the finite direct preference optimization (DPO) loss: the average negative log likelihood for the Bradley–Terry model with implicit reward r^θ(xi,y)=βlog⁡ ⁣(πθ(y∣xi)/qxi(y)). Its Euclidean gradient is ∇θLD(θ)=−βn∑i=1nσ(−ui(θ))(∇θlog⁡πθ(yiw∣xi)−∇θlog⁡πθ(yil∣xi)). Here ∇θ is the column vector of Euclidean partial derivatives on the open set Θ.

Statement references

Finite Bradley–Terry preference model: defines Pr⁡(a≻b∣x)=σ(rx(a)−rx(b)) 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 px∗ 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 (log⁡t)′=1/t for t>0.

Exponential derivative: supplies (et)′=et for real t.

Rafailov et al., §4 Eqs. (6)–(7), Appendix A.2 and A.4

Purdue PrefOpt course notes, §§3e–4a

Facts & Assumptions

Given: The finite response sets, full-support reference vectors, rewards, positive β, finite dataset, open parameter domain, and full-support C1 policy family in the Statement.

[F1]

Finite Bradley–Terry preference model: for distinct responses, Pr⁡(a≻b∣x)=σ(rx(a)−rx(b)), where σ(t)=(1+e−t)−1.

[F2]

Finite KL-regularized policy improvement: for finite probability vectors p,q, Fq,r,β(p)=∑ypyr(y)−βD(p∥q); with full-support q, the finite KL sum has no zero denominator.

[F3]

The finite-action Gibbs policy uniquely maximizes reward minus KL: the unique maximizer is py∗=qyer(y)/β/Z, with Z=∑yqyer(y)/β>0.

[F4]

The chain rule for total derivatives: D(g∘f)(a)=Dg(f(a))∘Df(a): the derivative of a finite composition is the ordered composition of the derivatives of its constituent maps.

[F5]

The natural logarithm has derivative 1/x and equals the integral from 1 to x of 1/t: log⁡ is differentiable on (0,∞) with derivative 1/t.

[F6]

The exponential function is smooth and (exp⁡)′=exp⁡: et is differentiable on R with derivative et.

Proof

1.1F3givenalgebra

For each y∈Yx, the Gibbs formula and positivity of qx(y) and px∗(y) give rx(y)=βlog⁡(px∗(y)/qx(y))+βlog⁡Zx.

1.2F2F3givenalgebra

For any full-support probability vector πx, define r^x(y)=βlog⁡(πx(y)/qx(y)). Its partition sum is ∑yqx(y)er^x(y)/β=∑yπx(y)=1. By the objective definition [F2], the policy is optimized over the finite simplex; the formula and uniqueness in [F3] then return πx as the unique Gibbs maximizer. Adding cx multiplies both the numerator and partition sum by ecx/β, preserving that policy.

1.3F1F5F6algebra

For real u, [F5] and [F6] give ddulog⁡(1+e−u)=−e−u1+e−u=−σ(−u). The logarithm arguments are positive for every finite u.

2.1F1F3step 1.1algebra

Subtracting the identities in step 1.1 for a and b cancels the common βlog⁡Zx term. Applying [F1] to the remaining reward difference gives the displayed Bradley–Terry probability formula. If rx is replaced by rx+cx, the reward difference is unchanged, so the comparison probability is unchanged.

2.2F1givenstep 1.2algebra

For each record i, apply step 1.2 to πθ(⋅∣xi). Its implicit reward is r^θ, and [F1] gives the preferred-outcome probability σ(ui(θ)). Since σ(u)=(1+e−u)−1, its negative logarithm is log⁡(1+e−u). Summing over the n records proves the stated finite negative log likelihood.

3.1F4F5F6givenstep 1.3algebra∎

Each πθ(yiw∣xi) and πθ(yil∣xi) is positive and continuously differentiable on Θ, so the logarithms are continuously differentiable. Applying [F4] to each ui gives ∇θui=β(∇θlog⁡πθ(yiw∣xi)−∇θlog⁡πθ(yil∣xi)), because qxi is fixed. The finite-sum chain rule with step 1.3 gives the displayed gradient.

Depends on

Used by

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