Foundations — Forward propagation computation
Before you can read the forward-propagation page comfortably, you need to see what each symbol stands for. Below we take every letter, subscript, and shape from that page and build it from nothing — plain words first, then a picture, then why the topic needs it.
0. The absolute starting point: a number and a list of numbers
Everything in a neural network is made of numbers. A single number is called a scalar — just one value like or .
When we line several scalars up in a column, we get a vector. Think of it as a stack of numbers, one on top of the other.
The picture: look at the figure. The vector is drawn as a tall box with three stacked cells. The label (in red) points at the second cell from the top. That subscript is nothing more than a house-number telling you which cell.
Why the topic needs it: the network's input (an image, a row of measurements) arrives as a vector. The subscript lets us talk about "the -th input" without drawing the whole stack.
1. The summation symbol — "add up a whole list"
The parent page writes . The tall symbol (Greek capital sigma) is just shorthand for "add these up as counts from to ."
Why the topic needs it: a neuron may have thousands of inputs. Writing is absurd. packs it into one tidy symbol.
2. The dot product — "how much do two lists agree, weighted?"
The heart of one neuron is . That specific pattern — multiply matching components, then add them all up — is so common it has its own name: the dot product.
The picture: the figure shows two stacks side by side — weights and inputs . Red arrows pair up cell with cell ; each pair is multiplied, then all the products drop into one box at the bottom and are summed. That single box is the dot product.
Why this tool and not another? We want a neuron to output a single "score" that grows when the input matches what the neuron cares about. Multiply-then-add is exactly the operation that measures weighted agreement: a weight says "how much do I care about input ," and is that input's contribution. No other simple operation captures "importance-weighted total" so directly.
See Matrix multiplication — the dot product is its single building block.
3. Weights and bias — the tunable knobs
The picture: the figure plots the weighted sum as a straight line through the origin (black), and as the same line slid upward by (red). Notice the black line is forced through the point : with no bias, zero input must give zero output. The red line is free to cross zero wherever it likes — that freedom is exactly what buys.
Why the topic needs the bias: without it, every neuron's "decision line" must pass through the origin, a severe and pointless restriction. The bias adds shifting to complement the weights' scaling.
4. Pre-activation (the "logit") vs activation
Two closely-named quantities appear everywhere. Keep them straight:
Why two names? Because the network needs both: is the "linear score," and is the "bent, usable output" that gets passed to the next layer. Backprop (see Backpropagation) treats them differently, so we never merge them.
5. The activation function — the "bend"
(Greek phi) is the name for any curve we push through. Its job is to be not a straight line, because straight lines are the one thing that would make a deep network useless.
The picture: three activation curves on the same axes, each with the red part highlighting its defining behaviour:
- ReLU — flat at zero for negative , then a straight ramp. It gates: negatives become .
- Sigmoid — an S-curve squashing everything into .
- tanh — an S-curve squashing into .
Why a nonlinear and not just the identity? If every were a straight line, stacking layers would collapse: is still one linear map. The bend is what lets the network draw curved boundaries. Full treatment in Activation functions and Universal approximation theorem; the failure mode of some curves is Vanishing and exploding gradients.
Recall Why can't we skip
? Without a nonlinearity ::: any number of linear layers multiply out into a single linear layer, so depth adds zero extra power.
6. The letter and — used inside softmax
The output page uses . Here is a fixed special number (Euler's number), and is the exponential function.
Why softmax uses it: to turn arbitrary scores (which can be negative) into positive, comparable weights, then divide by their total so they sum to — a probability distribution. Because is monotonic (bigger input → bigger output), the biggest score stays the most likely class. Details in Softmax and cross-entropy loss.
7. Matrices and shapes — , and the notation
One neuron is a dot product. A layer is many neurons at once, so we stack their weight-vectors into a grid of numbers called a matrix, written with a capital .
Why the shape must be : to turn an -long input into an -long output, the matrix must have columns (to line up with the input) and rows (one per output). Get this backwards and the multiply is illegal. See Matrix multiplication.
8. Superscripts in brackets: ,
The bracketed number on top, like (the Greek letter ell, just an index), names which layer a quantity belongs to. It is not a power.
9. The hat:
(read "y-hat") is the network's prediction — its guess for the true answer . The little hat is the universal symbol for "estimated / predicted."
How these feed the topic
Read top to bottom: numbers become vectors, vectors combine via dot products, dot products plus bias give , bending gives , stacking neurons gives matrices, labelling layers chains it all into forward propagation.
Return to the parent: Forward propagation computation.
Equipment checklist
Test yourself — you are ready when you can answer each without peeking.