← Back to list

How Neural Networks Learn: A Relay Race Story

The analogy that finally made backpropagation click

Spyros Georgopoulos in Towards Deep Learning · 2026-05-05 21:32 · 31 claps · 3.5 min read
#neural-networks #backpropagation #llm #data-science #deep-learning
Open on Medium ↗
Wiki topics: LLM · Large Language Models ML · Machine Learning SOC · Sociology & Politics EDU · Education & Learning 🔬 · Science · General

How Neural Networks Learn: A Relay Race Story

The analogy that finally made backpropagation click

Image generated with ChatGPT

Image generated with ChatGPT

If you spend enough time reading about Deep Learning, you will eventually hit a wall of intimidating terminology. Phrases like gradient descent, partial derivatives, and chain rule are thrown around as if everyone intuitively understands them.

But at its core, the engine that powers modern neural networks — backpropagation — is not a terrifying mathematical monster. It is simply a highly organized feedback loop.

Years ago, a senior Data Scientist I was working with shared an analogy with me that instantly demystified how neural networks learn. It completely removed the math and focused purely on the mechanics. If you want to finally understand backpropagation and never forget it, the analogy goes as follows: imagine a massive, chaotic relay race.

The Setup: The Obstacle Course

Imagine an enormous obstacle course. The course is divided into several stages (the Hidden Layers), and at each stage, there are checkpoints staffed by runners (the Nodes or Neurons). The paths connecting one checkpoint to the next represent the strength of the connections between them (the Weights). The goal of this team isn’t just to cross the finish line fast, but to deliver a highly specific, perfectly accurate result at the very end.

The Forward Pass: The Run

The starting gun fires. This represents your Input Data being fed into the network.

The first group of runners dashes forward to the next set of checkpoints. Based on their initial, completely untrained instincts, they choose certain paths over others. Some paths are heavily favored, while others are ignored. They pass the baton forward, layer by layer, checkpoint by checkpoint, until the final runners cross the finish line and deliver their result.

In machine learning, this is the Forward Pass. The network has made its prediction. Because the runners are inexperienced, this first prediction is almost certainly completely wrong.

The Loss Function: The Head Coach

Waiting at the finish line is the Head Coach. In a neural network, this is the Loss Function.

The Head Coach has a clipboard with the actual correct answer. They look at what the runners just delivered, compare it to what they were supposed to deliver, and calculate the exact difference.

“You brought me a blue baton,” the Head Coach says, “but I needed a red one. You missed the target by 80%.” That 80% miss is the Error. Now, the most crucial part of the process begins.

The Backward Pass: Passing the Feedback

The Head Coach doesn’t just yell at the final runner and hope for the best next time. To fix the team, the feedback must travel backward through the entire course. This is backpropagation (backward propagation of errors).

The Head Coach sends a message to the assistant coaches stationed at the final checkpoints. “We missed the mark by 80%. Who passed you the baton?”

The assistant coaches look at the runners who just arrived. They begin handing out rewards and punishments based on who contributed most to the failure (keeping in mind that not all runners are equally responsible).

Some made small mistakes, barely affecting the outcome. Others took completely wrong turns that significantly influenced the result. The coaches don’t just decide who was wrong; they also estimate how much each runner contributed to the error.

This is what makes the process so effective: every adjustment is proportional to responsibility.

  • Runner A, you took a path that led us in the wrong direction. We are restricting your path for next time. (Decreasing the weight)
  • Runner B, your path was actually bringing us closer to the goal, but you didn’t have enough influence. We are widening your path. (Increasing the weight)

These assistant coaches then turn around and shout the feedback to the coaches at the previous checkpoint. Layer by layer, moving backward from the finish line to the starting line, every single coach adjusts the paths and instructions for their runners.

The Next Epoch: Running it Again

Once the feedback has rippled all the way back to the start, the runners line up at the starting line again.

The gun fires. This is the next Epoch.

Because of the backward-flowing feedback from the coaches, the runners make slightly different choices this time. They favor the rewarded paths and avoid the punished ones. When they reach the finish line, the Head Coach checks the clipboard.

“Better,” the coach says. “We only missed by 60% this time.”

The process repeats. Forward pass, calculate the error, pass the coaching feedback backward, adjust the paths. Over hundreds or thousands of races, the teams strategy becomes flawlessly optimized. They eventually sprint through the course and deliver the exact resolt the Head Coach is looking for.

The Takeaway

When you scale this up to billions of runners and millions of races, you get the magic of modern AI. Every time your favorite LLM answers a question, it’s simply the result of trillions of tiny coaching sessions that happened during its training.

Backpropagation is the silent mentor behind every smart prediction. It’s not about being perfect from the start; it’s about having a system that is humble enough to look backward and learn from every single mistake.


메타데이터
post_id
4af7cd3d153d
slug
how-neural-networks-learn-a-relay-race-story-4af7cd3d153d
url
https://www.towardsdeeplearning.com/how-neural-networks-learn-a-relay-race-story-4af7cd3d153d
canonical_url
https://www.towardsdeeplearning.com/how-neural-networks-learn-a-relay-race-story-4af7cd3d153d
author_url
https://medium.com/@ownedbyphysics
status
ok
fetched_at
2026-07-09 18:09:57