What Is RLHF and How Does It Shape Model Behavior? (ANSWERED)
Model question on RLHF — SFT, reward model, PPO alignment, and how human preferences change helpfulness vs hallucination trade-offs.
TL;DR — Quick Answer
RLHF aligns LLMs with human preferences after pretraining. Typical pipeline: (1) Supervised Fine-Tuning (SFT) on high-quality demonstrations, (2) train a reward model from human comparisons of outputs, (3) optimize the policy with RL (often PPO) to maximize reward while staying close to the base model (KL penalty). RLHF improves helpfulness, instruction-following, and safety tone but does not eliminate hallucinations — it optimizes perceived quality, not factual verification.
The Interview Question
What is Reinforcement Learning from Human Feedback (RLHF)? Explain how it shapes LLM behavior after pretraining.
Deep Explanation
Pretraining vs alignment
Sign in to unlock full answer
Get deep explanations, PDF export & all LLMs questions
- 9 more sections of deep explanation
- Real-world examples
- Common mistakes
- Interviewer expectations
- Follow-up questions
RLHFAlignmentSFTPPOHuman FeedbackOpenAIAnthropicGoogle