Save this video free

Reinforcement Learning with Human Feedback (RLHF), Clearly Explained!!!

StatQuest with Josh Starmer · 18:02 · Watch on YouTube

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

StatQuest with Josh Starmer explains Reinforcement Learning with Human Feedback (RLHF) as a method to align large language models (LLMs) like ChatGPT and DeepSeek with desired polite and helpful outputs, going beyond initial pre-training and supervised fine-tuning. RLHF involves training a reward model based on human preferences between model-generated responses, which then guides the LLM to produce better outputs for novel prompts without needing an excessively large, expensive supervised dataset.

Key takeaways

Chapters

0:00 Introduction to LLM Training: Pre-training and Alignment
12:16 Reinforcement Learning with Human Feedback (RLHF) - Preference Data Collection
16:48 Training the Reward Model and Final LLM Alignment

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 If you tell me what you like and what you don't like, I'll use that to train my model. Stack Quest. Hello, I'm Josh Starmer and welcome to Stack Quest. Today we're going to talk about reinforcement learning with human feedback and it's going to be clearly explained. This Stack Quest is brought to you by the letters A, B, and C. A always B Curious. Always B curious. Note before we begin, I want to mention that reinforcement learning with human feedback is almost always used to help train large language models like chat GPT and DeepSeek. So in order to provide context

0:48 for understanding reinforcement learning with human feedback, we'll also talk about how to train a large language model from scratch. If you just want to learn about reinforcement learning with human feedback without the context, you can skip ahead. Either way, you need to already be familiar with decoderonly transformers and back propagation. If not, check out the quests or my book on AI. And you should also be familiar with the essential concepts of how reinforcement learning works with neural networks. If not, check out the quest. Now imagine we wanted to build and train the next chat GBT or DeepSeek from scratch so that we could ask it a really important question. What is Stat Quest? And it would generate a polite and

1:39 helpful response. Stat Quest is an awesome YouTube channel for learning about AI. That means we need to learn how to train this untrained decoderonly transformer model. By untrained, we mean that all of the weights and biases in the model are just random initialization values. For example, if we gave this untrained model the prompt, what is stat quest? Then because the model is untrained, all it will generate is blah blah blah blah

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, StatQuest with Josh Starmer.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.