Back to LLMs Mind Map
中文·English
LLMsID: rlhf-pipeline

RLHF 3-Stage Pipeline

RLHF 三阶段
🎯Core Definition
RLHF (Reinforcement Learning from Human Feedback) is the 3-stage pipeline for aligning LLMs to human preferences: ① SFT instruction tuning; ② reward model (RM) training on human-labeled preference pairs via the Bradley-Terry model P(ywylx)=σ(r(x,yw)r(x,yl))P(y_w \succ y_l | x) = \sigma(r(x, y_w) - r(x, y_l)) — the RM models relative preference, not absolute scores; ③ PPO optimization with a KL-penalized reward r=rϕ(x,y)βlog(πθ(yx)/πref(yx))r = r_\phi(x,y) - \beta \log(\pi_\theta(y|x)/\pi_{\text{ref}}(y|x)).
💡Use Cases
the final stage of LLM training, aligning pretrained + SFT models to human values (helpfulness, harmlessness, honesty); the standard paradigm pioneered by InstructGPT and adopted by ChatGPT, also used for style and safety alignment.
Key Problems Solved
SFT alone cannot express preference direction (which of two answers is better) and overfits easily; RLHF drives policy exploration with an explicit reward signal, robustly matching human preferences on open-ended generation.
🎯5 High-Frequency Exam Points
1
Walk through the 3 stages of RLHF: inputs, outputs, and objectives of each stage?
2
How is the reward model trained? The Bradley-Terry loss and training data format?
3
Why is the KL penalty βlog(πθ/πref) needed in the PPO stage? What happens without it?
4
Why does the RM model preference rather than absolute scores? What is reward hacking?
5
Compare RLHF vs DPO: pipeline, cost, and stability differences?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "RLHF 3-Stage Pipeline"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardSoft Prompts / AdaptersNext CardPPO Clipped Objective

🔗 More LLMs Knowledge Cards

Agent & Tool CallingAlignment Tax & Preference DataScaled Dot-Product AttentionAttention Variants MHA/MQA/GQA