Skip to content
nonconvexcard

Gradient magnitude through a deep chain

ProofIntermediate⏱ 30 minDeep Learningvanishing gradientjacobianinitialisationresidual

Problem

Show that the input-layer adjoint is a product of layer Jacobians, and that under random initialisation with i.i.d. weights of variance σw2\sigma_w^2, the expected squared gradient norm scales like (σw2ninE[ρ′2])L(\sigma_w^2 n_{\text{in}}\E[\rho'^2])^{L}. Deduce the He initialisation and explain the effect of a residual connection.

Write a complete argument. Every inequality you use should be one you could state precisely.

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
XOR is not linearly separableDeep LearningProofFoundation15 min
Derive the backpropagation recursionDeep LearningProofIntermediate30 min
Implement backpropagation from scratch runDeep LearningCodingIntermediate3 hours
The RNN gradient is a repeated matrix productDeep LearningProofIntermediate30 min
The softmax Jacobian as a variance, and saturationDeep LearningProofIntermediate30 min