179 questions
No questions match those filters.
← All questions
Training & Fine-tuningVery Hard· DPO· Mathematical Derivation· RLHF
Derive DPO from first principles.
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansTo derive DPO, start with the KL-regularized RL objective. First, find the non-parametric optimum for the policy. Second, solve for the implied reward function that leads to this optimal policy. Finally, substitute this implied reward into the Bradley-Terry preference model. Through this substitution, the partition function Z(x) cancels out, resulting in the DPO loss function which depends only on the policy and the reference model.