Skip to content
nonconvexcard

The LSTM cell-state Jacobian

ProofAdvanced⏱ 30 minDeep Learninglstmgatingjacobianconstant error carousel

Problem

Compute ∂ct/∂ct−1\partial c_t/\partial c_{t-1} for the LSTM along the cell-state path, and explain why replacing a product of matrices with a product of diagonal entries in (0,1)(0,1) makes long-range gradients survivable. Relate to the GRU and to residual connections.

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
Receptive field growth with depth and dilationDeep LearningNumericalBeginner15 min
Convolution diagonalises in the Fourier basisDeep LearningProofIntermediate30 min
Gradient magnitude through a deep chainDeep LearningProofIntermediate30 min
The RNN gradient is a repeated matrix productDeep LearningProofIntermediate30 min
The softmax Jacobian as a variance, and saturationDeep LearningProofIntermediate30 min