DEMO by Michele di Nuzzo
Backpropagation
MDN · LAB
BACKPROPAGATION
- x / t
- the input and the correct answer
- w₁ / b₁ / w₂ / b₂
- the weights of the tiny network
- Un passo di discesa (η = 0,5)
- one descent step: updates the weights against the gradient
- Torna all'esempio del libro
- back to the book’s example: restores the values of the worked example
- sigmoide / ReLU
- sigmoid or ReLU: the activation of the deep network
- strati
- layers: how many layers the deep network has
Backpropagation on the smallest possible network: an input, a hidden neuron with the ReLU and an output neuron with the sigmoid. On the left you move the weights and watch the values going forwards and the gradients going backwards, with the chain rule. On the right, a deep network: how much gradient reaches each layer. The lab’s interface is in Italian.
Things to try
- The worked example. All the gradients are negative: press “Un passo di discesa” (one descent step) and watch the loss go down.
- The dead neuron. Take w₁ to −0.5: only the gradient of b₂ remains.
- The vanishing gradient. Ten layers of sigmoids, then the ReLU: compare the first layer and the last.
The article: Backpropagation.
The demo is a single HTML file: download it and use it offline, even without an internet connection. Licence: CC BY-NC 4.0 — you may share it, crediting the author and this page, but not for commercial purposes.