Neural networks learn composed functions from data. The useful mental model is: layers apply differentiable transformations, nonlinearities make the composition expressive, and backpropagation assigns credit to parameters through the computation graph.
Core sequence:
- The Artificial Neuron - the basic affine-plus-nonlinearity unit.
- Activation Functions - nonlinearities that make stacked layers more expressive than one linear map.
- Softmax - turns logits into a categorical distribution.
- Backpropagation - computes gradients through the network using the chain rule.
- Weight Initialization - sets initial parameter scales so signals and gradients do not explode or vanish immediately.
- Batch Normalization - normalizes activations using batch statistics.
- Layer Normalization - normalizes features within each example, common in transformers.
- Dropout - randomly masks activations during training as regularization.
- Residual Connections - add skip paths that make deep networks easier to optimize.
- Convolutional Neural Networks - use local filters and weight sharing for spatial data.
- Recurrent Neural Networks - process sequences through recurrent state.
- LSTM and GRU - gated recurrent architectures that reduce vanishing-gradient problems.
- Embeddings - learned vector representations for discrete objects.
How the pieces fit:
- Neurons, activations, and softmax define the forward computation.
- Backpropagation and optimization define how parameters change.
- Initialization, normalization, dropout, and residual connections stabilize or regularize training.
- CNNs and RNNs add architectural bias for images and sequences.
- Embeddings let discrete tokens, categories, or IDs participate in continuous optimization.
Core equations to keep active:
- Neuron:
- Softmax:
- Cross-entropy loss:
- Backpropagation pattern:
- Batch normalization:
- Residual block:
- Dropout mask: with
- Embedding lookup:
See also: Calculus and Optimization, Classical Machine Learning, Transformers and LLMs