Skip to content

Track T36

Neural Building Blocks

Layers, backprop, convolution, recurrence, attention and graphs, one piece at a time.

Unit 1Layers and gradients

· 3 lessons
  1. 1The multilayer perceptron, layer by layerBuild a dense network from affine layers and activations, name every shape, count its parameters, and read what a trained one does and doesn't promise.Applied · 12 min
  2. 2Backpropagation through layers, and how to check itFollow the gradient backward through a dense network one layer at a time, see what the backward pass must remember, and verify hand-written gradients with central differences.Applied · 14 min
  3. 3Starting weights and activationsWhy a network's starting weights are scaled to the layer width, how sigmoid, tanh, ReLU and GELU shape the gradient, and how signals vanish or explode in deep stacks.Applied · 12 min

Unit 2Normalization and regularization

· 3 lessons
  1. 4Batch, layer and RMS normalizationThree layers that standardize activations along different axes. See which numbers each one averages over, why batch norm behaves differently in training and prediction, and where CodeSplash's learners use each.Applied · 13 min
  2. 5Dropout and stochastic depthRegularize a network by switching off random units, or whole residual branches, while it trains. See why the kept values are rescaled and why prediction turns the noise off.Applied · 12 min
  3. 6Mixup, CutMix and label smoothingThree ways to train on softened targets — blended rows, pasted image patches and smoothed labels — what each does to the loss and to confidence, and which CodeSplash runs.Applied · 13 min

Unit 3Convolutional networks

· 5 lessons
  1. 7Convolution: kernels, padding, stride and poolingThe arithmetic of a convolutional layer — what a kernel computes, how padding and stride set the output size, how few weights sharing needs — and the LeNet layout every later CNN extends.Applied · 14 min
  2. 8Going deeper: AlexNet, VGG and InceptionThree networks that made CNNs deep. AlexNet's ReLU and dropout, VGG's stacks of small kernels, and Inception's side-by-side branches, each reduced to the one idea worth keeping.Applied · 12 min
  3. 9Residual and dense connectionsWhy adding a block's input back to its output let networks reach hundreds of layers, how DenseNet concatenates instead of adding, and what each costs in memory.Applied · 12 min
  4. 10Efficient CNNs: MobileNet, EfficientNet and ConvNeXtCheaper convolutions and better scaling. Depthwise separable layers, scaling depth, width and resolution together, and a ResNet rebuilt with Transformer habits.Applied · 13 min
  5. 11Per-pixel and multi-scale: U-Net and feature pyramidsNetworks that answer for every pixel, or for objects of every size. U-Net's encoder–decoder with skip connections, and the feature pyramid's top-down path inside modern detectors.Advanced · 12 min

Unit 4Sequence models

· 4 lessons
  1. 12Recurrent networks and backpropagation through timeA network that reads a sequence one step at a time with the same weights, how its gradient travels back through every step, and why plain recurrences forget.Applied · 13 min
  2. 13Gated memory: LSTM and GRUHow forget, input and output gates let an LSTM keep information for many steps, how the GRU does it with two gates, and how they compare with a plain recurrence on the same forecast.Applied · 14 min
  3. 14Sequences without backprop through time: TCN and ESNTwo other routes to memory. Dilated causal convolutions that see far back in a few layers, and a fixed random reservoir whose readout is one ridge regression.Applied · 13 min
  4. 15State-space layers: S4 and MambaA linear state-space system turned into a sequence layer. How discretization turns it into a recurrence, why the same layer is also one long convolution, and what Mamba's input-dependent steps add.Advanced · 14 min

Unit 5Attention and graphs

· 5 lessons
  1. 16Attention and the Transformer blockScaled dot-product attention from queries, keys and values; why the scores are divided by √d; multi-head attention; and the full Transformer block, run on a table by the FT-Transformer.Applied · 15 min
  2. 17Order matters: positional encodingsAttention by itself ignores the order of its tokens. See that permutation equivariance in code, then the ways Transformers put order back — learned, sinusoidal and relative positions — and why a table needs none.Applied · 12 min
  3. 18Lab: verify attention masksA lab with no training. Prove a causal mask blocks the future with an intervention test, check permutation equivariance, then add padding masks and handle rows with every key masked.Advanced · 20 min
  4. 19Transformers for images and long inputs: ViT, Swin, Perceiver, MixerFour answers to "how do I feed this to a Transformer?" Cut an image into patch tokens, attend inside shifted windows, squeeze a long input through a few latents, or drop attention for two small mixing networks.Advanced · 15 min
  5. 20Message passing: GCN, GraphSAGE, GAT, GIN and MPNNOne framework for graph layers — gather messages from neighbors, aggregate, update — and the four classic choices inside it. Compute each layer by hand, run them on a network, and see why more layers can blur every node into the same.Advanced · 16 min

Unit 6Making it work

· 3 lessons
  1. 21Shape contracts: catching silent tensor bugsMost neural-network bugs don't crash. Name every axis, check shapes where data enters and between layers, and learn the three silent traps — broadcasting, flatten order and channel layout.Applied · 12 min
  2. 22Debugging with training curvesRead a network's training and validation loss like a diagnosis. Match each curve shape to its usual cause, run the two sanity checks every new network deserves, and know what early stopping does and doesn't tell you.Applied · 13 min
  3. 23A complete MLP workflow, end to endEverything a network run must pin down to be trustworthy — the data boundary, the model and optimizer state, the selection rule and the evaluation — assembled into one workflow, then run in Predict.Applied · 16 min