Deep Learning
Advanced
4.5
How RLHF Aligns Language Models
The technique that made chat assistants helpful and polite.
0h 20m
1 lesson
1.2K students
What You'll Learn
Learning objectives will be added soon.
Tutorial Content
From raw model to assistant
A base LLM just predicts text. RLHF (Reinforcement Learning from Human Feedback) shapes it into a helpful assistant.
The three steps
- Supervised fine-tuning on example conversations.
- Reward model — humans rank responses; a model learns to predict those preferences.
- RL optimization — the LLM is tuned to maximize the reward model's score.
Why it matters
RLHF (and newer variants like DPO) is why modern assistants follow instructions and refuse harmful requests. It also encodes the values of whoever provides the feedback — a key reason alignment is as much a social question as a technical one.
Your Progress
Sign in to track your progress
Tags
LLM
Fine-tuning
Ethics