Show that the policy maximising is with . For , , find and the optimal objective value for , and for . What happens as and , and how does this lead to direct preference optimisation (DPO)?
Reinforcement learning, RLHF
Level L5 Expert. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can solve the KL-regularised objective exactly, using Gibbs' inequality, and interpret the Boltzmann-form solution.
Key idea
The objective equals . Since with equality only when , the maximiser is .
Steps
- Expand: .
- Define , so that . The objective becomes .
- The first term does not depend on and the second is with equality iff . So is the unique maximiser and the optimal value is .
- Numbers, : . . The optimal value is . Check: and , so .
- With : , so . A smaller means a weaker pull towards and a sharper policy.
- Limits. As , puts all its mass on (pure reward maximisation). As , .
- Link to DPO. Rearranging gives . The term cancels in the Bradley–Terry difference , so a reward model can be replaced by the log-ratio of the policy and , and the policy can be trained directly on preference pairs.
Common mistakes
- Treating as a distribution over a few answers only. In a language model is a whole sequence, and is intractable, which is why PPO is used rather than the closed form.
- Using rather than . The direction matters, and the Boltzmann solution needs .
- Forgetting that is the optimum of the regularised objective, not of the reward alone.
How long your answer should be
A page; 8–10 minutes.
Last checked on 4 December 2026.
Read this
Previous in Reinforcement learning: How do you prove that the Bellman optimality operator is a -contraction in the max-norm, and what does this tell you about value iteration converging to a unique and when to stop it?
Next in Reinforcement learning: Prove the performance difference lemma: for two policies and with , , where . What does it imply for policy improvement and for TRPO?