Non-linearities' Impact on Gradient Flow Opacity
Non-linear activations like Sigmoid and Tanh can cause vanishing gradients, where error signals diminish drastically through layers, making early layers hard to train and obscuring which inputs influence outputs. Conversely, ReLU can lead to exploding gradients if not properly handled, creating unstable training and an opaque understanding of weight updates.
The top 3
- Sigmoid's Vanishing Act: The Original Gradient Blocker: Early deep neural networks struggled with sigmoid and tanh activation functions because their derivatives, which peak at 0.25 and 1 respectively, caused gradients to shrink exponentially across many layers, effectively stopping learning and obscuring input influence.
- ReLU's Silent Killers: How Dead Neurons Mask Learning: While Rectified Linear Unit (ReLU) functions help mitigate vanishing gradients, they introduce the 'dying ReLU' problem where neurons consistently output zero for all inputs due to negative weighted sums. This effectively 'kills' the neuron, preventing any gradient updates and creating permanent opacity in parts of the network.
- Exploding Gradients: Non-linearities' Unruly Amplification: Non-linear activation functions, especially when combined with large weights in deep networks, can cause gradients to grow exponentially during backpropagation. This 'exploding gradient' phenomenon leads to unstable training, numerical overflow (NaN/Inf), and makes the model's learning process unpredictable and opaque.
Sources
Open the full topic