mlsanityData to 13 Oct 2026

Precision, Stability, and Generalization: A Comprehensive Assessment of RNNs learnability capability for Classifying Counter and Dyck Languages

arXiv 2410.03118 ↗First posted 4 Oct 2024cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

This study investigates the learnability of Recurrent Neural Networks (RNNs) in classifying structured formal languages, focusing on counter and Dyck languages. Traditionally, both first-order (LSTM) and second-order (O2RNN) RNNs have been considered effective for such tasks, primarily based on their theoretical expressiveness within the Chomsky hierarchy. However, our research challenges this notion by demonstrating that RNNs primarily operate as state machines, where their linguistic capabilities are heavily influenced by the precision of their embeddings and the strategies used for sampling negative examples. Our experiments revealed that performance declines significantly as the structural similarity between positive and negative examples increases. Remarkably, even a basic single-layer classifier using RNN embeddings performed better than chance. To evaluate generalization, we trained models on strings up to a length of 40 and tested them on strings from lengths 41 to 500, using 10 unique seeds to ensure statistical robustness. Stability comparisons between LSTM and O2RNN models showed that O2RNNs generally offer greater stability across various scenarios. We further explore the impact of different initialization strategies revealing that our hypothesis is consistent with various RNNs. Overall, this research questions established beliefs about RNNs' computational capabilities, highlighting the importance of data structure and sampling techniques in assessing neural networks' potential for language classification tasks. It emphasizes that stronger constraints on expressivity are crucial for understanding true learnability, as mere expressivity does not capture the essence of learning.

Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 10 of its 23 references that are in the map. First posted on arXiv 4 Oct 2024.

Builds on

10 of 23 references.

References · 10

  1. 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
  2. 2017Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamplescited by 66
  3. 2020A Formal Hierarchy of RNN Architecturescited by 62
  4. 2020RNNs can generate bounded hierarchical languages with optimal memorycited by 59
  5. 2019LSTM Networks Can Perform Dynamic Countingcited by 45
  6. 2021Minimum Description Length Recurrent Neural Networkscited by 23
  7. 2018On Evaluating the Generalization of LSTM Models in Formal Languagescited by 17
  8. 2023On the Computational Complexity and Formal Hierarchy of Second Order Recurrent Neural Networkscited by 8
  9. 2018Verification of Recurrent Neural Networks Through Rule Extractioncited by 4
  10. 2024Stability Analysis of Various Symbolic Rule Extraction Methods from Recurrent Neural Networkcited by 3

Built on by

Not cited yet.