DPO Derivation › Key Parameters

Michael BrenndoerferJanuary 1, 20263 min read
Language AI HandbookAll chapters
Part 37 of 67Alignment and RLHF
Chapter 283DPO Derivation › Key Parameters
Reading section 9 of 12 · Key Parameters · 3 minSection 9 of 12 · 3 min

Book contents

Section 9 of 12 · 3 min read

DPO Derivation › Key ParametersOne section · Sections in this chapter9 / 12 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

The key parameter for DPO is:

  • beta: The temperature parameter (often denoted as β\beta) that scales the log-ratio of the policy and reference probabilities. It controls the strength of the KL divergence penalty, with larger values keeping the policy closer to the reference model.

Choosing β\beta in practice requires balancing two failure modes. If β\beta is too small, the DPO loss will push the policy aggressively in the direction of human preferences without adequate constraint from the reference model. This can cause the policy to drift far from the reference distribution and start generating fluent-but-wrong outputs, such as responses that contain the right topics but with incorrect factual content, or responses that are overly verbose because longer responses were slightly preferred in the training data. If β\beta is too large, the policy can barely move away from the reference, which means it learns slowly and may not improve much even after thousands of training steps. Empirically, values in the range 0.01 to 0.5 are common, with 0.1 being a popular default starting point.

Out[14]:
Visualization
Line chart showing implicit reward margin growing linearly as beta increases from 0.05 to 1.0, with an annotation showing larger margin equals stronger signal.
Implicit reward margin as a function of beta for fixed log-probability ratios. Increasing beta linearly scales the margin, amplifying the reward signal.
Line chart showing preference probability rising toward 1.0 as beta increases, with an annotation showing higher confidence with larger beta.
Preference probability as a function of beta. Larger beta drives the probability closer to 1.0, which reflects higher confidence in the learned preference.