A weight initialization based on the linear product structure for neural networks

Qipin Chen, Wenrui Hao, Juncai He

TL;DR

This paper introduces a novel weight initialization strategy called Linear Product Structure (LPS) initialization, designed to address the "dying ReLU" problem in deep neural networks. By analyzing neural networks from a nonlinear computation perspective and leveraging polynomial approximations, LPS initialization theoretically guarantees finding all local minima and empirically demonstrates a significantly lower probability of dying ReLUs compared to existing methods like Xavier and He initialization.

What Problem Does This Paper Address?

Training deep neural networks is notoriously sensitive to the initial values of their weights. Poor initialization can lead to vanishing or exploding gradients, significantly slowing down or even halting the learning process. A specific challenge, particularly with the popular ReLU activation function, is the "dying ReLU" problem. This occurs when a ReLU neuron becomes inactive and outputs zero for all inputs, effectively removing it from the network and hindering learning. Existing initialization methods, like Xavier and He, primarily focus on maintaining variance across layers to combat gradient issues but don't fully account for the complex nonlinearities of neural networks, leaving them susceptible to the dying ReLU problem, especially in deep architectures.

Methods

The authors propose a new initialization strategy, LPS initialization, rooted in the idea of analyzing neural networks through their nonlinear computation structure. They approximate activation functions, specifically ReLU, using Legendre polynomials. This allows them to represent the neural network's computation as a "linear product structure."

The core of their method involves:

  • Polynomial Approximation: Approximating ReLU with Legendre polynomials to create a more mathematically tractable representation of the network's nonlinearities.
  • Linear Product Structure: Decomposing the approximated polynomial into a product of linear spaces, which reveals a specific structure in the network's parameters.
  • Homotopy Continuation: Utilizing numerical algebraic geometry and homotopy continuation methods to theoretically guarantee finding all local minima of the polynomial system derived from the linear product structure.
  • LPS Initialization Algorithm: A practical algorithm that leverages the insights from the theoretical analysis. It involves an initial weight assignment and a re-initialization step that can be applied multiple times to further reduce the probability of dying ReLUs. The re-initialization probability is derived from the theoretical analysis of the polynomial system's solutions.

Datasets

The paper evaluates its proposed LPS initialization on several standard datasets:

  • MNIST: Used for training and evaluating LeNet networks.
  • CIFAR-10 and CIFAR-100: Used for training and evaluating VGG and ResNet networks.
  • ImageNet: Used for training and evaluating ResNet networks.

The paper also uses synthetic 1D and 2D functions for initial experiments with fully connected networks.

Key Insights and Ideas

  • Nonlinearity is Key: The paper argues that existing initialization methods overlook the crucial role of nonlinearities in neural networks, which LPS initialization aims to address.
  • Polynomials as a Bridge: Approximating activation functions with polynomials provides a mathematical framework to analyze and manipulate the complex nonlinear behavior of neural networks.
  • Theoretical Guarantee for Local Minima: The use of numerical algebraic geometry and homotopy continuation offers a theoretical foundation for finding all local minima, a significant advantage over heuristic approaches.
  • Dying ReLU as a "Born Dead" Problem: The paper frames the dying ReLU issue as a network being "born dead" at initialization, and LPS aims to prevent this from the outset.
  • Re-initialization as a Probabilistic Fix: The re-initialization strategy in LPS is not arbitrary; it's guided by theoretical probabilities derived from the polynomial system, offering a principled way to improve initialization.

Key Results

  • Reduced Dying ReLU Probability: LPS initialization consistently shows a significantly lower probability of "born dying ReLUs" compared to He initialization across various network depths and widths, as visualized in Figure 1.
  • Improved "Non-Collapse" Cases: Table 1 demonstrates that LPS initialization leads to a much higher percentage of "non-collapse" cases (where training doesn't get stuck in a flat line) for different functions, especially with a few re-initializations.
  • Competitive or Superior Performance on Benchmarks:
    • On LeNet networks (MNIST), LPS initialization achieves comparable or lower error rates and a higher Good Local Minimum Percentage (GLMP) than He initialization.
  • On VGG networks (CIFAR-10), LPS initialization shows comparable error rates but a lower lowest error rate (LER), suggesting it can find better local minima.
  • On ResNet networks (CIFAR-10/100 and ImageNet), LPS initialization achieves comparable or better error rates than He initialization.
  • Efficiency with Few Re-initializations: The paper shows that even a small number of re-initializations (e.g., 1-3) with LPS can yield optimal or near-optimal performance, aligning with theoretical predictions.

Limitations and Future Work

  • Theoretical Analysis for Feedforward Networks: The theoretical analysis of LPS initialization is currently limited to feedforward neural networks.
  • Computational Cost of Homotopy Continuation: While powerful for theoretical guarantees, the homotopy continuation method becomes computationally prohibitive for very deep and wide neural networks, limiting its direct application for solving large-scale problems.
  • Extension to Other Activation Functions: The current LPS initialization is derived for ReLU. Future work could explore extending it to other activation functions like tanh.
  • Parameter Normalization: The authors suggest exploring LPS initialization in conjunction with parameter normalization techniques to further improve efficiency.
  • Recurrent Neural Networks: Extending the theoretical analysis and practical application of LPS initialization to recurrent neural networks is a future direction.

Summary updated

BibTeX
@inproceedings{chen2022weight,
  author = {Qipin Chen and Wenrui Hao and Juncai He},
  title = {{A weight initialization based on the linear product structure for neural networks}},
  booktitle = {Appl. Math. Comput},
  year = {2022},
  url = {https://openreview.net/forum?id=ANDAKXKRCTL},
}
Figure