AI Logic

Glossary

Dying Neuron Problem

Updated:

On the left, a network (from bottom to top: input layer, hidden layer 1, hidden layer 2, output layer) in which some hidden-layer neurons have died: they are drawn as dashed circles labeled "0", and their connections are dashed as well. On the right, what happens inside a single neuron. The left column is the forward pass (bottom to top: input x, weighted sum z is negative, activation function such as ReLU, output is always 0); the right column is backpropagation (top to bottom: gradient from the layer above, multiplied by the activation's slope of 0 so the gradient becomes 0, gradients of w and b are also 0 so the weights are not updated). A box at the bottom lists when the problem tends to occur and the remedies: He initialization and a smaller learning rate.

Explanation

The dying neuron problem is a phenomenon in the training of neural networks where neurons that use an activation function such as the ReLU function permanently output only 0.

When this happens, the gradient of the affected neuron becomes 0, and its weights are no longer updated by backpropagation. In other words, a neuron that has died once stays unresponsive for the rest of training, which significantly reduces the expressive power of the network. When the problem occurs frequently in deep networks, it can degrade the performance of the whole model or hinder convergence.

The dying neuron problem is most often caused by the following factors: a learning rate that is too large, inappropriate weight initialization, or input data biased toward negative values. Under these conditions, inputs are more likely to fall into the negative region of the ReLU function, and more outputs become stuck at 0.

The main countermeasures are to use a well-designed weight initialization method such as He initialization and to set the learning rate relatively small, which prevents the dying neuron problem.

FAQ

Q. What is the dying neuron problem?
A.

The dying neuron problem is a phenomenon in which some neurons in a neural network permanently output zero during training and stop contributing to further learning. This reduces the expressive power of the network and can hurt model performance.

Q. What causes the dying neuron problem?
A.

The main causes include inappropriate weight initialization, a learning rate that is too large, and the properties of the activation function (the ReLU function is identically 0 in the negative region, which leads to the dying ReLU problem).

Q. How can the dying neuron problem be prevented?
A.

It can be prevented by adopting He initialization, or by using activation functions that keep a small gradient for negative inputs, such as Leaky ReLU and Parametric ReLU.