Skip to content
AI & Machine Learning Rich #backprop#gradients#chain-rule

Backpropagation: Gradients Flow Backward

Loss at the end. Gradients propagate backward via the chain rule, updating each weight.

A free, animated backpropagation: gradients flow backward you can read here or embed on any website, from Scrollchart.

Backpropagation: Gradients Flow Backward

Backpropagation: Gradients Flow Backward

Forward pass on top, backward pass underneath. Loss at the output triggers dL/d(output) = error, which propagates backward through each layer via the chain rule. Local gradients (dz/dW, dz/db, dz/dx) multiply with upstream gradients. Each weight gets its update direction. The compute graph is shown both forward (activations cached) and backward (gradients flowing).

Good for

  • Backprop tutorials
  • Autograd implementation walkthroughs
  • CS deep-learning courses

Source & accuracy

This backpropagation: gradients flow backward is an editorial illustration built to represent the concept accurately. Where it shows figures, they are typical or representative values chosen to make the relationship clear, not a single underlying dataset. The diagram and its explainer are reviewed and maintained centrally, and updated over time as understanding improves.

How gradients flow backward through layers

Backpropagation is the algorithm that trains neural networks. During a forward pass, activations flow layer by layer from input to output, eventually producing a loss. The backward pass inverts this flow: gradients flow from the loss backward toward the input. At each layer, the chain rule breaks the gradient of the loss with respect to that layer's weights into the gradient of the output with respect to the weights times the gradient of the loss with respect to the output. This product is computed at each layer, updating the weights in the direction that reduces loss most steeply.

Why understanding gradient flow matters

Gradients compound through layers, which can cause them to vanish (become very small) or explode (become very large) in deep networks. Vanishing gradients mean early layers barely update, so the model cannot learn meaningful low-level patterns. Exploding gradients can cause weight updates to overshoot and destabilize training. Modern architecture choices like residual connections and layer normalization exist to stabilize gradient flow across depth. Understanding backprop also explains why activation function choice matters: activations with large gradients in the active region allow information to flow; those with tiny gradients create bottlenecks.

Embed this diagram

Add this animated backpropagation: gradients flow backward to your own site. Copy one line of HTML, or use the embed builder for theme and sizing options.

Reference

What this is
A free, embeddable, animated backpropagation: gradients flow backward for any website.
Who uses it
AI/ML blogs, CS educators.
How to embed
Copy one line of HTML. No signup. No watermark. Works in WordPress, Webflow, Ghost, Substack, plain HTML.
File size
iframe embed, ~80 KB gzipped (loads on demand, does not block your page paint).
License
Free forever. Editorial explainer text included; updated centrally over time.

Embed format options

Copy the universal HTML snippet, the WordPress shortcode, or an iframe fallback - see the WordPress plugin page for details. Any format keeps the same Core Web Vitals profile and the same explainer text.

Embed snippet
<div data-scrollchart="backprop-flow" data-scrollchart-v="1"></div>
<script src="https://scrollchart.com/embed.js" async></script>

Frequently asked questions

Where can I get a free animated "Backpropagation: Gradients Flow Backward" for my website?
Scrollchart provides "Backpropagation: Gradients Flow Backward" as a free, embeddable animated diagram you can add to any website with one line of HTML. No signup is required and there is no watermark. The diagram and its explainer text are served from scrollchart.com, so the embed stays current without any maintenance on your end.
How do I embed a backpropagation: gradients flow backward in a developer or tech blog?
Copy the one-line snippet from the Scrollchart diagram page and paste it into your post HTML. It works in any static site generator, CMS, or hand-coded HTML page. The embed is a thin loader, not an iframe, so the content is fully in your DOM.