A type of generalization error induced by initialization in deep neural networks

Yaoyu Zhang, Zhi-Qin John Xu, Tao Luo, Zheng MaarXiv 2019

TL;DR

This paper reveals that in the "Neural Tangent Kernel" (NTK) regime, a deep neural network’s final output is heavily biased by its random initialization, which acts as a noisy "prior" that degrades generalization. The authors prove that the choice of loss function doesn't change the final global minimum reached, and they introduce the AntiSymmetrical Initialization (ASI) trick to zero out this initial noise, significantly accelerating training and improving accuracy.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are notoriously sensitive to how they are initialized. While we know that initialization affects training speed and final performance, the quantitative relationship between the starting weights and the final generalization error has remained fuzzy.

The authors focus on the NTK regime—a theoretical framework where very wide networks behave like linear models. In this regime, they tackle two main questions:

  1. How does the choice of loss function (like Mean Squared Error vs. higher-order losses) affect the final learned function?
  2. How does the initial random output of a network (before any training) "pollute" the final result and hurt its ability to generalize to new data?

Methods

The researchers utilize the linearity of DNN training dynamics in the NTK regime to provide exact mathematical proofs. Their approach involves:

  • Optimization Equivalence: Proving that training a wide DNN is equivalent to finding a function in a Reproducing Kernel Hilbert Space (RKHS) that is closest to the initial output while fitting the training data.
  • Decomposition Theorem: They derive a formula showing that the final trained network is essentially the "ideal" solution plus a residual term derived from the initial random output ($h_{ini}$).
  • AntiSymmetrical Initialization (ASI): To fix the "initialization noise" problem, they propose a clever architectural trick. They create a new network $h_{ASI}$ by taking two identical networks, $\theta$ and $\theta'$, initialized with the same weights, and subtracting them: $$h_{ASI}(x, \Theta) = \frac{\sqrt{2}}{2}h(x, \theta) - \frac{\sqrt{2}}{2}h(x, \theta')$$ This ensures the initial output is exactly zero, but because the gradients are preserved, the network can still learn effectively.

Datasets

The authors validated their theoretical findings using:

  • 1D Synthetic Data: Used for clear visualization of how networks interpolate between points and how initialization affects the "flatness" of the resulting curve.
  • Boston House Price Dataset: A standard regression benchmark used to verify results in higher-dimensional spaces.
  • MNIST: Used to test the ASI trick in the "non-NTK" regime (more realistic, narrower networks) using cross-entropy loss and Adam optimizers.

Key Insights and Ideas

  • Loss Function Invariance: Perhaps the most surprising finding is that in the NTK regime, the specific loss function doesn't matter for the final result. Whether you use $L^2$ or $L^4$ loss, the network converges to the same global minimum—the one closest to its starting point.

    Figure 1: Invariance of DNN output to loss functions. Black stars indicate training data. Blue solid curve and the black curve indicate the outputs on the test samples of the DNN well-trained by L2
  • Initialization as a "Bad Prior": Random initialization isn't just a neutral starting point. It introduces high-frequency noise that the network "inherits." Because the training process tries to minimize the distance from the starting parameters, it effectively tries to keep as much of that initial random noise as the training data allows.

  • ASI vs. Doubling Trick: While previous "doubling tricks" existed to zero out initial output, the authors show that those methods can accidentally destroy the kernel structure in earlier layers. ASI is superior because it keeps the Neural Tangent Kernel invariant while perfectly canceling the initial output.

Key Results

  • Generalization Boost: By using the ASI trick to eliminate the $h_{ini}$ bias, the researchers observed lower generalization errors across all tested datasets.
  • Training Speedup: ASI significantly accelerates convergence. On MNIST, a network with ASI reached over 90% accuracy after just one epoch, far outperforming the standard initialization.
  • Theoretical Validation: The "Decomposition Theorem" (Equation 6 in the paper) was shown to accurately predict the final output of standard DNNs, proving that the NTK-based theory holds weight even for practical, finite-width networks.

Limitations and Future Work

The primary limitation is that the core proofs rely on the NTK regime, which assumes infinite or extremely large network widths. While the authors show qualitative success in narrower networks, the exact quantitative proofs might not hold as strictly when networks are small or when training moves far from the initial weights (the "feature learning" regime).

Additionally, the paper focuses heavily on regression. While they show MNIST results (classification), they note that cross-entropy loss pushes weights toward infinity, which technically breaks the NTK assumptions. The authors suggest that future work should explore the behavior of classification losses in the kernel regime more deeply.

Summary updated

BibTeX
@misc{zhang2019type,
  author = {Yaoyu Zhang and Zhi-Qin John Xu and Tao Luo and Zheng Ma},
  title = {{A type of generalization error induced by initialization in deep neural networks}},
  year = {2019},
  eprint = {1905.07777},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.07777},
}
Figure