Small does not mean rounded to zero
limit▲▲△A scalar terminal gradient starts at one and is transported through thirty identical Jacobian factors. Compute the result for factors , and . Is the first numerically zero? Then consider thirty alternating factors .
Hint
The constant-factor example is . Pair the alternating factors before evaluating the second product.
Solution
The three magnitudes are
The first is representable in ordinary float32 and float64 arithmetic. It may be small relative to other gradient contributions, but “small” and “underflowed to zero” are different claims.
As the gap tends to infinity, a constant factor with magnitude below one tends to zero; magnitude above one grows without bound; magnitude one preserves magnitude. A negative factor can reverse signs.
The alternating product is . It disproves the blanket statement that every long product of factors different from one must vanish or explode. In real recurrent cells the factors vary with the trajectory; this exercise isolates only the constant-scalar mechanism.