liveBook · Manning

Chapter 3: Training overview

What you will learn in chapter 3 of Reinforcement Learning from Human Feedback

This introduction frames RLHF training as a multi-model process centered on optimizing a proxy for human preferences while limiting distance from a reference.

After this chapter you will be able to

What it builds on

Section by section

Introduction

This introduction frames RLHF training as a multi-model process centered on optimizing a proxy for human preferences while limiting distance from a reference.

Key terms: proxy reward, human preferences, distance-based regularizer, loss function, online optimization

3.1 Problem formulation

This section establishes the standard reinforcement-learning setup and objective that RLHF optimization builds on.

Key terms: agent, policy, state, action, reward, transition (dynamics), trajectory, trajectory distribution, initial state distribution, transition probability

3.1.1 A simple example: The thermostat

The thermostat example makes the parts of a reinforcement-learning task and its trial-and-error learning loop concrete.

Key terms: state, action, reward, policy, transition, trial and error, episodes, RL loop

3.1.2 Classic RL example: CartPole

CartPole illustrates the standard RL setup through a continuous-state control task in which an agent learns to balance a pole with corrective pushes.

Key terms: state, action, reward, episode, policy, dynamics/transition, deterministic, cumulative reward

3.1.3 Manipulating the standard RL setup

This section explains how RLHF adapts the standard reinforcement learning setup for language models by using a learned reward model and treating a prompt and its completion as a single, undiscounted episode.

Key terms: reward model, human preferences, environmental reward function, prompt, completion, episode, rollout, state transitions, response-level reward, discount factor

3.1.4 Fine-tuning and regularization

This section explains why RLHF fine-tunes an already-capable model with regularization and how a KL penalty limits movement from its starting policy.

Key terms: pretrained base model, initial policy, regularization, Kullback–Leibler (KL) divergence, reference policy, KL budget, beta

3.1.5 Optimization tools

This section identifies the main post-training optimization tools and explains how instruction fine-tuning fits into their usual training sequence.

Key terms: reward modeling, rejection sampling, policy gradients, direct alignment algorithms, pairwise preference data, scalar reward, instruction fine-tuning, preselected examples, question-answer format

3.1.6 Subtle advantages of RL in post-training language models

This section explains why RL remains valuable for post-training language models despite simpler, less infrastructure-intensive alternatives.

Key terms: RL-based methods, instruction tuning, direct preference optimization (DPO), RL losses, rough edges, robust, surgically, prompt distribution, Tülu 3

3.2 Canonical training recipes

This section explains how canonical RLHF and post-training recipes reflect their time and how post-training recipes have grown more complex.

Key terms: post-training, optimization steps, training algorithms, training datasets, evaluations, canonical recipes, data practices, model abilities

3.2.1 InstructGPT

Describes the three-stage InstructGPT post-training recipe and the role of each stage.

Key terms: base language model, instruction tuning, reward model, RLHF, instruction-tuned checkpoint

3.2.2 Tülu 3

The section places Tülu 3 in the context of increasingly multistage post-training and explains what each of its three stages contributes.

Key terms: post-training, training stages, training iterations, Tülu 3, instruction tuning, on-policy preference data, RLVR

3.2.3 DeepSeek R1

This section outlines DeepSeek R1’s staged reasoning-model post-training recipe and notes a common variation that uses polished instruction data before RL.

Key terms: cold start, R1-Zero, RLVR, rejection sampling, SFT, mixed reinforcement learning, instruction datasets, chain-of-thought sequences, RL

3.3 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 2: A tiny history of RLHF Chapter 4: Instruction fine-tuning →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.