Language models

What is RLHF (reinforcement learning from human feedback)?

In short

RLHF (reinforcement learning from human feedback) is a training step where people rate an AI model's answers, and the model learns to give the kind of answers people prefer. It turns a raw text predictor into a helpful assistant.

A model trained only on internet text can continue any text but is not good at following instructions politely and safely. In RLHF, people compare pairs of answers, a separate model learns their preferences, and the main model is trained to score well with that judge.

Mini course

3 short lessons, about 2 minutes in total

  1. From text predictor to assistant
  2. How the feedback works
  3. Side effects to know

Lesson 1

From text predictor to assistant

After its first training, a language model is a powerful autocomplete. Ask it a question and it might continue with more questions, because that is what it saw online. To make it a useful assistant, it is first shown examples of good conversations, then refined with human feedback.

RLHF was a key step behind the jump in usefulness when ChatGPT launched in 2022.

Lesson 2

How the feedback works

The model writes several answers to the same prompt. Human raters pick which is better, following guidelines on helpfulness, honesty and safety. Thousands of these choices train a reward model, which predicts what people would prefer. The main model is then trained to produce answers the reward model scores highly.

Feedback loop
People rate answers
Reward model
People rate the model's answers, those ratings train a judge, and the judge steers the model toward helpful, honest and safe replies

Tap a box to open that concept

Newer methods also use AI judges guided by written principles, which scales the process.

Lesson 3

Side effects to know

Because the model learns what raters liked, it can pick up their biases: agreeing with the user, sounding more certain than it is, or refusing borderline requests. Model makers work to reduce this, but it explains some habits you will notice.

  1. Customers find youHow customers and AI tools find the companySEOGEOGoogle AI Overviews
  2. AI in daily workTools staff and customers useChatbotAI copilotVoice AI
  3. Building blocksHow AI connects to data and systemsRAG (retrieval-augmented generation)AI agentMCP (Model Context Protocol)
  4. AI modelsThe models that understand and createRLHFLarge language model (LLM)Generative AIMachine learning
  5. DataCompany data, gathered and cleanedData warehouseETLData quality
  6. InfrastructureCloud, networks and systems underneathCloud computingDatabaseAPI key
Trust and rulesSecurity, law and control in every layerGDPR and AIEU AI ActAI guardrails
Where RLHF sits in a company's AI setup

Practical tip: ask the model to point out weaknesses in your idea, not just to review it. That counters its tendency to agree.

An everyday example

When an assistant answers your question directly, admits uncertainty and declines a harmful request, much of that behavior was shaped by human feedback during training.

How companies use it

Businesses do not run RLHF themselves, but it explains why assistants behave as they do: polite, cautious and eager to help, and why they sometimes agree too readily or refuse harmless requests.

Frequently asked questions

Who gives the feedback?

Trained raters hired by the AI company, and increasingly other AI models following written principles.

Does RLHF make models always right?

RLHF does not make models always right. It shapes style and behavior, and can even teach a model to sound confident because people like confident answers.

Is my feedback used for training?

Thumbs up or down in consumer apps may be used, depending on the provider's terms. Business plans usually exclude your data.

In depth: RLHF

The full picture, about 4 minutes of reading

From autocomplete to assistant

RLHF stands for reinforcement learning from human feedback. It is a training step that teaches an AI model to give the kind of answers people actually find helpful. It is one of the main reasons today's chat assistants feel like assistants and not like a strange autocomplete.

To see why it is needed, it helps to know how a language model starts out. In its first and largest training stage, called pre-training, the model reads a huge amount of text and learns to predict what comes next. The result knows a great deal, but it is not trying to help anyone. Ask it a question and it may answer, or it may continue with five more questions, because that is what it saw on some web forum. It might be rude, ramble or happily explain something harmful. RLHF is part of the process that turns this raw text predictor into a polite, focused helper.

The steps, one by one

The process usually comes after a first round of polishing called supervised fine-tuning, where the model is shown many examples of good conversations written by people, and learns to imitate them.

Then the feedback stage begins. The model is given a prompt and writes several different answers. Trained human raters compare them and pick which is better, following written guidelines on things like helpfulness, accuracy, honesty and safety. This is repeated across a very large number of prompts.

Those choices are used to train a second, separate model, called a reward model. Its only job is to predict which answer a human rater would prefer. Finally, the main model is trained further, using a method called reinforcement learning, to produce answers that this reward model scores highly. In effect, the reward model acts as a tireless judge that has learned the raters' taste, and the assistant learns to please it. A widely cited research paper from OpenAI describes this method for its instruction-following models.

What it changes

The effects of RLHF are visible in everyday use. Assistants answer the question that was asked instead of drifting. They follow instructions about format and length. They admit uncertainty more often than a raw model would. They decline clearly harmful requests. They write in a calm, friendly tone.

Much of what people mean when they say a model is "aligned", meaning that it behaves in line with what its makers and users intend, comes from this stage and similar methods.

It is worth knowing what RLHF does not do. It mostly shapes behavior and style. It does not add much new knowledge, which comes from pre-training, and it does not make the model's facts reliable. A model can be perfectly polite and still wrong.

Side effects you will notice

Because the model learns what raters liked, it can also pick up their blind spots. Several habits of AI assistants trace back to this.

Agreeing too easily. People tend to rate answers that agree with them higher, so models can lean toward telling you that your plan is good or your draft is strong. This is sometimes called sycophancy.

Sounding sure. Confident, well-structured answers often get higher ratings than hesitant ones, even when hesitation would be more honest.

Over-caution. Training against harmful answers can make a model refuse harmless requests that look similar, or bury a simple answer in warnings.

Length and padding. If longer answers were rated as more helpful, models learn to write more than needed.

Model makers work actively against these effects, and they have improved, but they explain some of the quirks people meet in daily use.

Newer variations

Human rating is slow and expensive, and people disagree. That has led to variations on the original idea.

Some companies now use AI feedback alongside human feedback. Another AI model rates or critiques answers by following a written set of principles, sometimes called a constitution, and humans check and steer the process. This makes it possible to give much more feedback and to make the rules explicit.

Other methods simplify the steps. Some skip the separate reward model and train the main model directly on pairs of preferred and rejected answers. Reasoning models add training on problems with answers that can be checked automatically, such as math or code, so the reward comes from being right, not only from being liked.

The names and details change quickly, but the core idea stays: show the model which answers are better, and train it to produce more like them.

What it means for a small business

Businesses do not run RLHF themselves. Knowing about it mainly helps staff use AI assistants with the right expectations.

Ask for criticism explicitly, since the model leans toward agreeing. Phrases like "list the three weakest points in this offer" or "argue against this plan" work better than "what do you think?". Ask for sources or the material behind a claim, since a confident tone is not proof. If a harmless request is refused, rephrase it with more context about why you need it.

Also check the data terms. In some consumer apps, thumbs up and down and conversations may be used for training, depending on the provider's settings. Business plans usually exclude your data from training, which is worth confirming before staff share company information.

Sources: Ouyang et al., Training language models to follow instructions with human feedback (arXiv)

Curious what this could mean for your company? Book a call.

Book a call