Fine-Tuning, and When Not ToLesson 43 of 84

Module 5 · Objectives beyond next-token prediction

RLHF and PPO, honestly

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 5 of 9 in this chapter

This chapter’s goalChoose between supervised fine-tuning, a preference method such as DPO or KTO, a verifiable-reward method such as GRPO, and continued pretraining, and state the data each needs, the memory each costs, and the way each is gamed.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

The pipeline that built the assistants

Reinforcement learning from human feedback is the method that turned base language models into the assistants people use. It has three stages:

  1. Supervised fine-tuning on demonstrations, to get a model that follows instructions at all.
  2. Reward model training. Collect preference pairs, train a model that takes a prompt and a response and returns a scalar. The standard loss is Bradley-Terry: maximise the probability that the chosen response scores above the rejected one. Architecturally the reward model is the language model with the token head replaced by a single linear output.
  3. Policy optimisation. Use PPO to maximise the reward model’s score, with a KL penalty against the SFT model to stop the policy drifting into nonsense that happens to score well.

Stage three is where the difficulty lives.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Running Models Yourself exam.

Stuck on something?Ask Rafael, your AI tutor

How to cite: Addaly (2026) ‘RLHF and PPO, honestly’, in Fine-Tuning, and When Not To. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/fine-tuning/rlhf-and-ppo-honestly (Accessed: 29 November 2026).