Width versus depth

With a fixed budget of parameters, should a network be wide or deep? Theory says depth can be exponentially better, experiments say shape often barely matters, and infinitely wide networks turn into kernels. Here is how all three are true at once.

45 min

After this lesson you can

  • State the universal approximation theorem and say precisely what it does not promise
  • Explain, with Telgarsky's folding construction, why depth can beat width exponentially
  • Read results from a matched-parameter experiment and say when width or depth wins
  • Explain vanishing gradients and why residual connections fix them
  • Define the neural tangent kernel, the lazy regime and µP, and say what each predicts as width grows

In this lesson

  1. One wide layer can represent anything — in principle
  2. Depth folds, width adds
  3. A matched-parameter experiment
  4. Why deep networks used to be hard to train
  5. Infinitely wide networks
  6. Feature learning at infinite width: mean field and µP
  7. Code: laziness in thirty lines
  8. The four questions

This lesson is part of Descent Pro

Descent Pro unlocks every lesson on the route, from base camp to the summit. Every plan starts with a free trial.

Descent Pro

Start your free trial to keep reading

This lesson, and every other lesson on the route, is part of Descent Pro. Every plan starts with a free trial, and students with a .edu email get longer. Cancel before the trial ends and you pay nothing.