Improved weight initialization for deep and narrow feedforward neural network

Hyunwoo Lee, Yunho Kim, Seungyeop Yang, Hayoung Choi · DOI

TL;DR

This paper introduces a novel weight initialization method designed to overcome the "dying ReLU" problem in extremely deep and narrow feedforward neural networks. By ensuring orthogonality, positive entry predominance, and deterministic properties, their method effectively propagates signals, leading to improved training performance and validation accuracy compared to existing techniques.

What Problem Does This Paper Address?

Deep learning models, particularly those using the Rectified Linear Unit (ReLU) activation function, have revolutionized AI. However, training these networks, especially when they are both very deep and very narrow, faces a significant hurdle: the "dying ReLU" problem. This occurs when ReLU neurons become inactive, outputting zero for any input, which can halt the learning process due to vanishing gradients. While various methods exist to combat this, training remains challenging for these specific network architectures. This paper aims to provide a more robust initialization strategy to tackle this persistent issue.

Methods

The core contribution is a new weight initialization method that aims to be orthogonal, have a predominance of positive entries, and be fully deterministic. The method constructs an initial weight matrix $W \in \mathbb{R}^{m \times n}$ using a QR decomposition of a modified identity matrix $J_\epsilon = J + \epsilon I$. The key properties of this initialization are:

  • Orthogonality: The weight matrix $W$ is designed to be orthogonal, which helps maintain signal variance and prevent vanishing/exploding gradients.
  • Positive Entry Predominance: The method encourages more positive entries in the weight matrix, which is crucial for preventing ReLU neurons from dying.
  • Deterministic: Unlike random initialization methods, this approach is deterministic, meaning it produces the same initial weights every time for a given network architecture and parameter $\epsilon$.

The paper also introduces an algorithm to reduce the computational complexity of calculating this matrix, bringing it down from $O(n^3)$ to $O(n^2)$.

Datasets

The authors evaluated their proposed method on several standard datasets:

  • MNIST: A dataset of handwritten digits.
  • Fashion MNIST (FMNIST): A dataset of clothing articles.
  • Wine Quality dataset: A tabular dataset for predicting wine quality.
  • Iris dataset: A classic tabular dataset for flower classification.

These datasets were used to test the method's performance across various network sizes and depths.

Key Insights and Ideas

  • Orthogonality is Key: The paper emphasizes the importance of orthogonal weight matrices for stable signal propagation in deep networks, a concept explored by previous work but applied here in a novel way.
  • Positive Entries Matter for ReLU: The "dying ReLU" problem is directly addressed by ensuring the initialization matrix promotes positive signal propagation, a critical insight for ReLU-based networks.
  • Depth and Width Independence: A significant finding is that the proposed method performs well across a wide range of network depths and widths, suggesting it's a versatile initialization strategy.
  • Deterministic Advantage: In a field often relying on random initialization, a deterministic approach offers reproducibility and potentially more stable training dynamics.

Key Results

  • Improved Validation Accuracy: The proposed method consistently achieved higher validation accuracy compared to existing methods like Xavier, He, Orthogonal, Identity, ZerO, RAI, and GSM, especially in deep and narrow network configurations.
  • Effective in Narrow Networks: While many methods struggle with narrow architectures, the proposed initialization showed robust performance, enabling training even with very few nodes per layer.
  • Depth Independence Demonstrated: Experiments showed that the method's performance remained strong even as the number of hidden layers increased significantly (up to 100 layers).
  • Activation Independence: The method also showed good performance across various activation functions within the ReLU family, and even with other activations like Tanh and Sigmoid.
  • Positive Signal Propagation: Visualizations and theoretical analysis confirmed that the proposed initialization effectively facilitates positive signal propagation, a direct countermeasure to the dying ReLU problem.

Limitations and Future Work

  • Hyperparameter Tuning: While the paper suggests setting $\epsilon$ to 0.1, the optimal value might still require tuning for specific tasks.
  • Computational Cost: Although the QR decomposition complexity is reduced, the initial computation of the matrix can still be a factor for extremely large dimensions.
  • Further Exploration: The authors suggest that more diverse experiments are needed to fully demonstrate the method's independence from network depth and width. Future work could explore its application to more complex network architectures like Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs).

Summary updated

Abstract

Appropriate weight initialization settings, along with the ReLU activation function, have become cornerstones of modern deep learning, enabling the training and deployment of highly effective and efficient neural network models across diverse areas of artificial intelligence. The problem of “dying ReLU,” where ReLU neurons become inactive and yield zero output, presents a significant challenge in the training of deep neural networks with ReLU activation function. Theoretical research and various methods have been introduced to address the problem. However, even with these methods and research, training remains challenging for extremely deep and narrow feedforward networks with ReLU activation function. In this paper, we propose a novel weight initialization method to address this issue. We establish several properties of our initial weight matrix and demonstrate how these properties enable the effective propagation of signal vectors. Through a series of experiments and comparisons with existing methods, we demonstrate the effectiveness of the novel initialization method.
BibTeX
@article{lee2024improved,
  author = {Hyunwoo Lee and Yunho Kim and Seungyeop Yang and Hayoung Choi},
  title = {{Improved weight initialization for deep and narrow feedforward neural network}},
  journal = {Neural Networks},
  year = {2024},
  doi = {10.1016/j.neunet.2024.106362},
}
Figure