cs.LGOct 21, 2026

The role of locality and weight sharing in convolutional neural networks

Authors: Francesco Mori, Melanie Weber

Organizations: Center of Mathematical Sciences and Applications, Harvard University · John A. Paulson School of Engineering and Applied Sciences, Harvard University

Abstract

The success of convolutional neural networks is often attributed to locality and weight sharing. However, how these two properties separately shape learning, and how their effects depend on the spatial correlations of natural images, remain poorly understood. We address these questions in a teacher-student model with a convolutional teacher acting on PP input positions with correlation cc between positions. We compare convolutional and locally connected students trained by online stochastic gradient descent, and derive ordinary differential equations that describe their dynamics exactly in the limit of large feature dimension DD. For uncorrelated positions (c=0c = 0), the two students follow the same learning trajectory, with the convolutional student learning exactly PP times faster. We also find that locality affects the sample complexity: a student that matches the kernel size of the teacher recovers it from OD(D)\mathcal{O}_{D}(D) samples, whereas OD(Dlog⁡(D))\mathcal{O}_{D}(D\log(D)) samples are needed with a larger kernel. For c>0c > 0, spatial correlations can reduce the advantage of weight sharing. The asymptotic error of the convolutional student grows with cc, whereas that of the locally connected student is independent of cc and overall lower when evaluated at the same learning rate. When the learning rate is instead tuned to the training horizon, however, the locally connected student wins at early times and the convolutional student at late times, with a transition that we predict analytically.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Removing spurious minima for planar features by skip connections

    Oct 1, 2026Jakob Paul Zimmermann, Andrei Balakin, Moritz Grillo +1Shallow Neural NetworksReLU Neural Networks

  2. Teacher Geometry Shapes Learnability in Teacher-Student Networks

    Sep 9, 2026Kai J. Sandbrink, Flavio Martinelli, Alexander van Meegen +2Neural Network OptimizationNeural Network Training Dynamics

  3. Resolution Allocation with Learnable Resizing and Spectral Filter Parameterization

    Oct 14, 2026Wei Wu, Eric C. LarsonConvolutional Neural NetworksFrequency-Domain Feature Learning