Overview
This paper introduces the concept of "weight correlation" (WC) in neural networks, demonstrating that highly correlated weights lead to worse generalization on unseen data. The authors mathematically integrate WC into the PAC-Bayesian framework to create a highly accurate complexity measure for predicting generalization. Furthermore, they introduce a novel regularization technique that minimizes WC during training to demonstrably improve model performance.
What Problem Does This Paper Address?
A central question in deep learning theory is: Why do some neural network architectures generalize better than others? While we can easily measure training loss, predicting Generalisation Error (GE)—how well a model will perform on unseen data—without actually using a hold-out test set is notoriously difficult.
Existing theoretical frameworks, like PAC-Bayesian bounds, attempt to estimate this error. However, to make the math tractable, these frameworks often assume that the network's weights remain independent (i.i.d.) after training. In reality, neuroscience suggests that neuronal correlation plays a massive role in computation, and in artificial networks, weights and filters often become highly correlated during training. This paper tackles the gap by explicitly defining Weight Correlation (WC), proving its relationship to generalization, and using it to fix the unrealistic independence assumptions in existing theoretical bounds.
Methods
The authors tackle the problem from two angles: theory (evaluating models) and practice (training models).
- Defining Weight Correlation: For Fully Connected Networks (FCNs), WC is defined as the average cosine similarity between the weight vectors of neurons. For Convolutional Neural Networks (CNNs), it is the average cosine similarity between reshaped filter matrices.
- Lifting the PAC-Bayesian Bound: The authors update the PAC-Bayesian framework by dropping the assumption that posterior weights are independent. Instead, they construct a posterior covariance matrix that explicitly incorporates the calculated WC. They mathematically prove that as WC decreases, the Kullback-Leibler (KL) divergence term in the bound shrinks, resulting in a tighter, more accurate generalization bound.
- A New Complexity Measure (PBC): Based on this math, they formulate the "PAC Bayes & Correlation" (PBC) measure. It evaluates a network's generalization ability using only its architecture and trained weights.
- Weight Correlation Descent (WCD): Moving from theory to practice, the authors introduce a new regularizer. By adding a WC penalty term to the standard loss function, the optimizer is forced to find local minima where the network's filters and neurons are as uncorrelated as possible.
Key Insights and Ideas
- Similarity is the Enemy of Generalization: There is a strong, positive correlation between WC and GE. If a network's filters look too similar to one another (high cosine similarity), the network is likely memorizing the training data rather than learning robust, generalizable features. As networks begin to overfit (indicated by a diverging test loss), weight correlation naturally rises.
- Fixing the i.i.d. Assumption: By injecting WC into the posterior covariance matrix, the authors hit a "sweet spot" in learning theory. It is much more realistic than assuming weights are perfectly independent, but still mathematically tractable enough to compute without resorting to impossible high-dimensional estimations.
- Cheap and Effective Evaluation: Calculating the new PBC measure is computationally cheap (scaling quadratically with respect to the representation of the weights). This makes it highly practical for comparing the potential real-world performance of different architectures before ever running them on a test set.
Key Results
The authors utilized standard image classification benchmarks (CIFAR-10, CIFAR-100, Fashion-MNIST, MNIST, and SVHN) to test their theories, yielding several strong results:
- Superior Ranking of Networks: When asked to rank various trained architectures (VGGs, ResNets, FCNs) by their actual generalization error on CIFAR-10, the new PBC measure vastly outperformed existing metrics. It achieved a Kendall’s $\tau$ rank correlation of 0.61. For context, standard PAC-Bayes scored 0.33, Parameter Count scored 0.22, and Product of Spectral Norms scored 0.16.
- Improved Training Performance: Using the WCD regularizer consistently improved test errors across different models. For example, on Fashion-MNIST, a VGG16 variant trained normally had an error rate of 13.0%. Trained with WCD, the error dropped to 12.4%. On the SVHN dataset, VGG16 error dropped from 20.3% to 19.6%.
- Visual Confirmation: Heatmaps of the convolutional filters showed that networks trained with WCD had visibly and significantly lower cosine similarity between individual filters compared to standard training.
Limitations and Future Work
- Gaussian Assumptions: While the authors relaxed the independence assumption, they still assume the posterior distribution of the weights is Gaussian to keep the math tractable. The true posterior distribution is likely more complex. The authors suggest using Markov chain Monte Carlo (MCMC) sampling in future work to explore this.
- Computational Overhead during Backprop: While WC is easy to calculate during the forward pass, computing the gradients of the WC penalty during backpropagation is computationally heavy. Because of this, the authors had to use reduced-channel versions of networks (like VGG*) for their training experiments. Finding ways to optimize this gradient computation is a crucial next step for scaling WCD to massive, state-of-the-art models.
Summary updated