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 , the expected squared gradient norm scales like . 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| Solved | Problem | Field | Type | Difficulty | Time |
|---|---|---|---|---|---|
| XOR is not linearly separable | Deep Learning | Proof | 15 min | ||
| Derive the backpropagation recursion | Deep Learning | Proof | 30 min | ||
| Implement backpropagation from scratch run | Deep Learning | Coding | 3 hours | ||
| The RNN gradient is a repeated matrix product | Deep Learning | Proof | 30 min | ||
| The softmax Jacobian as a variance, and saturation | Deep Learning | Proof | 30 min |