An Algebraic View of the Expressivity of Recurrent Language Models

Franz Nowak, Ryan Cotterell, Reda Boumasmoud
6/1/2026
cs.FLcs.CLcs.LG

No confident code implementation found for this paper.

Abstract

What formal languages can a recurrent neural language model recognize? Formal results in the literature conflict: some authors report Turing-completeness, while others show equivalence to regular languages.

Show full abstract

The reason for this discrepancy is that the underlying arithmetic model differs. The paper develops a unified algebraic account of the expressivity of recurrent neural networks, starting with a formal account of various arithmetic models. This account reduces expressivity to an algebraic question, e.g., whether a network's syntactic monoid divides a certain wreath product. As a case study, the paper revisits diagonal state-space models: the same architecture cannot implement an even-modulus counter once floating-point recurrences are enforced, yet realizes every even-modulus counter under unsigned-integer quantization.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{nowak2026algebraic,
  title  = {An Algebraic View of the Expressivity of Recurrent Language Models},
  author = {Franz Nowak and Ryan Cotterell and Reda Boumasmoud},
  year   = {2026},
  eprint = {2606.01765},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.01765v3}
}

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/2606.01765.svg)](https://codeofpaper.com/paper/2606.01765)

Discussion