liveBook · Manning

Preference

As explained in Deep Learning with Python, Third Edition

The relative ranking of candidate responses by people according to what is more helpful or desirable.

Preference ranks candidate responses by how helpful or desirable people find them. In RLHF, rankings translate human judgment into training data without requiring people to write every ideal response. section 16.4.1

Ranking responses

Given one prompt and several possible answers, evaluators rank them from most helpful to least helpful. A reward model learns from these rankings and assigns a single floating-point score to each prompt-response pair; higher scores represent stronger preference. section 16.4.1

How Deep Learning with Python, Third Edition covers it

How deep it goes
Defines ranking-based data collection and reward modeling, then sketches score-based filtering without deriving the training loss.
Examples
Uses ranked prompt responses and a generate-score-filter-fit loop as concrete illustrations.
What it assumes
Assumes familiarity with supervised fine-tuning while establishing why handwritten output alone is insufficient.
What you can do after
Evaluate how human rankings can supervise a reward model and guide response selection.
How it connects
Connects supervised fine-tuning, reinforcement learning from human feedback, reward models, and Transformers.

Also explained in

Compare how 3 books explain preference →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Deep Learning with Python, Third Edition. The section links point to the parts of the book it draws on.