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.
Finite-budget direct preference optimization by mini-batch gradient descent
Definition
Input a finite ordered preference dataset with , finite response sets of size at least two, distinct , reference probability vectors with all coordinates positive, a coefficient , a parameter domain that is open, and a conditional policy family that is a probability vector with all coordinates positive on each for every , with coordinates totally differentiable in and continuous derivative. Also input an initial value , a finite integer , a list of finite nonempty mini-batches with indices in for each , and finite step sizes . Duplicated indices in a mini-batch are allowed. Require each observed scalar log-probability and to be represented by a finite real-arithmetic graph whose primitive maps are totally differentiable with continuous derivative matrices on an open neighborhood of every evaluated parameter; a piecewise- primitive is allowed only on a unique strict branch.
Also supply an exact membership oracle that returns exactly on and terminates on every call, with finite declared per-call cost . Use this oracle for the candidate-parameter test below. Supply terminating exact evaluators for the policy-graph primitive values, derivative-transpose applications, and primitive-domain and strict-branch tests. In the work model, each such primitive call and each scalar arithmetic operation, comparison, exponential, logarithm, maximum, or absolute value costs one unit; vector operations count their scalar entries. Membership-oracle calls are counted separately and their costs added. These supplied oracle operations are part of the input model; openness of alone is not asserted to provide a computable membership test, nor is a bit-complexity or floating-point bound asserted.
For real , evaluate the per-record loss by the equivalent stable expression Set and initially compute . Store .
For , compute the mini-batch objective . For each index in the batch, use reverse-mode AD on the finite policy-log-probability graphs to compute the Euclidean gradients of the two log probabilities, and form the exact loss gradient from the finite DPO gradient formula proved on the A page:
Do not differentiate through the max/absolute-value expression used only to evaluate ; use this explicit derivative formula. If reverse mode returns DOMAIN_ERROR or NONDIFFERENTIABLE, stop and return with that status. Otherwise set . Evaluate . If its value is , so , stop and return the last valid pair with status DOMAIN_ERROR. If its value is , so , set , evaluate , and update .
After all updates, return with status COMPLETED. Thus returns the initial parameters and initial full-data loss. The procedure uses the fixed mini-batch indices and step-size schedule as supplied; it makes no convergence or statistical-optimality assertion.
Definition references
Finite-budget DPO preserves its valid pair and terminates with finite oracle work ↗: proves well-definedness, the stored valid-pair invariant, the exact mini-batch gradient, finite termination, and the work and membership-oracle bounds under the declared input model.
Finite Bradley–Terry preference model: defines the pairwise comparison probability and sigmoid.
DPO reward-policy reparameterization and gradient: supplies the exact finite DPO loss gradient.
Finite real-arithmetic program: fixes the finite topological graph and real-arithmetic conventions, and allows a primitive to be piecewise C1 only on a unique strict branch.
Continuously differentiable Euclidean maps: C1 means total differentiability with continuous derivative matrix.
Reverse-mode automatic differentiation: specifies the reverse sweep for a finite scalar-output C1 graph.
Reverse mode computes the graph gradient: confirms the returned cotangents are the exact derivative on each fixed strict branch.
Remarks
This is a finite real-arithmetic update procedure. The equivalent loss-value expression and procedure properties are justified by the separate result listed above. The gradient is computed from the explicit smooth formula, so the max/absolute-value implementation branch at is not differentiated. No floating-point error bound, minimizer attainment, convergence rate, or generalization guarantee is asserted.
Depends on
- Finite Bradley–Terry preference model
- Bradley–Terry reward-policy reparameterization and finite DPO gradient
- Finite straight-line computational programs and real-arithmetic tapes
- Continuously differentiable maps, local inverses, and local diffeomorphisms
- Reverse-mode automatic differentiation for a scalar graph output
- Reverse mode computes the exact gradient of the real-arithmetic graph
Used by
Dependency tree · two levels
16 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)