How LLMs work, part 7: RLHF, PPO, GRPO, DPO and reasoning

Save is available to registered users — create a free account to save this article. 2 views

Summarize with AI

Fine-tuning teaches a model to copy good answers. Reinforcement learning teaches it which answers are actually better, and it is what made reasoning models like o1 and DeepSeek-R1 possible. This is the final part of our series on how LLMs work. You will learn how reinforcement learning works, how RLHF aligns a model with what people want, how the three main algorithms (PPO, GRPO and DPO) differ, and why reasoning is now the main way models get smarter.

Create a free account to read this article.

Create a Free Account

Sign up free to read this article and unlock access to all free content on Has Brains AI.

Create Free Account

Already have an account? Sign in

Did this land? Leave a reaction.

0 0 0 0 0 0 0 0 0 0 0 0

Discussion

0 comments

Members can join the discussion

Become a member to comment and reply to other members.

Become a Member

No comments yet

Be the first to start the discussion.

Go Member

Unlock the deep dives

Full source code and member-only articles. Free account, no card.

Create free account