Grades 9–12
Forward, Backward, Update
The three steps every modern AI repeats billions of times as it trains.
How did AI get so good?
Every AI tool you used this week was trained the same way: three steps, repeated billions of times.
Forward pass
Push the inputs through the network to make a prediction.
Back propagation
Measure the error and send it back through the network.
Weight update
Nudge every weight to make the next error smaller.
Today you'll do all three by hand.
High School · Grades 9–12
Key vocabulary
- Hidden layer
- Nodes between the inputs and the outputs. Their values are worked out, never given.
- Weighted sum
- Each value coming into a node times its connection's weight, added together.
- Forward pass
- Working out every node's value, layer by layer, from inputs to outputs.
- Error
- The output value minus the target value.
- Back propagation
- Sending the error back across each weight, so every node knows its share of the mistake.
- Learning rate
- A small number that sets how big each weight update is.
- Gradient descent
- Training by moving every weight a small step in the direction that makes the error smaller.
High School · Grades 9–12
Step 1
Forward through the middle
Each node works out a weighted sum: each input times its weight, added together. Predict each middle node, then the output.
High School · Grades 9–12
Step 2
Send the error back
The network predicts $20. The musician really collected $23.
error = output - target
The input values never receive an error, because nothing can change them.
High School · Grades 9–12
Step 3
Update a weight
2 classes take part. The network predicts 3 bags of cans, but the target is 6. The learning rate is 0.02.
High School · Grades 9–12
Finished early?
Find the learning rate
At a learning rate of 0.2, this network's weights blow up.
- Watch it train at 0.2. What goes wrong?
- Try the other learning rates, and record what each one does.
- Find the one that settles.
What goes wrong above it? And below it?
High School · Grades 9–12
Discussion
- Why does the error travel back across the weights, rather than straight to every node?
- Why is the adjustment subtracted?
- What went wrong with a learning rate of 0.2?
- Large AI models have billions of weights. What changes, and what stays the same?
High School · Grades 9–12
Exit ticket
A weight of 4 connects an input of 3 to an output with a target of 10. The learning rate is 0.1.
- What is the output?
- What is the error?
- What is the adjustment?
- What is the new weight?
High School · Grades 9–12
Same three steps, billions of weights
The AI tools you use were trained by these same three steps, forward, backward, update, on far more data.
The scale changes. The arithmetic doesn't.
Keep exploring at iinnoo.app
High School · Grades 9–12