Introduction
Training deep neural networks is a fundamental challenge in machine learning, primarily due to the phenomena of vanishing and exploding gradients. As signals propagate through dozens or hundreds of layers, they can easily become distorted, leading to training instability or total failure. A widely adopted strategy to mitigate this is "identity-control," where layers are initialized such that their initial output is identical to their input ($Y=X$). By preserving the signal's integrity at the start of training, models can begin learning from a "clean" state.
However, existing identity-based methods like Fixup or ZerO suffer from significant limitations, including poor handling of non-square weight matrices, the creation of "dead neurons" that fail to receive gradients, and theoretical concerns regarding convergence to non-symmetric targets. This paper introduces IDInit (Fully Identical Initialization), a novel strategy designed to overcome these hurdles and provide a universal, stable starting point for diverse architectures.
The Identity-Control Paradigm
In modern architectures like ResNets, the goal of initialization is often to ensure the residual branch contributes nothing initially, effectively making the entire block an identity mapping.
As shown in the figure above, if the weights $W_1$ and $W_2$ are initialized such that their product is zero or an identity-preserving transformation, the network starts as a simple stack of identity connections. While this concept is powerful, standard implementations often fail when the dimensions of $X$ and $Y$ differ, or when the initialization inadvertently suppresses gradient flow.
The IDInit Methodology
IDInit addresses these gaps through two primary technical innovations:
- Identity-Preserving Initialization ($IDI_\tau$): Standard identity matrices only exist for square matrices. When dimensions change (e.g., in a bottleneck layer), previous methods often padded the matrix with zeros. This reduces the mathematical rank of the transformation, limiting the model's expressive power. IDInit instead uses a "padded identity-like matrix" that repeats identity blocks. This ensures the layer maintains a high rank from the first step, allowing for more complex transformations immediately.
- Zero-Preserving Initialization ($IDIZ_\epsilon$): To prevent the "dead neuron" problem—where weights set to exactly zero never receive enough signal to update—IDInit replaces hard zeros in residual branches with a tiny numerical value ($\epsilon \approx 1e-6$). This keeps the branch effectively "off" at the start but ensures gradients can flow, allowing neurons to "wake up" as training progresses.
Additionally, the authors propose Patch-Maintain Convolution to extend these principles to 4D convolution kernels and provide theoretical evidence that the stochastic nature of SGD with momentum is sufficient to break the symmetry of identity-initialized weights, allowing them to converge to any target solution.
Empirical Performance
The researchers evaluated IDInit across a variety of benchmarks, including ImageNet, CIFAR-10, and BERT pre-training. The results consistently demonstrated that IDInit leads to faster convergence and higher final accuracy.
As illustrated in the loss curves above, IDInit (shown in red) achieves a significantly steeper decline in loss compared to standard random initialization or partial identity methods. On ImageNet, IDInit-trained models reached target accuracy 7.4 epochs faster than baselines. In NLP tasks, BERT-Base saw an 11.3% reduction in computational cost (FLOPs) to reach the same performance level.
Beyond speed, IDInit provides remarkable stability. It successfully trained extremely deep "long residual stems" exceeding 100 layers where traditional methods like Kaiming or Fixup failed due to gradient explosions. It also makes networks less sensitive to hyperparameter choices, maintaining high accuracy across a wider range of learning rates.
Conclusion
IDInit represents a significant step forward in making deep learning more robust and efficient. By solving the "shape problem" with repeated identity blocks and preventing dead neurons with $\epsilon$-initialization, it provides a truly universal initialization strategy. While the exact theoretical reasons for its superior generalization remain a subject for future study, its empirical success across ResNets, Vision Transformers, and BERT makes it a powerful tool for modern AI development.
Summary updated