Bounds for LayerNorm derivatives #
Positive epsilon gives a lower bound sqrt ε for every row's standard deviation. We use it
to bound the actual row differential, retaining the contribution from the changing variance.
The variance contribution contains three factors of 1 / sqrt ε; replacing their product
by 1 / ε would lose the bound when epsilon is smaller than one.
The hypotheses below bound the centered input and the input direction coordinatewise. They make no assumption about the derivative being bounded. The final theorem also includes the scale and bias directions, using the Fréchet derivative of the actual LayerNorm specification.
The inverse standard deviation is nonnegative.
Coordinate bounds on a row give a bound on the absolute value of its mean.
Radius obtained from centered-input bounds u and input-direction bounds d.
The first two terms bound the direction and its row mean. The third bounds the projection along the normalized input. All sums are over this row's feature axis.
Instances For
The row differential is bounded by the centered-input and direction intervals.
Coordinate bound for the full LayerNorm derivative, including both affine parameter directions.
The scale multiplies the normalized-input differential. Its own direction contributes the
normalized input times dgamma, and the bias direction contributes directly. Gamma and beta
remain arbitrary exact parameters throughout.