The RNN gradient is a repeated matrix product
ProofIntermediate⏱ 30 minDeep Learningrnnvanishing gradientbpttspectral radius
Problem
Derive the backpropagation-through-time gradient for a vanilla RNN and show that its norm is controlled by . Explain why the repeated use of the same makes the situation worse than for a feedforward network of the same depth.
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 |
|---|---|---|---|---|---|
| Receptive field growth with depth and dilation | Deep Learning | Numerical | 15 min | ||
| Convolution diagonalises in the Fourier basis | Deep Learning | Proof | 30 min | ||
| Gradient magnitude through a deep chain | Deep Learning | Proof | 30 min | ||
| Translation-equivariant linear maps are convolutions | Deep Learning | Proof | 30 min | ||
| Normalisation makes weights scale-invariant | Deep Learning | Proof | 30 min |