Library
Deep Learning

Deep learning and craft

Deep Learning

Ian Goodfellow, Yoshua Bengio and Aaron Courville · MIT Press · 2016

The argument

Deep learning is presented as a field with its own mathematical foundations, not a bag of tricks. Goodfellow, Bengio and Courville build the subject in three layers: the applied math and machine learning basics you need first, the deep network techniques that work in practice today, and a research frontier of probabilistic and generative models. The through line is that deep networks learn layered representations from data, and that most of the craft is in regularizing and optimizing them well.

How the book is built

  1. 01

    Applied math and machine learning basics

    Chapters 2 to 5

    Linear algebra (from tensors to eigendecomposition, SVD and PCA), probability and information theory (including Bayes' rule and structured probabilistic models), numerical computation (overflow, conditioning, gradient-based and constrained optimization), and machine learning basics. Chapter 5 is the one to reread: capacity, overfitting and underfitting, hyperparameters and validation sets, bias and variance, maximum likelihood, Bayesian statistics, stochastic gradient descent, and the challenges that motivate deep learning.

  2. 02

    Deep networks: modern practices

    Chapters 6 to 12

    The working core. Chapter 6 covers feedforward networks: learning XOR, gradient-based learning, hidden units, architecture design and back-propagation. Chapter 7 is regularization (parameter norm penalties, dataset augmentation, noise robustness, early stopping, bagging, dropout, adversarial training). Chapter 8 is optimization for training deep models, including basic algorithms, initialization, adaptive learning rates and approximate second-order methods. Chapter 9 covers convolutional networks, Chapter 10 sequence modeling with recurrent and recursive nets (LSTM and gated RNNs, long-term dependencies), Chapter 11 practical methodology, and Chapter 12 applications in vision, speech and NLP.

  3. 03

    Practical methodology

    Chapter 11

    Short and the most directly useful for an engineer. It covers choosing performance metrics, starting from default baseline models, deciding whether to gather more data, selecting hyperparameters, debugging strategies, and a worked example of multi-digit number recognition.

  4. 04

    Deep learning research

    Chapters 13 to 20

    Linear factor models, autoencoders, representation learning, structured probabilistic models, Monte Carlo methods, confronting the partition function, approximate inference, and deep generative models. These chapters cover Boltzmann machines, deep belief networks, directed generative nets and how to evaluate generative models. Chapter 15 on representation learning (transfer learning, distributed representations, exponential gains from depth) is the bridge to modern pretrained models.

Concepts worth keeping

Capacity, overfitting and underfitting

A model fits the training data and has to generalize to new data. Chapter 5 frames training as managing capacity against data, and gives validation sets and hyperparameters as the control knobs.

Back-propagation as differentiation

Chapter 6 presents back-propagation as an application of the chain rule on a computational graph, which is why modern frameworks can differentiate arbitrary compositions of operations.

Regularization as a toolbox

Chapter 7 lists regularizers side by side: norm penalties, augmentation, noise, early stopping, parameter sharing, sparse representations, ensembles, dropout and adversarial training. They are different ways to encode prior beliefs.

Optimization is not pure optimization

Chapter 8 starts from how learning differs from pure optimization: the real goal is test performance, and the loss is a surrogate. It then covers the practical difficulties of neural network training.

Convolution as a strong prior

Chapter 9 treats convolution and pooling as an infinitely strong prior, which explains why parameter sharing and local connectivity suit images and other grid-like data.

Distributed representations and depth

Chapter 15 argues that distributed representations and depth give exponential gains in what a model can express compared with local representations.

What the author concludes

The closing chapter of the book evaluates generative models and ends the research part. The book's own message is that deep learning rests on old ideas in statistics, optimization and neuroscience, that the practical recipe is now fairly well understood (Part II), and that Part III lists the open research problems in modeling and inference. It is a 2016 snapshot, and it says so by being organized around what was known then.

Limits to keep in mind

  • It was published in 2016, so transformers, large language models, diffusion models and modern scaling practice are not covered. Its sequence modeling chapter is about recurrent networks.
  • Part III is research oriented and heavy on probabilistic models (Boltzmann machines, partition functions) that are rarely used in production today.
  • It is a math-first text. For hands-on code, pair it with a practical book such as Hands-On Machine Learning or Deep Learning with Python.

What I take into AI engineering work

  • Read Chapters 5, 7, 8 and 11 as a debugging guide: most failed training runs trace back to capacity, regularization, optimization or evaluation choices.
  • Use the practical methodology chapter as a checklist: pick a metric, build a default baseline, decide whether more data would help, then tune and debug.
  • Keep the optimization chapter in mind when a loss curve looks wrong: initialization, learning rate schedule and conditioning are usually the cause.
  • Treat the generative chapters as background for how today's generative models relate to older latent-variable and energy-based ideas.

Sources

My note

The distinction that stands out is that generalization is a separate problem from fitting the training set, and regularization exists for that reason. The optimization chapters make the point that the choice of method decides whether a deep model trains at all. The practical methodology chapter reads as a guide to diagnosing a model before changing it.

Next bookHands-On Machine Learning