Jimmy Lei Ba 2026-11-05
Jimmy Lei Ba, also known as Jimmy Ba, is a computer scientist whose published work includes Adam and layer normalization. His personal research biography identifies Geoffrey Hinton as his doctoral supervisor and describes a focus on efficient algorithms for deep learning.[ref] The 2016 layer-normalization manuscript prints his University of Toronto affiliation and the name Jimmy Lei Ba.[ref]
Figure 1.
Jimmy Ba portrait linked from his personal research homepage
.
Ba coauthored Adam: A Method for Stochastic Optimization by Diederik P. Kingma and Jimmy Lei Ba with Diederik P. Kingma. The algorithm maintains optimizer state based on gradients, so its update depends on the history of the optimization. Adam bias correction accounts for the early effect of initializing its exponential accumulators at zero.[ref]
The layer normalization paper, coauthored with Jamie Ryan Kiros and Geoffrey E. Hinton, addresses a different part of a neural network: it computes a mean and variance across feature coordinates of an individual example, then applies learned gain and bias. It avoids making those statistics depend on the other examples in the mini-batch.[ref]
An original numerical example illustrates one precise symmetry. In the stabilized formula of layer normalization, set all gains to 1, all biases to 0, and layer-normalization epsilon to . For , the coordinate arithmetic mean is 2 and the coordinate variance is , so the normalized output is . Adding 10 to every coordinate gives , whose output is again : layer normalization is invariant under a common input shift because the coordinate mean shifts by the same amount and the deviations remain unchanged.
The fixed layer-normalization epsilon affects scaling differently. With , the coordinate variance is and the output is , which differs from the original output. This calculation distinguishes the exact common-shift symmetry from idealized scale invariance when the stabilizer is omitted. It does not assign either numerical example to the paper's experiments.
Layer-normalization bias 2026-11-05
The layer-normalization bias is the learned coordinatewise offset applied after the normalized core and layer-normalization gain. Writing the core as ,
The offset is a model parameter, rather than an estimate of statistical bias. The PyTorch implementation provides an optional learned additive parameter for each normalized element.[ref]
An original constant-input example isolates its effect. Choose and any positive layer-normalization epsilon. The core is zero, so for the output is exactly , regardless of the fixed gain. Its coordinate arithmetic mean is : the output of the full learned layer need not have zero mean even though its normalized core does.
For a scalar loss with incoming output gradient , the chain rule gives . For the original loss in this example, the bias gradient is therefore . If the same parameter vector is reused at several positions, their gradient contributions add.
An equal shift of every coordinate before normalization is removed, as shown in layer normalization is invariant under a common input shift. The offset here is applied after normalization and persists. When differentiating only with respect to while parameters are fixed, contributes zero to the layer-normalization Jacobian.
Layer-normalization gain 2026-11-05
The layer-normalization gain is the learned coordinatewise multiplier applied to the normalized core. With layer-normalization bias , the output is , where is the Hadamard product. The multiplier can differ between coordinates and need not be positive.[ref] It permits the model to rescale the features after normalization.
For an original example, choose and layer-normalization epsilon . The coordinate mean is zero, the coordinate variance is , and the normalized core is . Taking and zero bias gives
The output coordinate arithmetic mean is and its coordinate variance is . Thus the core's centering and variance properties do not automatically survive unequal gains. A negative gain also reverses the sign of its coordinate in this example.
If is the incoming loss gradient, then . For above, the gain gradient is . This concerns a derivative with respect to the learned parameter; the layer-normalization Jacobian instead differentiates with respect to the input with parameters fixed.
Setting one to zero makes that output coordinate equal to its bias, but does not remove input coordinate from the shared normalization statistics. It can still influence other output coordinates through those statistics. The input derivative is obtained by multiplying the core Jacobian on the left by the diagonal matrix of gains. Layer-normalization epsilon contains the general derivative and bound.
Adding the same scalar to every coordinate leaves layer normalization unchanged, provided its layer-normalization gain and layer-normalization bias are held fixed. This is an exact statement even with positive layer-normalization epsilon. Write , let be the coordinate arithmetic mean, and define the coordinate variance . For any scalar , we have
Consequently , so both the numerator and denominator of layer normalization are unchanged. Applying the same coordinatewise layer-normalization gain and layer-normalization bias preserves the equality:
The positive layer-normalization epsilon is added to the coordinate variance before taking the square root.[ref]
The centering matrix makes the geometry explicit: and . Thus the common-offset direction lies in the kernel of a linear map represented by . For the normalized core , take and . Its coordinate arithmetic mean is 2 and its coordinate variance is , giving . The vector has exactly the same normalized core. An unequal coordinate shift need not be removed: instead gives .
This identifies a precise redundancy in a neural network. If the vector before layer normalization is an affine map , adding to its bias leaves the normalized result unchanged for every . A shift of the raw input by a vector produces , which need not be a common coordinate shift. The weight re-centering calculation in Layer Normalization by Jimmy Lei Ba and others uses the related transformation : its extra contribution is , which normalization removes separately for each input.[ref]
The layer-normalization Jacobian describes the first-order response of the normalized core to a change in its input. Let be the core defined in layer-normalization epsilon, with . Its Jacobian matrix satisfies
The closed formula and its derivation are given in layer-normalization epsilon. A matrix entry measures the local effect of changing input coordinate on normalized output coordinate .
An original two-coordinate calculation takes and . Here the centered variance is and the normalized core is . Substitution into the established derivative formula gives
Consequently
The common-offset direction has no effect; the centered contrast direction changes the output. This is a local linear response, rather than an exact rule for arbitrary finite changes.
For the complete output with fixed layer-normalization gain and layer-normalization bias, the input Jacobian is . In the example, gives
The first output is suppressed, yet the first input still affects the second output. This distinguishes an output gain from removing an input feature. Parameter derivatives with respect to and are separate derivatives. Layer-normalization sensitivity measures the input Jacobian's amplification through an operator norm.
Layer-normalization sensitivity measures how strongly changes in an input can alter its normalized output. For the core and the Euclidean norm, its local first-order amplification is the operator norm . The derivation in layer-normalization epsilon gives the uniform bound
Integrating the derivative bound yields the corresponding global Lipschitz continuity bound. For at least two coordinates, the constant is attained locally in centered directions at constant inputs; it is a worst-case bound, not the amplification at every input.
An original finite perturbation check starts at and adds . The core at is zero. With , the norm ratio is
close to the derivative bound . Keeping the same perturbation but taking gives approximately , with bound . This probes the near-constant-input regime, where the coordinate variance is small compared with epsilon.
For fixed learned gains, the full output has bound ; a fixed layer-normalization bias does not change input differences. The layer-normalization gain can therefore amplify or suppress the core response. These are properties of this layer in a specified norm. They do not by themselves bound a complete network, whose other operations and composition also matter. The explicit matrix example in layer-normalization Jacobian illustrates why actual amplification can be smaller than the uniform bound.
The normalized coordinate variance in layer normalization is the variance across coordinates of the normalized core, with divisor equal to the number of coordinates. This is not a variance across training cases. If the input's centered coordinate variance is and layer-normalization epsilon is , the core has zero coordinate mean and variance
The calculation is given in layer-normalization epsilon. The divisor convention agrees with the implementation's correction-zero variance.[ref]
An original inverse calculation asks how large must be to attain a desired core variance . Solving the displayed relation gives
For chosen and target , we need . The two-coordinate input has that variance and normalized core , whose variance is exactly . Reaching instead requires . With fixed positive epsilon, exact unit core variance is never attained at finite .
The restriction applies to the core, before the learned affine transformation. For the first example, uniform layer-normalization gain and zero layer-normalization bias produce coordinate variance . Unequal gains or biases can change both the mean and variance. A test that assumes the full output must always have unit variance would therefore reject valid layer-normalization computations.