Proxy-Normalizing Activations to Match Batch Normalization while Removing Batch Dependence

Antoine Labatie, Dominic Masters, Zach Eaton-Rosen, Carlo Luschi

The Small Batch Problem and Normalization Failure Modes

Batch Normalization (BN) is a cornerstone of deep learning, but its reliance on mini-batch statistics creates a significant bottleneck. In memory-intensive tasks—such as high-resolution medical imaging or 3D point cloud processing—hardware constraints often force the use of very small batch sizes. This leads to noisy statistical estimates and severely degraded model performance.

While batch-independent alternatives like Layer Normalization (LN), Instance Normalization (IN), and Group Normalization (GN) exist, they rarely match BN's accuracy in computer vision tasks. This paper identifies two primary failure modes in these alternatives:

  1. Channel-wise Collapse (LN/GN): Activations in deep layers tend to become constant within each channel. This causes non-linearities (like ReLU) to behave linearly, effectively wasting the network's depth.
  2. Lack of Variability (IN): Forcing every single instance to have the same mean and variance restricts the network's expressivity, making it harder to represent complex, high-level concepts.

Introducing Proxy Normalization

To address these issues, the authors introduce Proxy Normalization (PN). Instead of calculating mean and variance from the actual data in a batch, PN uses an analytical Gaussian "proxy" variable to track how statistics should evolve through an activation function.

The core idea is to use LN or GN to handle the initial normalization and then apply PN during the activation step (creating a "PN-Act" block). This ensures that the output of every layer remains channel-wise normalized without ever relying on other samples in the batch. Unlike IN, which removes too much information by forcing identical statistics across images, PN preserves relative differences while keeping overall activation scales in check.

Key Insights and The Linearity Trap

A major contribution of this work is exposing the "linearity trap." Without proper channel-wise normalization, deep networks suffer from collapse. As distributions shift away from the origin, the ReLU function only "sees" one side of the data, turning a non-linear layer into a simple linear scaling operation.

Illustration of how channel-wise collapse forces non-linearities to become linear. When the pre-activation distribution shifts, the ReLU activation effectively acts as a linear function.

Furthermore, by analyzing how different normalization layers affect the "power" of activations across various dimensions, the authors discovered that combining LN with PN (LN+PN) almost perfectly mimics the statistical signature of BN. This suggests that BN's success is largely due to maintaining this specific power balance, rather than just reducing internal covariate shift.

Power plots demonstrating that LN+PN (red line) successfully emulates the statistical behavior of BN (blue line), unlike standard LN (orange line).

Results and Future Directions

The researchers evaluated their approach primarily on ImageNet, testing across architectures like ResNet, ResNeXt, and EfficientNet. The results demonstrate that GN+PN acts as a highly effective drop-in replacement for BN, even when the "batch" is just a single image.

For instance, on ResNet-50, GN+PN achieved 76.7% validation accuracy, slightly outperforming the standard BN baseline of 76.3%. Notably, it also matched BN's performance on EfficientNet, a notoriously difficult architecture for batch-independent norms.

While the current implementation requires the activation step to be immediately preceded by a normalization step, the consistent performance gains across models effectively close the gap for batch-independent normalization. Future work may explore its application in Large Language Models and its potential superiority over BN on extremely large datasets where mini-batch noise is no longer beneficial as a regularizer.

Summary updated

BibTeX
@inproceedings{labatie2021proxy,
  author = {Antoine Labatie and Dominic Masters and Zach Eaton-Rosen and Carlo Luschi},
  title = {{Proxy-Normalizing Activations to Match Batch Normalization while Removing Batch Dependence}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=pzmwfDLoANS},
}
Figure