Correlated Initialization for Correlated Data

Johannes Schneider · DOI

Abstract: Standard weight initialization methods for neural networks assume that weights should be independent and identically distributed. However, spatial data such as images exhibit high local correlation. This paper, authored by Johannes Schneider, introduces Correlated Initialization, a method that aligns initial filter weights with the spatial correlations found in the data. By reducing optimization "zig-zagging," this approach improves convergence speed and final accuracy across various CNN architectures.

The Mismatch in Standard Initialization

When initializing a Convolutional Neural Network (CNN), practitioners typically rely on He or Glorot (Xavier) initialization. These methods draw each weight in a filter independently from a specific distribution. However, the pixels in an image are not independent; a pixel is usually very similar to its neighbor.

The author argues that because input data is correlated, the optimal weights for a filter (such as Gabor filters or edge detectors) will likely be correlated too. If we start with completely random, uncorrelated weights, the optimizer (SGD) must spend the initial stages of training "undoing" this randomness. This leads to a "zig-zag" behavior where gradients frequently change signs, slowing down convergence and potentially trapping the model in poor local minima.

Visualization of weight updates and the "zig-zag" behavior caused by uncorrelated initialization.

Proposed Method: Correlated Initialization

The paper approaches the problem through both theoretical proof and a new algorithm. The author provides a mathematical analysis (Theorem 1) of a single spatial filter, proving that when weights are initialized far from the "correlated" optimal state, the magnitude of weight updates for different dimensions varies wildly, leading to slow convergence.

To solve this, the author proposes Algorithm 1 (Correlated Init):

  1. Correlation Matrix Extraction: A correlation matrix $R$ is derived from a pre-trained network (like a ResNet-50 trained on ImageNet).
  2. Cholesky Decomposition: The method uses Cholesky Decomposition ($R = CC^T$) to transform a matrix of independent random noise into a matrix of spatially correlated weights.
  3. Variance Scaling: Because correlated weights increase the variance of the filter's output, a new scaling factor is introduced to ensure signal variance remains stable across layers, preventing vanishing or exploding gradients.

Empirical Evidence from Trained Networks

A key insight of the paper is that trained weights are naturally correlated. By analyzing models like ResNet-50, the author shows that weights in trained models develop high correlation with their neighbors, and this correlation actually increases in deeper layers.

Spatial correlation of weights in a trained CNN across different layers and distances.

Furthermore, the author found that L2 regularization acts as a proxy for spatial correlation by pushing weights toward uniformity. This explains why the benefits of Correlated Initialization are most dramatic when L2 regularization is low or absent.

Key Results and Performance

The paper demonstrates consistent improvements across various architectures, including VGG and ResNet variants, on the CIFAR-10 and CIFAR-100 datasets:

  • Accuracy Gains: On CIFAR-100, ResNet-10 accuracy improved from 52% (uncorrelated) to 53.6% (correlated). VGG-8 saw a jump from 52.6% to 54.4%.
  • Faster Convergence: Models reached higher accuracy levels much earlier in the training process compared to standard Kaiming/He initialization.
  • Transferability: Correlation patterns in weights are remarkably consistent across tasks. A correlation matrix derived from a ResNet trained on ImageNet works effectively for a VGG network trained on CIFAR-10.

Limitations and Future Work

While effective, the method has some sensitivities. The benefits are diminished at very high learning rates, where the optimizer can quickly "jump" out of the initial state. Additionally, while the method still provides gains in the presence of Batch Normalization, the relative impact is reduced because Batch Normalization already helps smooth the loss landscape.

Future research may explore dynamically adjusting these correlations during training or applying similar principles to non-spatial data structures, such as Transformers in Natural Language Processing.

Summary updated

BibTeX
@article{schneider2020correlated,
  author = {Johannes Schneider},
  title = {{Correlated Initialization for Correlated Data}},
  journal = {Neural Process. Lett.},
  year = {2020},
  doi = {10.1007/s11063-021-10728-y},
}
Figure