IDInit: A Universal and Stable Initialization Method for Neural Network Training
Yu Pan, Chaozheng Wang, Zekai Wu, Qifan Wang, Min Zhang, Zenglin Xu
TL;DR
IDInit introduces a universal, stable initialization by preserving identity across both main and sub-stem residual branches via a padded identity-like matrix, addressing non-square weight rank constraints. It combines identity-preserving initialization with a zero-preserving variant to mitigate dead neurons and employs a patch-maintain scheme to extend identity propagation to convolutions, further aided by a small-loosened identity to inject diversity. The approach yields faster convergence and higher accuracy across CIFAR-10, ImageNet, and NLP tasks, and even accelerates large-scale pretraining such as BERT-Base, demonstrating robustness to hyperparameters and architectural variations. The work provides theoretical and empirical support for dynamical isometry in IDInit and outlines practical guidelines for applying identity-based initialization to non-square and convolutional layers, suggesting broad applicability in modern deep learning pipelines.
Abstract
Deep neural networks have achieved remarkable accomplishments in practice. The success of these networks hinges on effective initialization methods, which are vital for ensuring stable and rapid convergence during training. Recently, initialization methods that maintain identity transition within layers have shown good efficiency in network training. These techniques (e.g., Fixup) set specific weights to zero to achieve identity control. However, settings of remaining weight (e.g., Fixup uses random values to initialize non-zero weights) will affect the inductive bias that is achieved only by a zero weight, which may be harmful to training. Addressing this concern, we introduce fully identical initialization (IDInit), a novel method that preserves identity in both the main and sub-stem layers of residual networks. IDInit employs a padded identity-like matrix to overcome rank constraints in non-square weight matrices. Furthermore, we show the convergence problem of an identity matrix can be solved by stochastic gradient descent. Additionally, we enhance the universality of IDInit by processing higher-order weights and addressing dead neuron problems. IDInit is a straightforward yet effective initialization method, with improved convergence, stability, and performance across various settings, including large-scale datasets and deep models.
