A forget gate of one half can still amplify
counterexample▲▲△A scalar LSTM has constant gates and , zero input, and a candidate . The state is a fixed point. Linearise around it, find the factor by which a small perturbation of grows per step, and estimate a perturbation of after twenty steps. Does gating remove the need for gradient clipping?
Hint
Near zero, . Then .
Solution
Near the fixed point, and , so
The carry line contributes ; the path through and the candidate contributes . A perturbation of grows to about after twenty steps; the script’s nonlinear run gives , slightly less because tanh begins to bend.
The same factor multiplies the backward signal, so the gradient through this cell grows like while the trajectory stays near the origin. A forget gate below one does not bound the total Jacobian. Clipping (I.9.7) remains a standard part of training gated networks.