Initialization & vanishing gradients

Step 9 of 14 in Deep Learning · Theorem · Medium

Gradients multiply through layers; if each factor is below 1 they vanish, above 1 they explode. Xavier/He initialization keeps signal variance stable.

Build it

  1. Watch gradients vanish

    20-layer MLP with sigmoid vs ReLU+He init; plot gradient norm per layer at the start of training.

    Done when: Sigmoid gradients shrink to ~0 in early layers; ReLU+He stays healthy.

Resources

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map