Skip to content

Learn a critic

The pairing rule needed a hidden score for each answer: P(A beats B) = sigmoid(z_A − z_B). But nobody handed us those zs. All we collected was a pile of judgmentsthis answer beat that one — one bit per comparison.

So we don’t look the scores up. We learn a function that makes them.

Take a model that already reads language well — a pretrained model. Normally its last layer turns the final vector into a probability over the whole vocabulary: a guess at the next word. We don’t want a word. We want a verdict.

So strip that last layer off and bolt on a new one: a single linear layer that collapses the final vector down to one scalar. That number is the reward. Feed in a prompt and an answer, get back r(x, o) — how good this answer is for this prompt. That whole machine is the reward model.

The old head fanned out to every word; the new head funnels to a single score. The training panel adjusts two independent scores directly to illustrate how the loss responds to their gap.

The new layer starts with random weights — at first the score is noise. We have to teach it.

We already know the shape the scores should obey. Reuse it, but with the learned rewards in place of the hidden ones:

P(o_w beats o_l | x) = sigmoid(r(x, o_w) − r(x, o_l))

For one preference pair — winner o_w, loser o_l — we want that probability to be high. The loss is just the negative log of it:

L = −log sigmoid(r(x, o_w) − r(x, o_l))

This is the same cross-entropy idea used elsewhere in training: increasing the preferred answer’s score relative to the rejected answer lowers this pair’s loss. Average the loss over the judgments and run gradient descent. With shared model weights and many training pairs, one update need not improve every pair or move each score in a particular direction.

This is the pairing rule turned into a teacher: it never needs a “correct score,” only which of two answers won.

Go deeper: why one number is enough

The reward model need not output a calibrated quality on an absolute 0-to-10 scale. Adding the same constant to every reward leaves the loss unchanged because the differences stay the same. The size of a difference still matters: a gap of 1 predicts a preference probability of about 73%, while a gap of 4 predicts about 98%. The offset is arbitrary; the gap is more than a ranking.

Once you have a scorer, it pays off right away. Best-of-N: sample several answers from a model, score them all, keep the highest. Data cleaning: rate your training examples and toss the low-scoring ones.

But the real prize comes next: we point this critic at the model itself and let its scores reshape what the model writes.

Sources · 6
  1. Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models (3rd ed., draft of January 6, 2026). Stanford University. Ch. 9 (Post-training: Instruction Tuning, Alignment, and Test-Time Compute).
  2. Ziegler, D. M., Stiennon, N., Wu, J., Brown, T. B., Radford, A., Amodei, D., Christiano, P., & Irving, G. (2019). Fine-Tuning Language Models from Human Preferences. arXiv:1909.08593.
  3. Stiennon, N., Ouyang, L., Wu, J., Ziegler, D. M., Lowe, R., Voss, C., Radford, A., Amodei, D., & Christiano, P. (2020). Learning to Summarize from Human Feedback. Advances in Neural Information Processing Systems 33 (NeurIPS 2020). arXiv:2009.01325.
  4. Cui, G., Yuan, L., Ding, N., Yao, G., He, B., Zhu, W., Ni, Y., Xie, G., Xie, R., Lin, Y., Liu, Z., & Sun, M. (2024). UltraFeedback: Boosting Language Models with Scaled AI Feedback. ICML 2024. arXiv:2310.01377.
  5. Cao, Y., Kang, Y., Wang, C., & Sun, L. (2024). Instruction Mining: Instruction Data Selection for Tuning Large Language Models. First Conference on Language Modeling (COLM 2024). arXiv:2307.06290.
  6. Bradley, R. A., & Terry, M. E. (1952). Rank Analysis of Incomplete Block Designs: I. The Method of Paired Comparisons. Biometrika, 39(3/4), 324-345.

Full bibliography →

Definition

Read the full glossary entry →