Is it true that an additive bias term in a linear or convolutional layer immediately followed by batch normalisation is redundant, and why?
Deep learning, Normalisation
Level L2 Elementary. Length One-liner. Nature Th Theoretical.
What's being asked
Whether you notice that mean-subtraction in batch normalisation cancels any constant per-channel shift before it.
Key idea
Yes, it is true: adding shifts every example in the batch by , so the batch mean also increases by and cancels completely, while batch normalisation’s own parameter already supplies the learnable shift.
Steps
- State yes. Batch normalisation subtracts the batch mean from each value (then divides by the standard deviation and applies a learnable scale and shift ). So if , then , so and the variance is unchanged too.
- Note the practical consequence: modern architectures (such as ResNets) disable the bias in convolutional and linear layers right before batch norm, because batch norm’s learnable replaces .
Common mistakes
- Confusing before batch norm (redundant) with inside batch norm (essential, because it restores the non-zero mean after normalisation).
- Thinking the same cancellation holds when a non-linearity sits between the bias and the batch norm layer; the mean is then subtracted after the non-linearity, so the bias is no longer cancelled.
How long your answer should be
One or two sentences.
Read this
Previous in Deep learning: Why are bias vectors and normalisation scale/shift parameters () usually excluded from L2 weight decay in deep neural networks?
Next in Deep learning: What are the Huber loss for residual with threshold and its derivative ? For , what are and at and , and why does Huber loss combine the benefits of MSE and MAE?