Lune

ACL Findings2024

On Efficiently Representing Regular Languages as RNNs

Anej Svete, Robin Chan, Ryan Cotterell

Abstract

Recent work by Hewitt et al. (2020) provides an interpretation of the empirical success of recurrent neural networks (RNNs) as language models (LMs). It shows that RNNs can efficiently represent bounded hierarchical structures that are prevalent in human language. This suggests that RNNs' success might be linked to their ability to model hierarchy. However, a closer inspection of Hewitt et al.'s (2020) construction shows that it is not inherently limited to hierarchical structures. This poses a natural question: What other classes of LMs RNNs can efficiently represent? To this end, we generalize Hewitt et al.'s (2020) construction and show that RNNs can efficiently represent a larger class of LMs than previously claimedspecifically, those that can be represented by a pushdown automaton with a bounded stack and a specific stack update function. Altogether, the efficiency of representing this diverse class of LMs with RNN LMs suggests novel interpretations of their inductive bias.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Recurrent Neural Language Models as Probabilistic Finite-state Automata cites A Formal Hierarchy of RNN Architectures
  • Recurrent Neural Language Models as Probabilistic Finite-state Automata cites A Measure-Theoretic Characterization of Tight Language Models
  • Recurrent Neural Language Models as Probabilistic Finite-state Automata cites RNNs can generate bounded hierarchical languages with optimal memory
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. NADA: Neural Acceptance-Driven Approximate Specification MiningWeilin Luo, Tingchen Han, Junming Qiu, Hai Wan et al.ISSTA 2025 · 1 citation

Builds on9

  1. Resurrecting Recurrent Neural Networks for Long SequencesAntonio Orvieto, Samuel L. Smith, Albert Gu, Anushan Fernando et al.ICML 2023 · 474 citations
  2. A Measure-Theoretic Characterization of Tight Language ModelsLi Du, Lucas Torroba Hennigen, Tiago Pimentel, Clara Meister et al.ACL 2023 · 8 citations
  3. A Formal Hierarchy of RNN ArchitecturesWilliam Merrill, Gail Weiss, Yoav Goldberg, Roy Schwartz et al.ACL 2020 · 6 citations
  4. Recurrent Neural Language Models as Probabilistic Finite-state AutomataAnej Svete, Ryan CotterellEMNLP 2023 · 1 citation
  5. RNNs can generate bounded hierarchical languages with optimal memoryJohn Hewitt, Michael Hahn, Surya Ganguli, Percy Liang et al.EMNLP 2020 · 1 citation

Related papers

  1. Learning Hierarchical Structures with Differentiable Nondeterministic StacksBrian DuSell, David ChiangICLR 2022 · 19 citations
  2. The Surprising Computational Power of Nondeterministic Stack RNNsBrian DuSell, David ChiangICLR 2023
  3. Pushdown Layers: Encoding Recursive Structure in Transformer Language ModelsShikhar Murty, Pratyusha Sharma, Jacob Andreas, Christopher D. ManningEMNLP 2023
  4. Understanding Robust Generalization in Learning Regular LanguagesSoham Dan, Osbert Bastani, Dan RothICML 2022 · 5 citations
  5. On the Representational Capacity of Recurrent Neural Language ModelsFranz Nowak, Anej Svete, Li Du, Ryan CotterellEMNLP 2023
Dusk over the sea between two cliffs drawn in fine vertical lines