Group Whitening: Balancing Learning Efficiency and Representational Capacity

Lei Huang, Yi Zhou, Li Liu, Fan Zhu, Ling Shao

Introduction

In deep learning, Batch Normalization (BN) is essential for training deep networks but suffers significantly when batch sizes are small. While Group Normalization (GN) addresses the batch size dependency, it lacks the optimization benefits of feature whitening. This paper, presented at CVPR 2021, introduces Group Whitening (GW). GW combines the optimization efficiency of data decorrelation with the batch-size independence of group-based frameworks. Furthermore, it provides a novel theoretical framework to understand the trade-off between normalization-induced stability and representational capacity.

Methodology: Group Whitening (GW)

Group Whitening operates on a per-sample basis, eliminating dependence on the batch dimension. The process involves:

  1. Group Division: Channels within a single sample are divided into $g$ groups, similar to Group Normalization.
  2. Whitening Transform: GW applies ZCA Whitening within each group. This ensures features are not only standardized (zero mean, unit variance) but also decorrelated.
  3. Iterative Normalization (ItN): To maintain computational efficiency, GW utilizes a Newton-based iterative approximation for whitening, avoiding costly eigen-decomposition and ensuring GPU compatibility.

Theoretical Framework: The Constraint Analysis

A central contribution of this work is the introduction of the Constraint Number ($\zeta$). This metric quantifies the number of independent equations a normalization layer imposes on the data. The authors posit that while normalization stabilizes training by conditioning the optimization landscape, it simultaneously acts as a constraint that can limit a network's "freedom" to store information.

Visualization of feature distributions under different constraint levels (c and m).

As shown in the visualization of feature distributions, increasing the number of constraints (represented by $c$ or $m$) initially helps in spreading out the features (whitening). However, excessive constraints can lead to "degenerated" performance where the model's representational diversity drops, hindering its ability to capture complex patterns.

Experimental Evaluation

The effectiveness of GW was validated across multiple benchmarks:

  • MNIST: Initial experiments to analyze the relationship between group numbers and representational capacity.
  • ImageNet: Large-scale image classification using ResNet and ResNeXt architectures.
  • COCO: Complex tasks including object detection and instance segmentation using Faster R-CNN and Mask R-CNN.

Key Results

GW consistently outperforms both BN and GN across various architectures and tasks.

Accuracy of various normalization methods across different batch sizes and group numbers.

As illustrated in the figure above, GW maintains high accuracy even at a batch size of 2 (left), where BN and Batch Whitening (BW) fail. The right panel highlights the impact of the group number; while whitening improves performance, an excessively high group number leads to a sharp decline in accuracy due to over-constraining the network.

On ImageNet, GW achieved top-1 accuracy gains of 1.02% to 1.49% over BN. For instance, GW reached 77.72% on ResNet-50 compared to BN's 76.23%. In COCO object detection, GW improved bounding box Average Precision (AP) by 1.82% to 3.21% over the baseline.

Conclusion

Group Whitening offers a powerful alternative to standard normalization techniques by leveraging the benefits of feature decorrelation without the drawbacks of batch dependency. By balancing learning efficiency with representational capacity through careful group selection, GW achieves state-of-the-art results in classification and detection tasks. Future work may involve integrating GW into adaptive layers like Switchable Normalization to automatically determine the optimal constraint level for each layer.

Summary updated

BibTeX
@inproceedings{huang2021group,
  author = {Lei Huang and Yi Zhou and Li Liu and Fan Zhu and Ling Shao},
  title = {{Group Whitening: Balancing Learning Efficiency and Representational Capacity}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00939},
}
Figure