Overview

1 Introduction

RLHF emerged as a practical way to bring human preferences into AI systems, especially when the desired behavior is hard to specify directly. It gained major prominence with the rise of ChatGPT and large language models, but its roots extend back to earlier reinforcement learning applications. The chapter presents RLHF as part of a broader post-training toolkit for turning pretrained models into useful assistants, emphasizing that it is now one component of a larger family of methods rather than the whole story.

The core RLHF workflow is presented as a three-stage process: first, instruction fine-tuning teaches a model to answer in a question-and-answer format; second, a reward model is trained on human preference data to estimate which responses are better; and third, reinforcement learning uses that reward signal to improve the model’s outputs. The key intuition is that instruction tuning builds the basic structure of responses, while RLHF refines the model’s behavior at the response level, steering it toward answers that are more helpful, reliable, warm, and engaging. This makes RLHF especially valuable for shaping style and subtle preferences that are difficult to capture with simple supervised learning alone.

The chapter also argues that post-training can unlock much of a base model’s latent capability, much like refining a car chassis into a high-performance race car. While pretraining provides the raw potential, post-training makes that potential accessible in a form suited to interaction with users. The text acknowledges that RLHF is costly, complex, and vulnerable to issues like proxy rewards and over-optimization, but maintains that it remains central to modern model development. The book’s purpose is to explain these methods clearly, show how they fit together, and help readers understand both the mechanics and the broader significance of RLHF in the evolution of AI.

A rendition of the early, three stage RLHF process: first training via supervised fine-tuning (SFT, chapter 4), building a reward model (RM, chapter 5), and then optimizing with reinforcement learning (RL, chapter 6).
figure

Summary

  • RLHF incorporates human preferences into AI systems to solve problems that are hard-to-specify programmatically, and became widely known through ChatGPT’s breakout, which made the capabilities of language models more approachable.
  • The basic RLHF pipeline has three steps: instruction fine-tuning to teach the model to follow the question-answering format, training a reward model on human preferences, and optimizing the model with RL against that reward.
  • RLHF is known to primarily change the style, tone, and format of model responses – making them more helpful, warm, and engaging. But it’s not “just style transfer”: RLHF also improves benchmark performance, though over-optimization (e.g., excessive length or chattiness) can harm capabilities in other domains.
  • The elicitation theory of post-training suggests that base models contain latent potential, and post-training’s job is to extract and cultivate that intelligence into useful behaviors.
  • RLHF is one component of modern post-training, alongside instruction fine-tuning (IFT/SFT) and reinforcement learning with verifiable rewards (RLVR), used together in an intertwined manner to craft particular training recipes.

FAQ

What is RLHF and why did it become important?RLHF, or Reinforcement Learning from Human Feedback, is a way to bring human preferences into AI training. It became important because many real-world tasks are hard to specify with exact rules, so human preference signals can guide models toward more useful behavior. Its popularity grew rapidly with systems like ChatGPT and modern foundation models.
What problem does RLHF help solve?RLHF helps solve problems where the desired behavior is difficult to define precisely, but humans can still judge which outputs are better. This is especially useful for language models, where style, helpfulness, harmlessness, and other preferences are often subjective.
What are the three main stages of the basic RLHF pipeline?The basic RLHF pipeline has three stages: first, train an instruction-following model with supervised fine-tuning; second, collect human preference data and train a reward model; third, optimize the language model with reinforcement learning using the reward model as the signal.
How is RLHF different from supervised fine-tuning?Supervised fine-tuning mainly teaches the model to imitate examples and learn the basic format of instruction following. RLHF goes further by learning what kinds of responses humans prefer, so it can improve response quality, style, and behavior at the level of whole completions rather than just the next token.
What kinds of improvements can RLHF make to a language model?RLHF can make models more reliable, warm, supportive, engaging, and generally better aligned with human expectations. It can also help models produce responses that are more useful across different tasks and domains, not just more likely to match training examples.
Why is style considered important in RLHF?Style matters because it affects how information is received. A response can be technically correct but still feel blunt, confusing, or unpleasant. RLHF helps shape tone, format, and conversational behavior so the model feels more helpful and natural to use.
Why is RLHF considered more complex and costly than instruction tuning alone?RLHF usually requires collecting preference data, training a reward model, and running reinforcement learning, all of which add complexity, time, and compute cost. It can also be tricky because the reward model is only a proxy for human preference, which can lead to over-optimization or other issues.
What is the intuition behind post-training in this chapter?The chapter presents post-training as a way of eliciting useful behaviors already present in a pretrained model. The idea is that pretraining builds broad capability, while post-training reshapes that capability into a more useful form for conversation, instruction following, and human interaction.
What is the “elicitation theory of post-training”?The elicitation theory says that much of a model’s intelligence is already learned during pretraining, and post-training’s job is to draw it out and make it accessible. In this view, post-training does not create all the capability from scratch; it helps surface and organize what is already there.
How does this book position RLHF within the broader landscape of model training?This book treats RLHF as one major part of post-training, especially preference fine-tuning. It also explains related methods such as instruction tuning and reinforcement learning with verifiable rewards, since understanding RLHF requires seeing how these stages fit together in the full training process.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Reinforcement Learning from Human Feedback ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Reinforcement Learning from Human Feedback ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Reinforcement Learning from Human Feedback ebook for free