Abstract
It is widely believed that the practical success of Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs) owes to the fact that CNNs and RNNs use a more compact parametric representation than their Fully-Connected Neural Network (FNN) counterparts, and consequently require fewer training examples to accurately estimate their parameters. We initiate the study of rigorously characterizing the sample-complexity of estimating CNNs and RNNs. We show that the sample-complexity to learn CNNs and RNNs scales linearly with their intrinsic dimension and this sample-complexity is much smaller than for their FNN counterparts. For both CNNs and RNNs, we also present lower bounds showing our sample complexities are tight up to logarithmic factors. Our main technical tools for deriving these results are a localized empirical process analysis and a new technical lemma characterizing the convolutional and recurrent structure. We believe that these tools may inspire further developments in understanding CNNs and RNNs.
Introduction
While it is "common knowledge" that Convolutional (CNN) and Recurrent (RNN) Neural Networks generalize better than Fully-Connected Networks (FNN) because they have fewer parameters, this paper provides the first rigorous proof of that gap. In deep learning, there is a persistent gap between "folklore" and mathematical rigor. We know empirically that CNNs and RNNs require fewer training examples to reach high accuracy compared to FNNs. The standard explanation is that weight-sharing creates a more "compact" representation.
However, prior theoretical work often struggled to quantify this precisely. Many existing generalization bounds depend on the magnitude (norms) of the weights or provide "slow" convergence rates (e.g., $1/n^{1/4}$). This paper seeks to answer a fundamental question: Exactly how many samples ($n$) do you need to estimate the parameters of a CNN or RNN to within a certain error ($\epsilon$)? The authors aim for "sharp" bounds—meaning the upper and lower bounds match up to logarithmic factors—that are scale-invariant and reflect the actual architectural constraints of these models.
Architectural Models
The authors analyze the Least Squares Estimator (LSE) for three specific architectures. Two primary CNN variants are considered:
- CNN with average pooling: A single filter of size $m$ applied across an input of size $d$, where the outputs are averaged using fixed weights of 1.
- CNN with weighted pooling: A two-layer model where the filter outputs are combined using learned weights $a$.
Additionally, the paper examines RNNs modeled as linear dynamical systems where a hidden state of dimension $r$ is updated over $L$ time steps.
Theoretical Framework
To derive the bounds, the authors employ several sophisticated statistical tools:
- Localized Empirical Process Analysis: Instead of looking at the entire parameter space, they focus on a "local" neighborhood around the true parameters to get tighter bounds.
- Dudley’s Entropy Integral: Used to bound the complexity of the function class via "covering numbers."
- Restricted Eigenvalues: A technique from high-dimensional statistics that allows for analysis even when the number of samples is smaller than the total number of features.
- Linear Subspace Argument: A novel technical lemma that bounds the covering number by exploiting the fact that convolutional and recurrent structures restrict the model's output to specific low-dimensional subspaces.
Key Results and Insights
The authors establish that the prediction error (standardized mean-square error) scales as follows (omitting log factors):
- CNN (Avg Pooling): $\tilde{O}(\sqrt{m/n})$. To reach an error of $\epsilon$, you need $n \approx m/\epsilon^2$ samples. An FNN would require $d/\epsilon^2$.
- CNN (Weighted Pooling): $\tilde{O}(\sqrt{(m + d/s)/n})$, where $s$ is the stride.
- RNN: $\tilde{O}(\sqrt{dr/n})$. This is significantly better than the FNN counterpart, which would scale with the total number of features $Ld$.
The most important insight is the distinction between Intrinsic vs. Ambient Dimension. For a CNN, the sample complexity depends on the filter size $m$, not the input size $d$. Since $m \ll d$ in practice, this mathematically justifies the efficiency of convolutions. Similarly, for RNNs, the complexity scales with the hidden state dimension $r$, which is typically much smaller than the sequence length $L$ times the input dimension $d$.
Furthermore, these results are scale-invariant. Unlike many previous bounds that degrade if the weights of the network are large, these error bounds are independent of weight magnitude. By providing minimax lower bounds, the authors prove that no algorithm can significantly beat the sample complexity they've identified.
Conclusion and Future Work
While this work provides a rigorous foundation for understanding the sample efficiency of weight-sharing architectures, several avenues for future research remain. The current analysis assumes linear activations; extending this to non-linearities like ReLU introduces significant challenges in analyzing the empirical loss landscape. Additionally, while the paper focuses on single shared filters, modern architectures utilize multi-filter banks. Finally, while the paper proves the information-theoretic existence of solutions, the computational complexity of finding global minima in non-convex landscapes remains an open question.
Summary updated