Measure locally
During training, each channel is standardized with statistics computed across the mini-batch. Small or unrepresentative batches make those estimates noisy, so the same example can receive a different output beside different neighbors.
Remember gradually
Running mean and variance are buffers, not gradient-trained parameters. Each training batch nudges them. Momentum controls how quickly the stored estimate follows a changing data distribution.
Freeze for inference
Evaluation uses the stored running statistics so one prediction does not depend on whichever other examples happen to share its batch. Forgetting to switch modes, or using stale statistics, changes model behavior.