Skip to content
ImagineWorld

Appendix F: Further Reading

node_idnode-book_building-frontier-llm-from-scratch_appendix-f-further-reading
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_titleAppendix F: Further Reading
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

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.

TopicKey reading
The transformerVaswani et al., “Attention Is All You Need” (2017)
GPT and scalingRadford et al. (GPT-2); Brown et al. (GPT-3); Kaplan et al. (scaling laws)
Compute-optimal scalingHoffmann et al., “Chinchilla” (2022)
RoPESu et al., “RoFormer” (rotary embeddings)
Normalization / activationsZhang & Sennrich (RMSNorm); Shazeer (GLU variants)
TokenizationSennrich et al. (BPE); Kudo (Unigram / SentencePiece)
Table F.1 — Foundations and the transformer (Parts I–III)
TopicKey reading
Mixture-of-ExpertsShazeer et al. (sparsely-gated MoE); DeepSeekMoE; Mixtral
DeepSeek architectureDeepSeek-V2 (MLA), DeepSeek-V3 technical reports
Multi-token predictionGloeckle et al. (2024)
Efficient attentionDao et al., “FlashAttention” (1 and 2); DeepSeek-V3.2 (DSA)
Long contextPosition Interpolation; “YaRN” (Peng et al.)
Distributed trainingShoeybi et al. (Megatron-LM); Rajbhandari et al. (ZeRO)
Low precisionMicikevicius et al. (mixed precision); the DeepSeek-V3 FP8 recipe
Table F.2 — Modern architecture and training (Parts IV–V)
TopicKey reading
RLHFChristiano et al. (preferences); Ouyang et al., “InstructGPT”
DPORafailov et al., “Direct Preference Optimization” (2023)
Reasoning RLShao et al., “DeepSeekMath” (GRPO); DeepSeek-R1 report
LoRA / QLoRAHu et al. (LoRA); Dettmers et al. (QLoRA)
DistillationHinton et al. (knowledge distillation)
QuantizationFrantar et al. (GPTQ); Lin et al. (AWQ)
ServingKwon et al., “PagedAttention / vLLM” speculative decoding (Leviathan et al.)
Multimodal & agentsLiu 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.

WorkIntroducedChapter
Attention Is All You Needthe transformer7, 8
GPT / GPT-2 / GPT-3 papersdecoder-only scaling, in-context learning1, 4, 10
RoFormerrotary position embeddings (RoPE)9
FlashAttentionIO-aware exact attention7, 27
Switch Transformer / GShardscaling mixture-of-experts11
Mambaselective state-space models37
Table F.1 — Foundations and architecture
WorkIntroducedChapter
Scaling Laws for Neural LMspredictable returns to scale1, 17
Training Compute-Optimal LLMsthe Chinchilla data/parameter balance17, 30
Megatron-LMtensor and pipeline parallelism19
ZeROoptimizer-state sharding19
LoRA / QLoRAparameter-efficient fine-tuning22
Table F.2 — Training, scaling, and efficiency
WorkIntroducedChapter
InstructGPTRLHF for instruction following23
Direct Preference OptimizationDPO24
DeepSeekMathGRPO25
Chain-of-Thought Promptingeliciting step-by-step reasoning38
Constitutional AIRL from AI feedback42
DeepSeek-V3 / R1 reportsthe architectures dissected here44, 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.

ResourceWhat 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 CS224Na 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.