Constrained Weight Optimization for Learning without Activation Normalization

Daiki Ikami, Go Irie, Takashi Shibata

Introduction

Batch Normalization (BN) has become a cornerstone of deep learning, enabling the stable training of deep architectures. However, BN's reliance on mini-batch statistics introduces significant drawbacks, particularly when batch sizes are small due to memory constraints in high-resolution or 3D data tasks. While Weight Normalization (WN) offers a batch-independent alternative, it has historically struggled to match BN's performance without supplementary activation normalization. This paper introduces a novel Constrained Weight Optimization approach that achieves state-of-the-art accuracy without any activation normalization by directly optimizing weights under specific geometric constraints.

Methodology

The authors identify that standard weight standardization methods often rely on reparameterization, which can lead to gradient explosion when weight variance is small. To circumvent this, they propose a direct optimization framework using three primary components:

  1. Sphere Constraint: Weight vectors are constrained to a constant squared norm (typically $c=2$), stabilizing activation variance across layers.
  2. Centralization Constraint: Weights are forced to have zero mean ($1^\top \mathbf{w} = 0$), preventing bias shift and mitigating vanishing or exploding gradients.
  3. Noise Injection: To replicate the stochastic regularization effect of BN, Gaussian noise is injected into activations during training.

Projected Gradient Descent

Instead of reparameterizing weights, the method employs a two-step projected gradient descent. First, weights are updated using a centralized gradient. Second, they are projected back onto the constraint manifold (the sphere). This approach avoids the numerical instabilities associated with dividing by weight standard deviation, which is a common pitfall in previous weight normalization techniques.

Illustration of the projected gradient descent on the sphere and centralization constraints.

Experimental Results

The proposed method was evaluated on CIFAR-10, CIFAR-100, and ImageNet. The results demonstrate that constrained weight optimization can match or even exceed the performance of Batch Normalization across various architectures, including standard CNNs and ResNets.

Comparison of the proposed method against Batch Normalization (BN), Group Normalization (GN), and Weight Standardization (WS) variants across CIFAR datasets.

Key findings include:

  • Small Batch Robustness: On CIFAR-100 with a small batch size ($B=4$), where BN's performance typically degrades (reaching ~18% error), the proposed method maintained a robust error rate of 15.12%.
  • Large-Scale Performance: On ImageNet, it achieved a Top-1 accuracy of 75.15%, coming within 0.55% of BN while significantly outperforming unnormalized "Plain" networks (73.76%).
  • Generality: The method also showed strong performance on 3D point cloud data (ModelNet40), outperforming Group Normalization.

Conclusion

By replacing activation normalization with constrained weight optimization and synthetic noise injection, this work provides a viable path for training deep networks in memory-constrained environments. The method eliminates batch-size dependency and simplifies network architecture, offering a robust alternative for diverse computer vision tasks without the "reparameterization trap."

Summary updated

BibTeX
@inproceedings{ikami2021constrained,
  author = {Daiki Ikami and Go Irie and Takashi Shibata},
  title = {{Constrained Weight Optimization for Learning without Activation Normalization}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  doi = {10.1109/wacv48630.2021.00265},
}
Figure