The assembly line for taste — how a click becomes a gradient
RLHF is a four-stage factory. An SFT model (fine-tuned on examples) generates candidate outputs; humans rank pairs of them; a reward model is trained to predict those rankings; then RL nudges the policy toward high-reward outputs, which get sampled and ranked again. Watch data pulses flow through it — then make the labelers sloppy and see what reaches the far end.
Click a stage to see what it does. Green pulses are correctly-ranked comparisons; red ones are mislabeled — and everything downstream of the human stage inherits them.
You are the labeler — pick the better answer
This is the actual job thousands of human contractors did to build modern chatbots. Two toy answers to the same question; click the one you prefer. The answers vary in four hidden traits — correctness, confidence, concision, politeness — and every click you make becomes one row of preference data that will train the reward model in EP 03. Aim for at least 8 clicks.
The answers are template-built toys, but your preference data is real — it is stored on this page and used verbatim to train the reward model below. "Skip" mirrors real labeling guidelines: ambiguous pairs are dropped, not guessed.
A copy of your taste — watch the reward model fit your clicks
A reward model is just a trainable function that scores an answer, fit so that your preferred answer scores higher in each pair (a Bradley–Terry model, the same math InstructGPT used). This one has four weights — one per trait. Hit train and watch gradient descent pull the weights toward whatever you actually clicked in EP 02.
If you labeled fewer than 5 pairs above, 12 careful synthetic labels are added so training has something to chew on — go click more pairs to make the weights truly yours.
The policy chases your reward — watch it shift live
Now the RL step. The policy starts as a uniform distribution over 16 answer styles (every combination of the four traits). Each step it samples an answer, asks your reward model from EP 03 how good it was, and nudges probability toward what scored well — a miniature REINFORCE loop. The bars are the policy's live probabilities.
Garbage in, garbage aligned — poison your own pipeline
The pipeline faithfully amplifies whatever the labelers do — including their mistakes. Run all three labelers below: each one generates 40 preference pairs, trains a fresh reward model, runs the full RL loop, and shows you what the final policy actually says. Same machinery every time; only the human differs.
Each run is the whole EP 02 → 03 → 04 pipeline compressed: 40 labels, 80 training epochs, 600 RL steps — all computed live in this tab.