Feed a network an input, and it doesn't produce an answer by magic — it pushes that input straight through the whole structure, one layer at a time, each layer's output becoming the next layer's input, until a prediction pops out the other end. That single pass, start to finish, is called forward propagation — or just the "forward pass."
This is exactly what happens, right now, every single time a trained network is actually used. A spam filter reads an email and forward-propagates it to a spam/not-spam score. A self-driving car's camera feeds a frame in and forward-propagates it to "pedestrian" or "clear road." A voice assistant forward-propagates a slice of audio into the word it just heard. Whatever the task, the mechanism underneath is the same one you'll trace by hand on this page.
Every layer does exactly the same two-step job. First it takes the values arriving from the layer
before it (or the raw input, for the very first layer) and combines them into a
Second, it squashes that raw weighted sum through an
Repeat that "weighted sum, then activation" pair once per layer, feeding each layer's
There's nothing more to it than that — the whole network is one big function, built entirely by chaining these matrix multiplies and squashes together, layer after layer, until the last one produces the final answer.
Numbers make this concrete. Take a small network: 2 inputs, feeding a
hidden layer of 2 neurons using ReLU, feeding a single
output neuron using sigmoid (so the final answer reads like a probability). Say the
input is
Step 1 — the hidden layer's weighted sum. Multiply each row of
Step 2 — apply ReLU. ReLU passes positives through unchanged and clips negatives to zero:
Notice
Step 3 — the output layer's weighted sum. With
Step 4 — apply sigmoid. Squash that raw score into a probability:
Start to finish: the input
The name is a direction, not a decoration. Information flows strictly one way here — from the input end of the network toward the output end, never backward, and never sideways between neurons in the same layer. That one-way flow is exactly what makes forward propagation cheap: each layer only ever needs the finished output of the layer before it, so a whole network's prediction is just one clean pass from front to back.
That name also sets up a contrast worth remembering. Once the network is done predicting, training
it means sending information the opposite way — from the error at the output, backward
through the layers, to work out how every single weight should change. That reverse journey has its
own name,
Forward propagation is cheap and parallel — a few matrix multiplies — which is why a trained
network can label an image in milliseconds. Run a whole batch of inputs at once and it
becomes a single matrix–matrix multiply. But this only uses a network; it doesn't teach
it. For that we need to measure the error and send it backwards — first by mapping out the
Two things trip people up about the forward pass:
The exact hand-traced computation above — multiply, add, squash, repeat — is precisely what happens every time a photo app instantly draws a box around a face, or a voice assistant transcribes a sentence the moment you stop talking. A trained network's forward pass can run in a few milliseconds, even on a phone, because it's nothing more exotic than a cascade of matrix multiplications.
In the industry, running forward propagation on new, real-world data (after training is long finished) has its own name: inference. It turns out to be such a huge, separate engineering challenge — running billions of these forward passes a day, as cheaply and quickly as possible — that entire specialised chips exist purely to make inference fast, distinct from the chips used to train the network in the first place. Training happens once (or occasionally); a popular model's forward pass might run trillions of times over its lifetime, so shaving even a fraction of a millisecond off matters enormously at that scale.