Vanishing: in deep networks, repeated multiplication by small derivatives (for example sigmoid or tanh saturating) makes gradients near the early layers almost zero, so they barely learn.
Exploding: repeated multiplication by large values makes gradients blow up, causing unstable training and NaN losses.
Mitigate: ReLU-family activations, careful initialization (Xavier or He), batch or layer normalization, residual (skip) connections, LSTM or GRU gates for sequences, and gradient clipping for exploding gradients.
Loading…