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
Track this field on the map

From Neurons to Networks

  1. 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

  2. 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

  3. 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

  4. 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

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. 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

  1. PyTorch training loop

    Forward → loss → backward → optimizer step → zero gradients, wrapped with Dataset/DataLoader for batching.

    Build · Easy · 1 problem

  2. 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

  1. 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