A scalar tanh cell has current output ht=0.6, recurrent weight w=0.5,
and total upstream state derivative qt=5. Compute δt and the
backward contribution to ht−1. Repeat for ht=0.99.
Hint
Use 1−ht2, then multiply by w to cross the recurrent edge.
Solution
For ht=0.6,
δt∂ht−1Lvia t=5(1−0.62)=3.2,=0.5(3.2)=1.6.
For ht=0.99, the activation factor is 0.0199.
Thus δt=0.0995 and the returned contribution is 0.04975.
The weight and upstream signal are unchanged; saturation alone
greatly reduces what travels back.
If the earlier state has its own local loss, that separate derivative
must also be added. These numbers describe the path through step t,
not every possible contribution to the earlier state.