Preploop
Concepts
Neural Net + Backprop
Neural Foundations
epoch 0
Decision Boundary
no boundary yettrain a model to see the split
Loss
no loss yetpress play or step to train
Controls
Explainer
Selected: nothing
What & why

A neural net is just a stack of "multiply, add a bias, then bend" operations. Each layer takes the previous layer's outputs, mixes them with a matrix of weights, adds a bias, and squashes the result through a nonlinear activation. Stacking these lets the network compose simple features into complex ones. "Learning" means searching for the weights that make the output match the labels — and we do that by measuring how wrong we are (the loss) and rolling every weight a small step downhill on that loss surface. Backpropagation is the bookkeeping trick that tells us which direction is downhill for every weight at once: it is the chain rule applied layer by layer, reusing each layer's gradient to cheaply compute the layer before it.

Analogy

Think of a huge mixing board with thousands of knobs (the weights), and a meter showing how bad the current sound is (the loss). You can't hear which knob matters, so instead you ask: "if I nudge THIS knob a hair, does the meter go up or down, and how fast?" That sensitivity is the gradient. Backprop is the clever wiring that computes every knob's sensitivity in a single pass back from the meter, instead of wiggling each of the thousands of knobs one at a time.

Used in
  • Every modern deep-learning model — backprop is the universal training algorithm under CNNs, RNNs, and Transformers alike.
  • Image classification & vision (ResNet, EfficientNet) and object detection.
  • Tabular/business ML: fraud detection, churn, recommendation, ad ranking.
  • The foundation LLMs (GPT, Claude, Llama) are trained on at massive scale — same gradient descent + backprop, just billions of parameters.
  • Autodiff frameworks (PyTorch autograd, TensorFlow, JAX) are essentially industrial-strength backprop engines.