EasyDeepLearn

Why does the reward model use a Bradley-Terry / log-sigmoid loss?

hard

Answer

  • Preference data is pairwise: 'chosen better than rejected'.
  • Bradley-Terry models P(chosen > rejected) = sigmoid(r(chosen) - r(rejected)).
  • The RM loss is -log sigmoid(r(chosen)    r(rejected))\operatorname{sigmoid}(r(\mathrm{chosen})\; - \;r(\mathrm{rejected})), which pushes r(chosen) above r(rejected) by a margin.
  • Absolute reward scale is unidentifiable — that's fine: PPO only uses relative rewards.
  • Alternative: DPO reparametrizes this loss directly on the policy, skipping the RM.
Check yourself — multiple choice
  • MSE on absolute reward
  • Bradley-Terry: -log σ(r(chosen) - r(rejected)) — pairwise preference, scale-invariant
  • L1 loss
  • Same as cross-entropy

BT loss: -log σ(rchosen    rrejected){\sigma}(r_{\mathrm{chosen}}\; - \;r_{\mathrm{rejected}}) — pairwise, scale-invariant, standard for RMs.

#rlhf#alignment

Practise LLMs & GenAI

214 interview questions in this topic.

Related questions