Deep Learning book cover

Your technical library

Deep Learning

24 modules · 133 topics

About this book
Concepts · Deep Learning

Deep Learning

This course teaches neural networks end to end: how to design the computation, derive the path the gradient takes back through it, keep training stable at depth, and reason about compute, memory and data at scale — up to how today's language models are pretrained, served, adapted and evaluated. Depth is the point: attention, mixture of experts, the evidence lower bound, diffusion's training objective and the memory cost of the key–value cache are derived step by step, not summarised. It builds on Mathematics and Machine Learning and teaches none of its own mathematics.

It is a chain of problems. A linear model cannot learn its own features (neural networks as functions); a network's gradient must be computed (computing gradients); deep networks do not train until the signal is kept alive through them (training deep networks stably, optimisers for networks); and huge networks should overfit but do not (generalisation in over-parameterised networks). Convolutional networks, representation learning and sequence models before attention give images and sequences structure, and the transformer replaces recurrence with attention.

Then the cost of scale: compute and number formats, efficient attention, state-space and recurrent alternatives and mixture of experts. The language-model pipeline follows — pretraining language models, distributed training, inference, serving systems, model compression, adapting and grounding pretrained models with fine-tuning and retrieval, and inference-time reasoning. Generative models of continuous data and multimodal models go beyond text, evaluation and failure measures models honestly, and case studies close the course. A reader who wants only language models can skip most of the convolution module, continuous generative models and multimodal models.

133 topics across 24 modules, in dependency order.

This course teaches none of its own mathematics. Calculus, linear algebra, probability, optimisation and information theory live in Mathematics, and every lesson names the topics it needs under “Before this topic”. Reinforcement learning for language models — RLHF, DPO, GRPO, RLVR — belongs to the Reinforcement Learning course and is deliberately not covered here.

133 of 133 topics are authored; the rest are labelled planned and excluded from progress. Glossary and decision-guide entries cover the authored material and grow with the course.

Course map

Read at your own pace. Each topic is one continuous page; mark it done as you finish.

Start with 01.1 · The multilayer perceptron: learning the features instead of fixing themReview what you have finished