On the Computational Complexity and Formal Hierarchy of Second Order Recurrent Neural Networks
Not on the map. Why?
Abstract (arXiv)
Artificial neural networks (ANNs) with recurrence and self-attention have been shown to be Turing-complete (TC). However, existing work has shown that these ANNs require multiple turns or unbounded computation time, even with unbounded precision in weights, in order to recognize TC grammars. However, under constraints such as fixed or bounded precision neurons and time, ANNs without memory are shown to struggle to recognize even context-free languages. In this work, we extend the theoretical foundation for the 2nd-order recurrent network (2nd RNN) and prove there exists a class of a 2nd RNN that is Turing-complete with bounded time. This model is capable of directly encoding a transition table into its recurrent weights, enabling bounded time computation and is interpretable by design. We also demonstrate that 2nd order RNNs, without memory, under bounded weights and time constraints, outperform modern-day models such as vanilla RNNs and gated recurrent units in recognizing regular grammars. We provide an upper bound and a stability analysis on the maximum number of neurons required by 2nd order RNNs to recognize any class of regular grammar. Extensive experiments on the Tomita grammars support our findings, demonstrating the importance of tensor connections in crafting computationally efficient RNNs. Finally, we show 2nd order RNNs are also interpretable by extraction and can extract state machines with higher success rates as compared to first-order RNNs. Our results extend the theoretical foundations of RNNs and offer promising avenues for future explainable AI research.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 12 of its 22 references that are in the map. First posted on arXiv 26 Sep 2023.
Builds on
12 of 22 references.
References · 12
- 2014Neural Turing Machinescited by 644
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 288
- 2019On the Turing Completeness of Modern Neural Network Architecturescited by 129
- 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
- 2015Inferring Algorithmic Patterns with Stack-Augmented Recurrent Netscited by 76
- 2017Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamplescited by 66
- 2015Learning to Transduce with Unbounded Memorycited by 54
- 2019Sequential Neural Networks as Automatacited by 54
- 2019State-Regularized Recurrent Neural Networkscited by 11
- 2019The Neural State Pushdown Automatacited by 9
- 2021Recognizing and Verifying Mathematical Equations using Multiplicative Differential Neural Unitscited by 8
- 2020Recognizing Long Grammatical Sequences Using Recurrent Networks Augmented With An External Differentiable Stackcited by 5
Built on by
Citing papers per year: 2024: 8.
8 papers.
- 2024Learning Universal Predictorscited by 31
- 2024Language Models are Symbolic Learners in Arithmeticcited by 11
- 2024Investigating Symbolic Capabilities of Large Language Modelscited by 8
- 2024Stability Analysis of Various Symbolic Rule Extraction Methods from Recurrent Neural Networkcited by 3
- 2024Neural Networks Generalize on Low Complexity Datacited by 3
- 2024Tight Stability, Convergence, and Robustness Bounds for Predictive Coding Networkscited by 3
- 2024Precision, Stability, and Generalization: A Comprehensive Assessment of RNNs learnability capability for Classifying Counter and Dyck Languagescited by 0
- 2024Exploring Learnability in Memory-Augmented Recurrent Neural Networks: Precision, Stability, and Empirical Insightscited by 0
- 2024Language Models are Symbolic Learners in Arithmetic21 Oct 2024
- 2024Tight Stability, Convergence, and Robustness Bounds for Predictive Coding Networks7 Oct 2024
- 2024Exploring Learnability in Memory-Augmented Recurrent Neural Networks: Precision, Stability, and Empirical Insights4 Oct 2024
- 2024Precision, Stability, and Generalization: A Comprehensive Assessment of RNNs learnability capability for Classifying Counter and Dyck Languages4 Oct 2024
- 2024Neural Networks Generalize on Low Complexity Data19 Sep 2024
- 2024Investigating Symbolic Capabilities of Large Language Models21 May 2024
- 2024Stability Analysis of Various Symbolic Rule Extraction Methods from Recurrent Neural Network4 Feb 2024
- 2024Learning Universal Predictors26 Jan 2024