Path-BN: Towards effective batch normalization in the Path Space for ReLU networks

Xufang Luo, Qi Meng, Wei Chen, Yunhong Wang, Tie-Yan Liu

Introduction

Deep neural networks utilizing Rectified Linear Unit (ReLU) activations exhibit a unique mathematical property known as Positively Scale-Invariant (PSI). This property implies that multiplying the incoming weights of a neuron by a scalar while dividing the outgoing weights by the same scalar leaves the network's output unchanged. However, standard optimization techniques like Stochastic Gradient Descent (SGD) operate in "weight space," which is not scale-invariant. This discrepancy often leads to inefficient training as the optimizer may adjust weights without altering the underlying function.

Decomposition of a simple ReLU network into its constituent paths.

The Challenge of Path Space Optimization

To address the limitations of weight-space optimization, researchers have explored the path space, where parameters are defined by the product of weights along paths from input to output. While path space is naturally PSI, it lacks a compatible version of Batch Normalization (BN). Standard BN is critical for training deep architectures, but simply applying it to path-space models results in unstable, exploding gradients that hinder convergence.

Methodology: Path-Reparameterization and Path-BN

The authors introduce a two-fold solution to integrate normalization into the path space effectively:

  1. Path-Reparameterization: This process re-expresses a ReLU network such that hidden node values are calculated directly from path-values. A subset of weights is set to a constant value (typically 1) to act as a basis for the path space.
  2. Path-BN: Unlike standard BN, Path-BN distinguishes between "constant" basis weights and "trained" parameters. It normalizes only the terms associated with trained parameters, excluding the constant terms from the mean and variance calculations.
Comparison between standard weight-based parameters (a) and the proposed path-reparameterization (b).

This approach ensures that the "scale" and "direction" of weights are decoupled, a fundamental benefit of BN that was previously missing in path-space optimization. By excluding constant weights, the authors prevent the scale of trained parameters from leaking into the output, maintaining the mathematical integrity of the normalization.

Experimental Results

Path-BN was rigorously tested on standard computer vision benchmarks, including CIFAR-10, CIFAR-100, and ImageNet, using ResNet and PlainNet architectures.

  • CIFAR-10: Path-BN achieved a test error of 5.66% on ResNet-34, significantly lower than the 6.40% error of standard SGD+BN.
  • ImageNet: The method successfully trained ResNet-152, outperforming standard baselines in both convergence speed and final accuracy.
  • Gradient Stability: Analysis showed that Path-BN prevents the exponential increase of gradient norms during backpropagation, ensuring that early layers learn as effectively as late layers.

Conclusion

Path-BN represents a significant step toward natively scale-invariant optimization. By correctly accounting for the geometry of ReLU networks, it stabilizes training and improves performance across diverse architectures. Future work may extend this framework to other normalization techniques like Layer Normalization or Dropout, potentially leading to a new suite of natively scale-invariant optimization tools.

Summary updated

BibTeX
@inproceedings{luo2021path,
  author = {Xufang Luo and Qi Meng and Wei Chen and Yunhong Wang and Tie-Yan Liu},
  title = {{Path-BN: Towards effective batch normalization in the Path Space for ReLU networks}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2021},
}
Figure