mlsanityData to 7 Oct 2026

Theoretical Conditions and Empirical Failure of Bracket Counting on Long Sequences with Linear Recurrent Networks

arXiv 2304.03639 ↗First posted 7 Apr 2023cs.LG cs.CL cs.FLcited by 3

Not on the map. Why?

Abstract (arXiv)

Previous work has established that RNNs with an unbounded activation function have the capacity to count exactly. However, it has also been shown that RNNs are challenging to train effectively and generally do not learn exact counting behaviour. In this paper, we focus on this problem by studying the simplest possible RNN, a linear single-cell network. We conduct a theoretical analysis of linear RNNs and identify conditions for the models to exhibit exact counting behaviour. We provide a formal proof that these conditions are necessary and sufficient. We also conduct an empirical analysis using tasks involving a Dyck-1-like Balanced Bracket language under two different settings. We observe that linear RNNs generally do not meet the necessary and sufficient conditions for counting behaviour when trained with the standard approach. We investigate how varying the length of training sequences and utilising different target classes impacts model behaviour during training and the ability of linear RNN models to effectively approximate the indicator conditions.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 10 of its 18 references that are in the map. First posted on arXiv 7 Apr 2023.

Builds on

10 of 18 references.

References · 10

  1. 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
  2. 2020Compositional Generalization via Neural-Symbolic Stack Machinescited by 80
  3. 2015Inferring Algorithmic Patterns with Stack-Augmented Recurrent Netscited by 76
  4. 2020A Formal Hierarchy of RNN Architecturescited by 61
  5. 2015Learning to Transduce with Unbounded Memorycited by 54
  6. 2019Sequential Neural Networks as Automatacited by 54
  7. 2019LSTM Networks Can Perform Dynamic Countingcited by 45
  8. 2019Memory-Augmented Recurrent Neural Networks Can Learn Generalized Dyck Languagescited by 31
  9. 2020On the Linguistic Capacity of Real-Time Counter Automatacited by 16
  10. 2022Exploring the Long-Term Generalization of Counting Behavior in RNNscited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 0; 2025: 1; 2026: 1.

3 papers.