NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Centered Weight Normalization in Accelerating Training of Deep Neural Networks

Lei Huang, Xianglong Liu, Yang Liu, Bo Lang, Dacheng Tao

Abstract

Training deep neural networks is often hindered by pathological curvature and internal covariate shift. This paper introduces Centered Weight Normalization (CWN), a re-parameterization technique that constrains neuron weights to zero-mean and unit-norm. By improving the conditioning of the optimization landscape, CWN significantly accelerates training and enhances generalization across various architectures, including MLPs and CNNs, without the data-dependency of Batch Normalization.

Introduction

The difficulty of training deep neural networks stems from issues like vanishing/exploding gradients and pathological curvature. Pathological curvature occurs when the loss function's Hessian matrix has a high condition number, leading to steep gradients in some directions and flat ones in others. This causes standard first-order optimizers like Stochastic Gradient Descent (SGD) to oscillate or progress slowly. While Batch Normalization (BN) mitigates these issues by normalizing activations, it introduces stochastic noise and depends on mini-batch statistics. CWN offers a data-independent alternative by re-parameterizing the weights themselves to facilitate easier optimization.

Methodology: Centered Weight Normalization

CWN re-parameterizes the weight vector $\mathbf{w}$ of a neuron using a proxy parameter $\mathbf{v}$. The process involves three main steps:

  1. Centering: Subtracting the mean of $\mathbf{v}$ to ensure zero mean.
  2. Normalization: Dividing by the Euclidean norm to ensure unit norm.
  3. Scaling: Applying a learnable scalar $g$ and a bias $b$.

The resulting pre-activation $z$ is computed as: $$z = g \left( \frac{\mathbf{v} - \text{mean}(\mathbf{v})}{\|\mathbf{v} - \text{mean}(\mathbf{v})\|} \right)^T \mathbf{h} + b$$

Diagram of the CWN re-parameterization within a neural network layer.

This approach is deterministic and computationally efficient, serving as a drop-in replacement for standard layers. Unlike BN, CWN focuses on the weights, providing stability regardless of input data statistics.

Key Insights

  • Implicit Stability: By forcing weights to be zero-mean and unit-norm, the pre-activations of each neuron are more likely to have zero mean and stable variance, preventing signal degradation in deep layers.
  • Improved Conditioning: CWN ensures the gradient with respect to the proxy parameters is zero-mean and orthogonal to the weights. This reduces the leading eigenvalue of the Hessian, effectively smoothing the optimization landscape.
  • BN Compatibility: CWN can complement Batch Normalization by providing a better-conditioned starting point for the weights, as BN itself is not re-centering invariant.

Experimental Results

The authors evaluated CWN across standard benchmarks including Yale-B, SVHN, CIFAR-10/100, and ImageNet.

Empirical analysis of CWN showing (a) mean, (b) variance, (c) condition number of FIM, and (d) training loss compared to plain and WN models.

Convergence and Accuracy

  • Speed: CWN demonstrated significantly faster convergence on Yale-B and SVHN compared to plain networks and standard Weight Normalization (WN).
  • ImageNet: Using the GoogLeNet architecture, CWN achieved a Top-1 error of 26.1%, compared to 30.78% for the plain network and 28.64% for standard WN.
  • CIFAR-10: On a 56-layer Residual Network, CWN reached a test error of 6.85%, outperforming both the plain model (7.34%) and WN (7.58%).

Computational Overhead

The computational cost of CWN is negligible. In tests using a $3 \times 3$ convolution, CWN added only about 0.8ms of overhead per 100 runs compared to a standard implementation, making it highly practical for large-scale training.

Conclusion and Future Work

CWN provides a robust, deterministic method for accelerating deep network training by improving weight conditioning. While theoretical justifications assume Gaussian inputs—a condition altered by non-linearities like ReLU—empirical results consistently support its efficacy. Future research could explore CWN's impact on Recurrent Neural Networks (RNNs) and Transformers, as well as its interaction with advanced regularization techniques like Dropout.

Summary updated

BibTeX
@inproceedings{huang2017centered,
  author = {Lei Huang and Xianglong Liu and Yang Liu and Bo Lang and Dacheng Tao},
  title = {{Centered Weight Normalization in Accelerating Training of Deep Neural Networks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.305},
}
Figure