Target function Network prediction Active neuron Dead neuron
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Dying ReLU: Watching Neurons Go Dark

A 24-neuron hidden layer trains live, in your browser, to fit a wiggly target curve using ordinary gradient descent. Every neuron is drawn as a 3D bar that rises and falls with its own activation, turning red the instant its pre-activation drops below zero for every training example at once — the exact moment a plain ReLU neuron's gradient becomes zero and it can never update again. Push the learning rate or the initial weight scale up and watch a chunk of the layer die within seconds; dial in a Leaky ReLU slope and see previously "dead" bars flicker back to life as a small negative-side gradient starts flowing through them again.