What is reinforcement learning from human feedback (RLHF)?
Reinforcement learning from human feedback is a training method in which people rank or rate model outputs, and the model is then trained to produce the kinds of answers people preferred.
Also called: RLHF, preference tuning
How it works
First, a model produces several answers to the same prompt. Human raters compare them and mark which is better. These preferences train a separate reward model that predicts how a person would rate any answer.
The main model is then trained to produce answers that score well with the reward model. Related methods skip the separate reward model and learn from the preference pairs directly, but the idea is the same: shape behavior around human judgment rather than just next-word prediction.
Why it matters for trust and safety
Much of what makes an assistant helpful and polite, and much of its refusal behavior, comes from this stage. It is one of the main ways model makers teach a model to decline harmful requests, such as writing malware or a phishing kit.
These safety behaviors are learned, not hard rules. A determined user can sometimes get around them with a jailbreak, and fine-tuning can weaken them. Systems that rely on a model should keep their own guardrails.
Known side effects
- Models can learn to sound confident and agreeable because raters liked that, even when they are wrong.
- Rater bias and unclear guidelines carry into the model.
- The model may optimize for what looks good to raters rather than what is true.
What it means for risk teams
When a model is used for review or scoring, its friendly tone should not be read as accuracy. Test it on your own labeled cases and measure how often it is right, rather than trusting how sure it sounds.
Related terms
- Fine-tuningFine-tuning is further training of an existing model on a smaller, task-specific dataset so it performs better on that task or follows a particular style or format.
- Jailbreak (AI jailbreak)A jailbreak is a prompt or series of prompts written to make an AI model ignore its safety rules and produce output its builders meant to block.
- Guardrails (AI guardrails)AI guardrails are checks placed around a model that limit what it accepts, says or does, such as input filters, output filters and limits on tool use.
- Foundation modelA foundation model is a large AI model trained on broad data that can be adapted to many tasks, such as chat, classification or summarization, without training a new model from scratch.
- AI evaluation (evals)AI evaluation, often called evals, is the practice of testing an AI model or system on defined tasks and metrics to measure quality, safety and fitness for use.