Projection Based Weight Normalization for Deep Neural Networks

Lei Huang, Xianglong Liu, Bo Lang, Bo LiarXiv 2017

Abstract

Deep Neural Networks (DNNs) often suffer from ill-conditioned optimization landscapes due to inherent redundancies in their parameterization. This paper introduces Projection Based Weight Normalization (PBWN), a technique that constrains neuron weights to a unit-norm sphere (the Oblique manifold). By eliminating "scaling-based weight space symmetry," PBWN improves optimization conditioning, leading to faster convergence and enhanced generalization across diverse architectures like ResNet, VGG, and Inception.

The Problem: Scaling-Based Weight Space Symmetry

A significant challenge in optimizing DNNs with rectified linear units (ReLU) or Maxout activations is the existence of scaling-based weight space symmetry. Specifically, one can multiply the incoming weights of a neuron by a factor $\alpha$ and divide the outgoing weights by the same $\alpha$ without altering the network's output function.

Scaling-based weight space symmetry in normal vs. scaled parameterizations.

This redundancy results in an infinite number of parameter configurations representing the same function, which leads to an ill-conditioned Hessian matrix. Such ill-conditioning slows down training and complicates the search for optimal minima.

Proposed Method: Projection Based Weight Normalization (PBWN)

To address this, the authors propose forcing the weights of each neuron to lie on a unit-norm sphere. This is formulated as optimization over the Oblique manifold. Instead of complex Riemannian optimization, PBWN employs a simple two-step heuristic:

  1. Standard Update: Perform a gradient descent step to obtain updated weights $\tilde{w}$.
  2. Projection: Re-project weights onto the Oblique manifold via normalization: $w^* = \tilde{w} / \|\tilde{w}\|$.

This projection can be performed every iteration or at larger intervals (e.g., once per epoch) to minimize computational overhead. When paired with Batch Normalization (BN), this process preserves learned information due to BN's scaling invariance, while acting as a regularizer and an adaptive learning rate mechanism.

Key Insights

  • Hessian Conditioning: Fixing the weight norm "flattens" redundant dimensions in the search space, improving the curvature of the loss surface.
  • Implicit Learning Rate Adjustment: PBWN implicitly scales the effective learning rate by $1/\|\tilde{w}\|$, stabilizing the training process.
  • Hard Constraints: Unlike the "soft" constraint of Weight Decay, PBWN provides a "hard" constraint that prevents weights from exploding or vanishing.

Experimental Results

The effectiveness of PBWN was validated across benchmarks including CIFAR-10/100, SVHN, ImageNet, and MNIST.

Training error comparison on CIFAR-10 and CIFAR-100 datasets.

Performance and Scaling

PBWN consistently outperformed standard training and the related Weight Normalization (WN) method. On CIFAR-10 with an Inception architecture, PBWN reduced test error from 6.48% to 5.22%. Furthermore, the benefits of PBWN became more pronounced as Residual Networks increased in depth, suggesting its utility for very deep models.

Semi-Supervised Learning

In semi-supervised tasks using the Ladder network on MNIST, PBWN achieved a test error of 2.52% with only 20 labeled samples, a significant improvement over the 9.67% baseline.

Conclusion and Future Work

PBWN offers a computationally efficient way to improve DNN optimization by leveraging manifold constraints. While its current theoretical grounding relies on Batch Normalization, future research could explore its application in BN-free architectures or investigate more complex manifold constraints, such as the Stiefel manifold for orthogonality.

Summary updated

BibTeX
@misc{huang2017projection,
  author = {Lei Huang and Xianglong Liu and Bo Lang and Bo Li},
  title = {{Projection Based Weight Normalization for Deep Neural Networks}},
  year = {2017},
  eprint = {1710.02338},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1710.02338},
}
Figure