Appendix F: Further Reading
local graph
Appendix F: Further Reading
Section titled “Appendix F: Further Reading”Appendix F — Further Reading
A curated path into the primary literature, organized by the parts of this book. These are the sources to read next; the repository implementations in Appendix A are their practical counterparts. Where a work is widely known by a short name, that is used.
| Topic | Key reading |
|---|---|
| The transformer | Vaswani et al., “Attention Is All You Need” (2017) |
| GPT and scaling | Radford et al. (GPT-2); Brown et al. (GPT-3); Kaplan et al. (scaling laws) |
| Compute-optimal scaling | Hoffmann et al., “Chinchilla” (2022) |
| RoPE | Su et al., “RoFormer” (rotary embeddings) |
| Normalization / activations | Zhang & Sennrich (RMSNorm); Shazeer (GLU variants) |
| Tokenization | Sennrich et al. (BPE); Kudo (Unigram / SentencePiece) |
| Table F.1 — Foundations and the transformer (Parts I–III) |
| Topic | Key reading |
|---|---|
| Mixture-of-Experts | Shazeer et al. (sparsely-gated MoE); DeepSeekMoE; Mixtral |
| DeepSeek architecture | DeepSeek-V2 (MLA), DeepSeek-V3 technical reports |
| Multi-token prediction | Gloeckle et al. (2024) |
| Efficient attention | Dao et al., “FlashAttention” (1 and 2); DeepSeek-V3.2 (DSA) |
| Long context | Position Interpolation; “YaRN” (Peng et al.) |
| Distributed training | Shoeybi et al. (Megatron-LM); Rajbhandari et al. (ZeRO) |
| Low precision | Micikevicius et al. (mixed precision); the DeepSeek-V3 FP8 recipe |
| Table F.2 — Modern architecture and training (Parts IV–V) |
| Topic | Key reading |
|---|---|
| RLHF | Christiano et al. (preferences); Ouyang et al., “InstructGPT” |
| DPO | Rafailov et al., “Direct Preference Optimization” (2023) |
| Reasoning RL | Shao et al., “DeepSeekMath” (GRPO); DeepSeek-R1 report |
| LoRA / QLoRA | Hu et al. (LoRA); Dettmers et al. (QLoRA) |
| Distillation | Hinton et al. (knowledge distillation) |
| Quantization | Frantar et al. (GPTQ); Lin et al. (AWQ) |
| Serving | Kwon et al., “PagedAttention / vLLM” speculative decoding (Leviathan et al.) |
| Multimodal & agents | Liu et al. (LLaVA); the ReAct line of work |
| Table F.3 — Alignment, reasoning, and serving (Parts VI-VII) |
Beyond papers, the most valuable ongoing resources are the technical reports that accompany each major open model release — they document real, working systems at frontier scale — and the source code of the repositories in Appendix A, where the ideas in this book appear in their deployed form. Read a report, then read the code that implements it; that pairing, more than any single paper, is how the field is best learned. You now have the foundation to do exactly that.
Key Works by Topic
A compact map of the literature behind the book, organized by where each work lands in the story. Titles are given so they can be found directly; the contribution column says why each matters. This is a starting trail, not a survey — each of these cites the others.
| Work | Introduced | Chapter |
|---|---|---|
| Attention Is All You Need | the transformer | 7, 8 |
| GPT / GPT-2 / GPT-3 papers | decoder-only scaling, in-context learning | 1, 4, 10 |
| RoFormer | rotary position embeddings (RoPE) | 9 |
| FlashAttention | IO-aware exact attention | 7, 27 |
| Switch Transformer / GShard | scaling mixture-of-experts | 11 |
| Mamba | selective state-space models | 37 |
| Table F.1 — Foundations and architecture |
| Work | Introduced | Chapter |
|---|---|---|
| Scaling Laws for Neural LMs | predictable returns to scale | 1, 17 |
| Training Compute-Optimal LLMs | the Chinchilla data/parameter balance | 17, 30 |
| Megatron-LM | tensor and pipeline parallelism | 19 |
| ZeRO | optimizer-state sharding | 19 |
| LoRA / QLoRA | parameter-efficient fine-tuning | 22 |
| Table F.2 — Training, scaling, and efficiency |
| Work | Introduced | Chapter |
|---|---|---|
| InstructGPT | RLHF for instruction following | 23 |
| Direct Preference Optimization | DPO | 24 |
| DeepSeekMath | GRPO | 25 |
| Chain-of-Thought Prompting | eliciting step-by-step reasoning | 38 |
| Constitutional AI | RL from AI feedback | 42 |
| DeepSeek-V3 / R1 reports | the architectures dissected here | 44, 45 |
| Table F.3 — Alignment, reasoning, and the case studies |
Two reading strategies serve different goals. To understand why the field arrived where it is, read roughly in the order of the tables — the transformer, then scaling, then the efficiency and alignment work that made scale practical and useful. To understand a specific system, start from its technical report (the DeepSeek-V3 and R1 reports are unusually complete) and follow its citations backward into the foundations. Either way, the works above are the load-bearing ones; the literature is vast, but these are the papers the rest of this book is, in effect, an extended commentary upon.
Broader Learning Resources
This book is focused on building a specific kind of model; these resources fill in surrounding background — the deep-learning foundations beneath Part I, and complementary treatments of the transformer — for readers who want them. Titles are given so they can be found directly.
| Resource | What it offers |
|---|---|
| “Deep Learning” (Goodfellow, Bengio, Courville) | the foundational ML textbook |
| “Dive into Deep Learning” (d2l.ai) | an interactive, code-first textbook |
| “The Illustrated Transformer” | a visual introduction to attention |
| Karpathy, “Neural Networks: Zero to Hero” | building nets and a GPT from scratch |
| Stanford CS224N | a university NLP-with-deep-learning course |
Table F.4 — Foundations and complementary treatments
These complement rather than duplicate the present book. The foundational textbooks cover the machine-learning bedrock — optimization, generalization, the mathematics of Chapter 2 — in far more depth than Part I’s brisk review; the visual and from-scratch treatments offer a second angle on the transformer of Part II, which many readers find clarifying precisely because seeing the same idea explained differently is how understanding consolidates. The advice of Section 32.7 applies here too: read primary sources for the frontier (Tables F.1–F.3), and use resources like these to shore up whatever foundations a given chapter assumed you already had.