How Deep Before the Gradient Dies

Calculus in Deep LearningMedium+20 XP+20

How Deep Before the Gradient Dies

Backpropagation carries a gradient backwards through a network, and crossing one layer multiplies it by that layer's factor

w⋅σ′(z)w \cdot \sigma'(z)w⋅σ′(z)

Consider a deep sigmoid network in the most favourable case possible: every layer has weight w=2w = 2w=2, and at every layer the sigmoid derivative sits at its largest achievable value, σ′(z)=0.25\sigma'(z) = 0.25σ′(z)=0.25.

The gradient arriving from the output has magnitude 111. A parameter whose gradient magnitude has fallen below 10−310^{-3}10−3 makes no visible progress during training.

Passing back through how many such layers does the gradient magnitude first drop below 10−310^{-3}10−3?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.