Taking , how do you prove that batch normalisation makes a layer’s output invariant to positive scalar rescaling of its weights, for any , and what does this imply for the weight gradient and the effective learning rate during SGD?
Deep learning, Normalisation
Level L4 Advanced. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can prove BN’s scale invariance and deduce both the gradient scaling and the growth of weight norms during training.
Key idea
Scaling pre-activations by multiplies both the batch mean and standard deviation by , so and are unchanged. Because for all , differentiating with respect to gives , and differentiating with respect to at shows (where is the Frobenius inner product).
Steps
- Forward invariance: let and for . Then and (taking and ). Hence , so .
- Gradient scaling: write so for every . Taking of both sides via the chain rule gives , i.e. .
- Orthogonality to : differentiate with respect to at : .
- Consequence for SGD without weight decay: an update satisfies (Pythagoras, since and is the Frobenius norm). Because , growing by shrinks the effective learning rate by —which is why weight decay helps keep bounded.
Common mistakes
- Forgetting ; for , , which flips the sign of .
- Missing the factor when applying the chain rule to (thinking the gradient is also invariant to , instead of inversely proportional to ).
- Overlooking that with weight decay, shrinkage pulls inward until it balances the outward drift at an equilibrium norm.
How long your answer should be
About one page; 5–7 minutes.
Last checked on 4 December 2026.
Read this
Previous in Deep learning: For a quadratic loss with symmetric positive definite Hessian (whose largest eigenvalue is ), started at with gradient descent step size , how do you show that stopping after iterations acts approximately like L2 regularisation with penalty ?
Next in Deep learning: Why do modern deep networks such as Transformers and large-batch CNNs typically start training with a learning-rate warm-up instead of immediately using the peak learning rate?