Deep Learning roadmap
Field 5 of 14. Work through the steps in order: each one explains an idea, points you to one thing to read and gives you a problem to build.
- Steps
- 14
- Problems
- 14
- Learn first
- Machine Learning
- Leads to
- Computer Vision, NLP, MLOps
From Neurons to Networks
The perceptron
A perceptron computes a weighted sum and outputs 1 if it passes a threshold. The perceptron convergence theorem guarantees it finds a separating line whenever one exists.
Theorem · Easy · 1 problem · case study
The XOR problem & multi-layer networks
A single perceptron can't learn XOR because no straight line separates it. Adding a hidden layer bends the space so it can.
Concept · Easy · 1 problem · case study
Activation functions
Non-linear activations (sigmoid, tanh, ReLU, GELU) let stacked layers represent curves. Without them, any depth collapses to one linear layer.
Concept · Easy · 1 problem
Universal approximation theorem
One hidden layer with enough units can approximate any continuous function on a bounded region. It says a network can represent the function, not that training will find it.
Theorem · Medium · 1 problem
Training Neural Networks
Computational graphs & backpropagation
Backprop applies the chain rule backwards through the graph of operations, reusing intermediate results, to get every weight's gradient in one pass.
Build · Medium · 1 problem
Autograd
An autograd engine records operations as they run and replays them backwards to compute gradients automatically. PyTorch's core is this idea.
Build · Hard · 1 problem
Softmax & cross-entropy
Softmax turns scores into probabilities; cross-entropy is the negative log-probability of the right class. Their combined gradient is simply p − y.
Build · Easy · 1 problem
Optimizers: SGD, momentum, Adam
Momentum smooths noisy gradients; Adam also scales each parameter's step by its recent gradient size. Adam is the default; good SGD can generalize better.
Build · Medium · 1 problem
Initialization & vanishing gradients
Gradients multiply through layers; if each factor is below 1 they vanish, above 1 they explode. Xavier/He initialization keeps signal variance stable.
Theorem · Medium · 1 problem
Normalization layers
BatchNorm normalizes each feature across the batch; LayerNorm across features of one example. Both make deep nets train faster and more stably.
Build · Medium · 1 problem
Regularization: dropout & weight decay
Dropout randomly zeroes units during training so the net can't rely on any one. Weight decay penalizes large weights. Both reduce overfitting.
Build · Medium · 1 problem
Deep Learning in Practice
PyTorch training loop
Forward → loss → backward → optimizer step → zero gradients, wrapped with Dataset/DataLoader for batching.
Build · Easy · 1 problem
Debugging training
Overfit one batch first, check the initial loss value, visualize inputs and predictions, change one thing at a time.
Build · Medium · 1 problem
Graph Neural NetworksElective
Graph neural networks
Each node updates its features by aggregating its neighbours'. Lets networks learn on molecules, social graphs and road maps.
Build · Hard · 1 problem · case study
Capstone project
Your own autograd engine, then an MLP and CNN trained on MNIST with it and with PyTorch