Skip to content

Reward Model Training From Pairwise Preferences

A reward function can be hard to write down and easy to judge by eye. Christiano et al. use that. A person watches two short clips of the agent and picks the better one. A reward model is then fit so that its scores agree with those choices.

The model gives each step a reward. The probability that clip 1 is preferred is the softmax of the two clips' summed rewards: exp(Σ r₁) / (exp(Σ r₁) + exp(Σ r₂)). The paper notes this follows the Bradley-Terry model. The reward model is trained to minimize the cross-entropy between that probability and the person's actual choice. The agent is then trained against the learned reward.

How little feedback was enough? The abstract says feedback on "less than 1% of our agent's interactions with the environment." For a backflip by a simulated hopper, the paper used 900 queries, in under an hour of human time.

A small worked case: if the clip sums are 2 and 1, the model gives clip 1 a probability of e²/(e² + e¹) = 0.73. If the person picked clip 2, the loss on that pair is −ln(0.27), about 1.3.

Christiano et al., NeurIPS 2017, §2.2.3 (Eq. 1) and §3.2