Abstract
A fundamental mystery in deep learning is why overparameterized models generalize well. This paper introduces new generalization bounds for "compositionally sparse" neural networks, such as CNNs, where each neuron connects to only a small subset of the previous layer. By focusing on the norms of individual convolutional filters, the authors derive bounds that are significantly tighter than previous theories, suggesting that sparsity, rather than weight sharing, is the primary driver of generalization.
The Challenge of Generalization
Traditional statistical learning theory often fails to explain the success of deep learning. Massive networks with more parameters than training samples should, in theory, overfit. Norm-based generalization bounds attempt to resolve this by bounding the generalization gap—the difference between training and test error—using the norm of the network's weights. However, for Convolutional Neural Networks (CNNs), standard bounds are often "vacuous," providing error limits far exceeding 100%. This occurs because these theories treat convolutional layers as dense matrices, ignoring their sparse structure.
Compositionally Sparse Framework
The authors propose a framework for compositionally sparse neural networks, modeling them as Directed Acyclic Graphs (DAGs) with low-degree nodes.
Key Innovations
- Filter-Based Complexity: Instead of using the Frobenius norm of the entire weight matrix, the bound utilizes a product of the maximal norms of individual filters across layers.
- Structural Peeling: A modified Peeling Lemma is introduced to account for the branching structure of sparse networks when calculating Rademacher complexity.
- Sparsity vs. Weight Sharing: The mathematical derivation reveals that the bound holds even without weight sharing, provided the connectivity remains sparse. This implies that locality is the essential architectural feature for generalization.
Empirical Validation
The theoretical results were tested on benchmarks like CIFAR-5m, MNIST, and Fashion-MNIST.
As illustrated in Figure 1, the proposed bound $\rho(w)/\sqrt{m}$ tracks the actual generalization gap almost perfectly as the number of training samples $m$ increases. This empirical alignment suggests that the derived complexity measure $\rho(w)$ captures the relevant properties of the network's capacity.
Figure 2 shows the evolution of the complexity measure $\rho(w)$ itself. The stability and slight decrease of this norm as more data is provided contribute to the overall tightness of the generalization bound.
Key Insights
- Locality is King: The success of CNNs is likely due to locality rather than weight sharing. Sparse connectivity restricts functional complexity, preventing overfitting.
- Scale Invariance: The new bounds scale with kernel size (e.g., 3x3) rather than total input dimensions, making them invariant to image resolution.
- Width Stability: While increasing network width (channels) leads to a quadratic explosion in parameters, the generalization bound remains stable, explaining why wider models often generalize better or at least no worse.
Limitations and Future Work
While these bounds are "almost non-vacuous" for simpler tasks, they remain loose for large-scale models like ResNet-50. The observed tight tracking also relied on specific training conditions, such as MSE loss and explicit weight normalization. Future research is needed to extend these findings to standard cross-entropy training and to explore the inherent sparsity of real-world target functions.
Summary updated