On the Representational Capacity of Recurrent Neural Language Models

Franz Nowak, Anej Svete, Li Du, Ryan Cotterell
10/19/2023
2 citations
cs.CLcs.LG

Official code: rycolab/rnn-turing-completeness (15 stars, Python, last commit 2023-10-21).

Abstract

This work investigates the computational expressivity of language models (LMs) based on recurrent neural networks (RNNs). Siegelmann and Sontag (1992) famously showed that RNNs with rational weights and hidden states and unbounded computation time are Turing complete.

Show full abstract

However, LMs define weightings over strings in addition to just (unweighted) language membership and the analysis of the computational power of RNN LMs (RLMs) should reflect this. We extend the Turing completeness result to the probabilistic case, showing how a rationally weighted RLM with unbounded computation time can simulate any deterministic probabilistic Turing machine (PTM) with rationally weighted transitions. Since, in practice, RLMs work in real-time, processing a symbol at every time step, we treat the above result as an upper bound on the expressivity of RLMs. We also provide a lower bound by showing that under the restriction to real-time computation, such models can simulate deterministic real-time rational PTMs.

View on arXivView PDF

Code Implementations(1)

150PythonMar 12, 20233 years ago

Similar Papers

Cite this paper

@article{nowak2023representational,
  title  = {On the Representational Capacity of Recurrent Neural Language Models},
  author = {Franz Nowak and Anej Svete and Li Du and Ryan Cotterell},
  year   = {2023},
  eprint = {2310.12942},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.12942v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.12942.svg)](https://codeofpaper.com/paper/2310.12942)

Discussion