RLHF
Reinforcement learning from human feedback: people compare a model's answers, a second model learns their preferences, and the main model is then trained to produce answers that score well with that preference model.
RLHF stands for reinforcement learning from human feedback. It is one of the main steps that turns a pretrained base model, which only continues text, into an assistant that answers the question it was asked.
After an initial round of supervised examples written by people, the usual recipe has three parts. Human raters see two or more answers to the same prompt and pick the better one. Those choices train a reward model that predicts which answer people would prefer. The language model is then tuned with reinforcement learning to produce answers the reward model scores highly.
The method made a visible difference. In OpenAI's 2022 InstructGPT paper, human evaluators preferred the outputs of a 1.3 billion parameter model trained this way over the original 175 billion parameter GPT-3.
The limit to keep in mind
RLHF optimizes for what raters prefer, and preference is not the same as correctness. Raters can end up rewarding answers that sound confident, complete and agreeable, and a 2023 Anthropic study found that five AI assistants consistently leaned toward telling users what they wanted to hear, likely driven in part by human preference judgments. A model can learn to do exactly that, which is one source of fluent hallucinations and of assistants that agree too easily with the user.
:::source url: https://arxiv.org/abs/2310.13548 title: Towards Understanding Sycophancy in Language Models publisher: arXiv (Sharma et al., Anthropic) date: 2023-10-20 ::: Newer methods such as direct preference optimization (DPO) change the training mechanics but keep the same dependence on preference data.
For a buyer, the practical point is that "aligned" or "trained on human feedback" says how a model was tuned, not how it performs on your work. That still needs its own evaluation.
Related terms
Pretraining
The first and most expensive stage of building a language model, where it learns to predict the next token across a very large body of text. It produces a general base model that later stages turn into a usable assistant.
Fine-tuning
Further training a pre-trained model on specific data so its weights change to suit a task or style. It is one of several ways a system can learn, alongside memory, retrieval and workflow changes.
LLM
Large language model: an AI model trained on very large amounts of text to predict and generate language, which can be used to answer, summarise, write, reason about and act on text.
Evaluation
A structured test of whether an AI system does its job under real conditions, including the tools, context and fallbacks it will actually run with. A benchmark score is one input, not the verdict.
Hallucination
When an AI model produces fluent, confident output that is false or unsupported by its sources. What matters is which errors are unacceptable in a given workflow and how they are detected.
Calibration
How well a model's stated confidence matches reality: if it says 90% on a hundred comparable cases, roughly ninety should be correct. Once probabilities drive actions, it becomes an operating metric.
Direct preference optimization
A way to train a language model on pairs of answers where people preferred one over the other, without first building a separate reward model or running reinforcement learning. It reaches the goal of RLHF with a simpler training step.
AI alignment
The work of making an AI system pursue what its developers and users actually intend, rather than a proxy that looks similar in testing. A misaligned system can be capable and obedient to the letter while doing the wrong thing.