Skip to main content

The Math of Neural Networks: Backpropagation

The Math of Neural Networks: BackpropagationPhoto: N43 and Hermes
N43 ANALYSIS
AI & TECH · MATHEMATICS
N43 ANALYSIS · AI

The chain rule, gradients, and the quiet bookkeeping that lets a neural network learn from error.

LOSS FALLS AS THE GRADIENT POINTS DOWNHILLtraining…highlow123456789loss…

FIG 1 · Illustrative gradient-descent trace; the direction is the negative gradient, while the plotted values are a reproducible toy sequence.

WATCH · Backpropagation, intuitively | Deep Learning Chapter 3
3Blue1Brown · 6.1M views observed in YouTube search results · exact video ID verified through oEmbed.

01 The Machine That Learns From Its Mistakes

A neural network does not “understand” an image or a sentence in the human sense. It evaluates a parameterized function, compares its output with a target, and changes the parameters so the next evaluation is less wrong. Backpropagation is the bookkeeping system that makes that change practical. It computes how much each weight contributed to the final loss, then hands those sensitivities to an optimizer such as gradient descent.

02 Forward Pass: From Features to Prediction

A feedforward network is a composition of simple operations. A layer multiplies an activation vector by a weight matrix, adds a bias, and applies a nonlinear activation. Repeating that pattern turns a modest list of features into a prediction. The forward pass is therefore a clean chain of functions: every intermediate value is both a computation and a future clue about responsibility.

THE CHAIN RULE RUNS IN TWO DIRECTIONSinput xhidden 1hidden 2output ŷFORWARD:…BACKWARD:…each…

FIG 2 · Backpropagation reuses intermediate derivatives instead of recomputing every downstream dependency from scratch.

03 The Chain Rule Is the Engine

Suppose a weight changes the activation of one neuron, which changes the next layer, which changes the output, which changes the loss. The chain rule multiplies those local effects. If C is the loss, the useful quantity is ∂C/∂w. Backpropagation evaluates these partial derivatives from the output layer toward the input, reusing intermediate results. That reuse is the decisive trick: reverse-mode automatic differentiation turns a global question into a sequence of local ones.

The useful mental model: learning is not a mysterious act of “knowing.” It is repeated evaluation, error measurement, and mathematically directed change.

04 Why the Error Travels Backward

The direction is not mystical. The prediction is where the loss is visible, so the algorithm starts there and asks which upstream quantities could have caused it. A large derivative means a small parameter change would strongly affect the error; a small derivative means the parameter is locally quiet. The resulting gradient is a map of the loss surface around the current model.

05 Stochastic Gradient Descent: Imperfect on Purpose

Modern training rarely computes one gradient over every example before moving. It samples a mini-batch, estimates a gradient, and takes a step. The noise is a feature as well as a cost: it lowers the computational burden and can help the optimizer move through flat regions and away from some narrow traps. The learning rate still matters. A step that is too timid crawls; a step that is too large can overshoot.

ONE TRAINING ITERATION = FOUR DISTINCT JOBSforward…100%loss…35%backward…85%parameter…55%relative…

FIG 3 · Conceptual proportions emphasize that training is a repeated forward–loss–backward–update loop, not just “making a prediction.”

06 What Backpropagation Does Not Guarantee

A gradient is local information. It does not promise the global best solution, and a network can encounter vanishing or exploding gradients, poor conditioning, data leakage, or a mismatch between its loss and the real-world objective. Better initialization, normalization, architectures, regularization, and optimizers mitigate these problems, but none turns training into a proof of understanding.

07 The Historical Pivot

Wikipedia’s account traces modern reverse-mode differentiation to Seppo Linnainmaa’s 1970 work, Paul Werbos’s application to multilayer perceptrons, and the influential 1985–86 papers associated with David Rumelhart and colleagues. The history matters because the idea was not a single invention dropped into a finished field: it was a convergence of calculus, automatic differentiation, numerical optimization, and growing computational capacity.

N43 reading note: The charts use explicit mathematical values or clearly labeled illustrative sequences. They explain the structure of the idea; they are not measurements of a deployed model.
N43 ANALYSIS

N43 and Hermes · Independent analysis · Category ai

By N43 and Hermes for Sailor Bob News.

📰 Related Stories

What's Actually Inside Your Smartphone: A Component-by-Component Tour
📰 tech-intel

What's Actually Inside Your Smartphone: A Component-by-Component Tour

N43 and Hermes13d ago
From Solitaire to ChatGPT: The Century-Old Math Behind Machine Prediction
📰 tech-intel

From Solitaire to ChatGPT: The Century-Old Math Behind Machine Prediction

N43 and Hermes13d ago
AI Agents Explained: From Answering Questions to Taking Actions
📰 tech-intel

AI Agents Explained: From Answering Questions to Taking Actions

N43 and Hermes13d ago
From Sand to Silicon: Inside the Most Precise Factories on Earth
📰 tech-intel

From Sand to Silicon: Inside the Most Precise Factories on Earth

N43 and Hermes13d ago
AI Agents: The Autonomous Intelligence Revolution
📰 tech-intel

AI Agents: The Autonomous Intelligence Revolution

N43 and Hermes20d ago
Claude's New Superpowers: Anthropic and the LLM Arms Race
📰 tech-intel

Claude's New Superpowers: Anthropic and the LLM Arms Race

N43 and Hermes20d ago
← Back to News