RLHF and preference tuning: how reinforcement learning from human feedback works
Published
RLHF, reinforcement learning from human feedback, trains a model on judgments about which of two responses is better rather than on a single ideal answer. It is how chat models learn to be helpful, follow instructions closely and decline what they should decline. Today the term covers a family of preference-tuning methods, from classic reward-model RLHF to direct methods such as DPO. This page explains the options and what a project needs.

RackShore makes introductions to post-training teams and GPU providers. You contract with them directly. Nothing on this page is an offer or a quote.
Why preference data, not just examples
Writing a perfect answer is hard. Saying which of two answers is better is much easier, for people and for automated judges. Preference data captures things that are hard to put into a single example: tone, how much detail to give, when to ask a clarifying question, and which mistakes matter most. It usually follows supervised fine-tuning, which gets the model into the right format first.
The main methods
| Method | How it works | Strengths | Watch out for |
|---|---|---|---|
| Reward model + PPO (classic RLHF) | Train a reward model on preference pairs, then optimize the policy against it with reinforcement learning | Flexible; the reward model can score new outputs during training | Most compute and engineering; reward hacking |
| DPO and related direct methods | Optimize the model directly on preference pairs, with no separate reward model or RL loop | Simpler and cheaper; stable | Limited to the pairs you collected; less exploration |
| Online or iterative preference tuning | Generate new responses from the current model, have them judged, train again, repeat | Keeps data on-policy; steady gains over rounds | Needs a reliable judge and a clean evaluation loop |
| RLAIF | Use a strong model, guided by written principles, to judge pairs instead of people | Scales cheaply; consistent | Judge bias; still needs human spot checks |
Many teams start with DPO on a few thousand pairs, then move to an iterative loop once the evaluation set shows where the model still loses.
Where preference data comes from
- Your users. Thumbs up and down, edits, regenerations and A/B choices in a live product.
- Expert annotators. Specialists who compare responses in law, medicine, finance, code or a given language.
- AI judges. A strong model with a rubric, checked against a human-labelled sample.
- Red teaming. Adversarial prompts with preferred safe responses.
Annotation quality decides the outcome. Clear guidelines, calibration rounds and agreement checks between annotators are worth more than raw volume.
What to prepare
- A fine-tuned starting model or an instruction-tuned open-weight model.
- A rubric that says what "better" means for your product, with examples.
- A source of comparisons: product feedback, an annotation budget, or an AI judge you trust.
- An evaluation set and win-rate tests against the previous checkpoint. See LLM evaluation.
- Data and safety rules for annotators, including what content they may see.
Compute
DPO costs roughly the same as a supervised run on the same data. Reward-model RLHF with PPO needs the policy, a reference model, a reward model and often a value model in memory at once, plus fast generation during training, so it typically needs several connected nodes. Teams size the job once they see the model and the data volume.
When to move to reinforcement learning
If your task has an answer that can be checked automatically, such as code that must pass tests or maths with a known result, reinforcement learning against verifiable rewards often beats preference tuning, because it does not depend on the quality of human labels.
Next step
Tell us the model, the behaviour you want to change and where your preference data will come from. We reply within 24 hours and introduce you to a team that runs RLHF and preference tuning, including annotation if you need it.
Planning a post-training project?
Tell us the model and the goal. We reply within 24 hours.