# Making deep networks trainable

> From the learning rule itself to the tricks that took networks from a few layers to more than a hundred.

Page: https://mralbu.github.io/ai-datasets/t/deep-nets-trainable
Timeline: https://mralbu.github.io/ai-datasets/timeline?track=deep-nets-trainable
Categories: Foundations, Vision

Backpropagation said how to train a network with hidden layers, but for two decades deep ones trained badly. Each step here removed one obstacle: signals that faded at the wrong initial scale, too little data and compute, overfitting, learning rates tuned by hand, activations whose scale drifted in training, and finally depth itself.

## Sequence

- **1986 · Step 1:** [Backpropagation](https://mralbu.github.io/ai-datasets/p/backprop.md) — Gave networks a way to learn their hidden layers, though deep stacks would train poorly and slowly for two more decades.
- **1998 · Dataset:** [MNIST](https://mralbu.github.io/ai-datasets/d/mnist.md) — 70,000 handwritten digits, 28×28 grayscale, 10 classes.
- **2009 · Dataset:** [CIFAR-10](https://mralbu.github.io/ai-datasets/d/cifar10.md) — 60,000 tiny 32×32 color images in 10 classes.
- **2009 · Dataset:** [ImageNet (ILSVRC)](https://mralbu.github.io/ai-datasets/d/imagenet.md) — 1.28 million photos across 1,000 classes, the dataset behind the deep learning boom.
- **2010 · Step 2:** [Xavier initialization](https://mralbu.github.io/ai-datasets/p/xavier-init.md) — Deep networks stalled from standard random starts; scaling initial weights to each layer's width kept signals from vanishing or exploding.
- **2012 · Step 3:** [AlexNet](https://mralbu.github.io/ai-datasets/p/alexnet.md) — Good starts alone did not make deep nets win; ReLUs, two GPUs and 1.2 million labeled photos did, by a wide margin.
- **2014 · Step 4:** [Dropout](https://mralbu.github.io/ai-datasets/p/dropout.md) — Networks that large memorized their training data; randomly silencing units, as AlexNet did, works like averaging many thinner networks.
- **2014 · Step 5:** [Adam](https://mralbu.github.io/ai-datasets/p/adam.md) — Plain gradient descent needed its learning rate tuned for every problem; per-weight step sizes made one default setting work almost everywhere.
- **2015 · Step 6:** [Batch normalization](https://mralbu.github.io/ai-datasets/p/batch-norm.md) — Training still crawled at low learning rates as activation scales drifted; normalizing activations per mini-batch allowed much higher rates and less careful initialization.
- **2015 · Step 7:** [ResNet](https://mralbu.github.io/ai-datasets/p/resnet.md) — Even with normalization, deeper plain networks trained worse than shallow ones; identity shortcuts made 152 layers train better than 34.
