liveBook · Manning

Chapter 1: Understanding reasoning models

What you will learn in chapter 1 of Build a Reasoning Model (From Scratch)

The chapter introduction motivates reasoning methods for complex LLM tasks and agents, and explains why the book uses checkable math examples while considering the costs of added reasoning machinery.

After this chapter you will be able to

Section by section

Introduction

The chapter introduction motivates reasoning methods for complex LLM tasks and agents, and explains why the book uses checkable math examples while considering the costs of added reasoning machinery.

Key terms: reasoning, statistical pattern recognition, multistep math problems, AI agents, use tools, recover from mistakes, math examples, check automatically, standard LLM, reasoning machinery

1.1 Defining reasoning in the context of LLMs

Defines LLM reasoning as generating intermediate steps and distinguishes those steps from deterministic logic and human thought.

Key terms: reasoning, reasoning model, intermediate steps, chain of thought (CoT), <think>...</think>, autoregressively, statistical patterns, symbolic logic engine, deterministic reasoning, thinking

1.2 Understanding the standard LLM training pipeline

Explains how conventional LLMs move from next-token pretraining to post-training for user-facing responses, and distinguishes an instruction-tuned model from a chatbot interface.

Key terms: pretraining, unlabeled text, next-token prediction, base models, token, tokenizer, numerical IDs, post-training, supervised fine-tuning, SFT

1.3 Improving LLM reasoning with training and inference techniques

This section explains three broad ways to improve an LLM’s reasoning—more computation at inference time, reinforcement learning, and distillation—and distinguishes reasoning-focused RL from RLHF.

Key terms: inference-time compute scaling, inference-compute scaling, test-time scaling, model weights, reinforcement learning, RL, rewards, trial and error, distillation, knowledge distillation

1.4 Pattern matching vs. logical reasoning

This section contrasts LLM pattern matching with rule-based logical reasoning, using a penguin example to show why premises and background knowledge must be distinguished.

Key terms: pretraining, next token, statistical associations, pattern matching, logical reasoning, premises, closed-world, open-world, background knowledge, inconsistency

1.5 Simulating reasoning without explicit rules

This section explains how LLMs can appear to reason through learned patterns rather than explicit logical rules, where that approach struggles, and how dedicated reasoning models refine it.

Key terms: probability-weighted patterns, statistical association, explicit contradiction checking, implicit pattern matching, novel, multistep logical relationships, reasoning models, intermediate steps, inference-compute scaling, post-training

1.6 Why build reasoning models from scratch?

The section explains when reasoning models are worth using, why they can cost more, and how building them from scratch helps clarify those tradeoffs.

Key terms: reasoning models, overthinking, tokens, forward pass, candidate solutions, verifier, from scratch, tradeoffs

1.7 A road map to building reasoning models from scratch

The section explains why the book starts with a pretrained LLM, evaluates changes to it, and distinguishes inference-time improvements from additional training.

Key terms: base LLM, pretrained, baseline, evaluation, inference-time methods, additional training, inference time, model weights, reasoning model

1.8 Summary

This summary recaps conventional LLM training, what LLM reasoning means and how it differs from explicit logic, and three broad ways to improve it.

Where this is used later

Concepts explained in this chapter

Chapter 2: Generating text with a pretrained LLM →

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.