Zenaique
Part ofAI Product Manager·Week 3: Strategy & EvaluationView roadmap →

What is RLHF, and why is it used after pretraining?

MCQ·Easy·4.7 · 174·~1 min·Asked atFlowiseRedis·Relevant atAnyscaleDeepseekFireworks AiLambda Labs
Attempt it
TL;DR

RLHF, Reinforcement Learning from Human Feedback, trains a reward model on human preference labels and uses RL to align the LLM with what humans prefer.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Imagine training a comedian. Pretraining is them reading every joke book ever written. They know lots of jokes but they don't know which ones land. Then you put them on stage in front of an audience. The audience picks the funnier joke from each pair: this one or that one. You train a judge that learned the audience's taste from all those picks. Now you put the comedian back on stage to tell jokes. The judge scores each one, and the comedian adjusts to score higher. That's RLHF. The audience is the human labelers. The judge is the reward model. The comedian getting tuned is the LLM. Pretraining gives the model knowledge; RLHF teaches it which responses humans want.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

RLHF (Reinforcement Learning from Human Feedback) is the post training process that turned the raw next-token predictors of 2020-2021 into the helpful assistants of 2022 onward. The InstructGPT paper made it standard; ChatGPT made it widely known.

Option B is the correct answer: RLHF uses human preference labels to align model outputs with what people prefer. It is not a pretraining regularizer (A), a tokenization speed-up (C), or a way to encode anything in the embedding space (D).

RLHF has a clean three-stage structure: SFT, reward model, RL. The term has since broadened to cover several related techniques.

The gap RLHF closes

Pretraining optimizes one thing: predict the next token of internet text. The objective is cross-entropy on a giant token-prediction task. It works very well at giving the model knowledge, world models, and a sense of how language flows.

It does not work at making the model helpful.

Next-token prediction rewards mimicry. If a pretrained model is asked 'what's the capital of France?', a high-likelihood completion might be 'Good question, let's see if you know...'. The reason is that this quiz show pattern appeared in its training data. The model isn't broken. It's predicting what comes next in the text distribution. The text distribution doesn't reflect 'what a helpful assistant would say'.

RLHF closes this gap by introducing a different signal: human preference. Instead of optimizing 'what's likely to come next', the model optimizes 'what humans prefer to see'. The objective changes from imitation to alignment with stated preferences.

Stage 1: Supervised fine-tuning
Stage 2: Reward modeling
Stage 3: RL fine-tuning
RLHF as an umbrella term
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • InstructGPT (2022) was the OpenAI paper that demonstrated PPO-based RLHF. OpenAI described ChatGPT as a sibling model trained with the same methods.
  • Anthropic's Constitutional AI paper used AI feedback against a written constitution for harmlessness labels, while keeping human labels for helpfulness.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QWhat goes wrong without the KL leash to the SFT reference?
A

The policy reward-hacks. Outputs that maximize the reward model's score drift far from natural language. They become repetitive, off-distribution or gibberish. KL keeps the policy in the SFT region where the reward model's predictions are calibrated.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Saying RLHF teaches the model new facts. It teaches preferred behavior (helpfulness, harmlessness, format), not new world knowledge.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • The three pipeline stages and what each accomplishes

  • Why pretraining alone doesn't produce a helpful assistant

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
PPO vs DPO, what's the practical difference?
Flashcard·Medium