Reinforcement learning with human feedback (RLHF) is a preference-tuning method that uses human rankings of model outputs to optimize a language model toward responses people prefer. Unlike pretraining and supervised fine-tuning, it optimizes complete responses rather than only next-token predictions. section 6.1.1 section 1.2
Implement RLHF as a two-stage workflow:
- Generate multiple candidate responses for each prompt, then collect human rankings or pairwise preferences. section 6.1.1
- Train a reward model, itself typically an LLM, to assign preference scores that reflect the collected rankings. section 6.1.1
- Generate target-model outputs, score them with the reward model, and update the target LLM with an RL objective that encourages preferred behavior. section 6.1.1
Choosing a laptop
For a programming-and-everyday-use prompt, one response lists many possible laptop features, while another prioritizes a fast CPU, at least 16 GB of RAM, an SSD, keyboard quality, and battery life. Human annotators may rank the second response higher because it is more concrete and tailored to the stated use case. section 6.1.1
RLHF requires an additional learned reward model, which can be expensive to train. RL with verifiable rewards (RLVR) replaces that model and human annotation with deterministic checks, such as mathematical answer verification, and therefore uses a simpler training loop. section 6.1.2













