Abstract
Infinite width limits of deep neural networks often have tractable forms. They have been used to analyse the behaviour of finite networks, as well as being useful methods in their own right. When investigating infinitely wide convolutional neural networks (CNNs), it was observed that the correlations arising from spatial weight sharing disappear in the infinite limit. This is undesirable, as spatial correlation is the main motivation behind CNNs. We show that the loss of this property is not a consequence of the infinite limit, but rather of choosing an independent weight prior. Correlating the weights maintains the correlations in the activations. Varying the amount of correlation interpolates between independent-weight limits and mean-pooling. Empirical evaluation of the infinitely wide network shows that optimal performance is achieved between the extremes, indicating that correlations can be useful.
Introduction
In deep learning theory, researchers often study "infinite-width limits" to gain insights into model generalization. When a network becomes infinitely wide, it often converges to a Gaussian Process (GP), which is mathematically tractable. However, standard infinite-width limits for CNNs suffer from a significant drawback: if weights are assumed to be independent, the spatial correlations created by weight sharing vanish. In this limit, the CNN behaves like a Locally Connected Network (LCN), where each image patch is processed independently. To address this, researchers previously had to manually insert mean-pooling layers. This paper proposes a more elegant solution by introducing correlations directly into the weight priors.
Methodology
The authors propose shifting the weight prior from independent distributions to a correlated framework defined by a covariance tensor ($\Sigma$). By using standard kernels like the Matérn-3/2 or Squared Exponential, they define a prior where weights for nearby patches are more similar than those for distant patches, controlled by a lengthscale parameter ($\lambda$).
This method allows for a continuous interpolation between architectural extremes. A lengthscale of $\lambda = 0$ recovers the independent-weight LCN, while $\lambda \to \infty$ results in perfect weight sharing equivalent to global mean-pooling. The authors derived recursive formulas to propagate these correlations through multiple layers, enabling the calculation of the Neural Network Gaussian Process (NNGP) kernel for deep CNNs with correlated weights.
Empirical Evaluation
The approach was evaluated on CIFAR-10 using various subset sizes ($N$) and architectures, including a 14-layer CNNGP and the 10-layer Myrtle network.
Key Results
- Performance Gains: Adding correlations to the weights of the final layer consistently improved accuracy compared to both the independent-weight limit and the standard mean-pooling limit across different data sizes.
- Optimal Lengthscale: Both the CNNGP-14 and Myrtle10 architectures converged to a similar optimal lengthscale ($\lambda \approx 17$). This suggests that the ideal amount of spatial correlation may be a property of the dataset itself rather than the specific network depth.
- Replacing Pooling: The authors demonstrated that discrete pooling layers in intermediate layers could be replaced with correlated convolutional layers without loss in performance, effectively "softening" the architecture into a continuous framework.
Discussion and Limitations
While correlated priors successfully recover spatial properties and improve performance, they come with increased computational complexity. The memory cost scales with the square of the image size ($|F|^2$), and non-diagonal covariance makes the mathematics significantly slower than standard infinite CNNs. Future work could involve using gradient-based optimization to automatically learn the optimal lengthscale $\lambda$ during training, potentially leading to even more effective infinite-width models.
Summary updated