Purpose
These notes treat deep learning as a modeling discipline, not just a list of branded architectures. The section starts with neural networks from first principles, then moves to the design choices that matter before the first training run, then covers the main architecture families that recur across language, vision, sequence modeling, and generative modeling.
The goal is not only to say what each model is. The goal is to make the implementation and the math line up. Most notes include:
- the forward equations
- the backpropagation view or training objective
- a small NumPy implementation that exposes the mechanics
- a more idiomatic PyTorch implementation, often with
einopsfor shape clarity
Reading Path
- Neural Networks from Scratch
- Modeling, Architecture, and Data
- Recurrent Neural Networks
- Convolutional Neural Networks
- Decoder-Only Transformers
- Encoder-Decoder Transformers
- Diffusion Models
- Graph Neural Networks
Notes
- Foundations: neural networks from scratch
- Design choices: modeling, architecture, and data
- Sequence models:
- Vision and generative models:
- Structured domains: graph neural networks
Executable Companions
- Neural networks from scratch includes an MNIST training experiment and a separate manual-gradient check against autodiff.
- Recurrent neural networks includes a character-level WikiText-2 experiment.
- Decoder-only transformers includes a small causal language-model training and attention experiment.