Vanishing: gradients shrink as they are multiplied backward through many layers (common with sigmoid or tanh), so early layers barely learn. Symptoms: loss plateaus, early-layer weights barely change.
Exploding: gradients grow exponentially, causing huge updates. Symptoms: loss spikes or becomes NaN, gradient norms jump.
Identify by logging gradient norms per layer and monitoring the loss.
Fixes: ReLU-family activations, He or Xavier initialization, normalization layers, residual connections, gated units (LSTM, GRU), and gradient clipping for exploding gradients.
Loading…