Activations are green and gradients red, as in the figure.
Top row, forward, left to right: the layer above, fed
x ~ N(0, 1), as many draws of one
h against
x (gray); then the activation variance through eight stacked square tanh layers of width
n, each with fresh weights at the σ
w set above.
Bottom row, backward, right to left: the layer above again, now turning an upstream gradient ~ N(0, 1) (gray) into ∂L/∂x, which sums
m terms; then, leftward, the gradient variance as an N(0, 1) gradient arriving at layer 8 is backpropagated through the same stack, multiplied at every layer by tanh′ and
WT. The dashed lines are the linear predictions, which ignore tanh. Drag σ
w above and everything follows: the factor per square layer is
n·σ
w² in both directions, so it compounds to vanishing below 1/√n and to blowing up above it. The backward bars also pay tanh′ ≤ 1 at every layer, which is why they fall faster than the dashed line even at a factor of 1: that is saturation starving the gradient, the paper's main worry. The
standard preset is the paper's standard init, uniform with half-width 1/√
n, so σ
w = 1/√(3
n) and the factor is 1/3 per layer; had 1/√
n been the standard deviation instead (as LeCun et al. recommended in 1998), the factor would be 1 (see
standard vs. normalized init). Even at a factor of 1 the bars fall below the dashed line, steeply at first and then slowly: tanh flattens values beyond about ±0.5, so Var(tanh
h) < Var(
h), and a unit-variance input keeps only about 40% of its variance through the first tanh; and when the factor is above 1, tanh caps the bars near 1 while the prediction keeps climbing, which is saturation. The
variance page has the rules behind all of this, and
forward vs. backward has Glorot's compromise between 1/
n and 1/
m.