Introduction
Recurrent Neural Networks (RNNs) are foundational to sequential data processing, yet the theoretical underpinnings of why they generalize so well have remained elusive. Previous theoretical explorations into the Neural Tangent Kernel (NTK) regime—where ultra-wide networks approximate linear models—offered foundational insights but relied on highly restrictive assumptions.
Specifically, earlier proofs required the norm of the input data to be infinitesimally small to prevent exploding or vanishing gradients (the "tiny input constraint"). Furthermore, they only proved that RNNs could learn "additive" functions, treating outputs as mere sums of individual input transformations. This ignored the core strength of RNNs: modeling complex, non-linear interactions across different time steps.
This paper introduces a novel theoretical framework that removes these unrealistic constraints, proving that over-parameterized RNNs can learn complex, non-linear sequence interactions with a provable generalization error bound.
Theoretical Framework and Methodology
The authors analyze standard Elman RNNs equipped with ReLU activations and random initialization. Because this is a theoretical work, it eschews standard empirical benchmarks in favor of analyzing mathematical "Concept Classes." These classes define the target functions the network attempts to learn:
- Additive Concept Class: Functions that are a summation of individual input transformations.
- N-variables Concept Class: Functions involving non-linear interactions between $N$ distinct positions in an input sequence (e.g., modeling the relationship between the 1st, 5th, and 10th elements in a sequence).
The core technical innovation lies in the detailed analysis of the NTK matrix and "backward correlation." In deep sequential networks, signals typically degrade over many layers. However, the authors identify a specific "degeneracy" in long RNNs: they demonstrate that the correlation between gradients at different time steps decays polynomially rather than exponentially. This polynomial decay serves as the mathematical bridge proving that the sample and iteration complexity scales reasonably with the sequence length $L$.
Key Insights and Results
The paper successfully demonstrates that RNNs can go beyond simple additive models and learn long-range correlation functions from random initialization using standard Stochastic Gradient Descent (SGD). Key findings include:
- Overcoming the Tiny Input Constraint: By executing a granular analysis of the kernel matrix, the authors establish generalization bounds for inputs of standard size ($||X|| \leq O(1)$). This bridges a significant gap between deep learning theory and practical application.
- Provable Generalization Bounds: For a target function $F^*$ with a defined complexity $\mathcal{C}(F^*)$, an over-parameterized RNN can achieve a small generalization error using a number of samples and iterations that scale as $O(\mathcal{C}(F^*)^2)$.
- Learning Long-Range Correlations: The introduction of the N-variables concept class allows the authors to prove that RNNs can learn non-linear interactions across sequences. As long as the number of interacting variables ($N$) or their distance ($l_0$) remains relatively small, the RNN learns these interactions with almost-polynomial complexity.
- Polynomial Scaling: For both additive and N-variable functions, complexity scales almost-polynomially with the input length $L$. Consequently, data requirements do not explode exponentially as sequences lengthen. The authors surprisingly use the "degeneracy" of long RNNs to their advantage, showing that hidden states follow a predictable decay that keeps the learning process stable.
Limitations and Future Directions
While a significant step forward, the proof remains confined to the NTK regime. This assumes the network is extremely wide and that weights remain close to their initialization, which does not fully capture true "feature learning" where networks discover entirely new data representations.
Additionally, the study focuses on simple Elman RNNs and does not extend to more complex, gated architectures like LSTMs or GRUs, which dominate practical applications for handling very long-term dependencies. The authors suggest that future research should investigate non-convex interactions to move beyond the linear NTK approximation and explore how gating mechanisms influence these provable generalization bounds.
Summary updated