English

Sequential Neural Networks as Automata

Computation and Language 2021-01-06 v3 Formal Languages and Automata Theory Machine Learning

Abstract

This work attempts to explain the types of computation that neural networks can perform by relating them to automata. We first define what it means for a real-time network with bounded precision to accept a language. A measure of network memory follows from this definition. We then characterize the classes of languages acceptable by various recurrent networks, attention, and convolutional networks. We find that LSTMs function like counter machines and relate convolutional networks to the subregular hierarchy. Overall, this work attempts to increase our understanding and ability to interpret neural networks through the lens of theory. These theoretical insights help explain neural computation, as well as the relationship between neural networks and natural language grammar.

Keywords

Cite

@article{arxiv.1906.01615,
  title  = {Sequential Neural Networks as Automata},
  author = {William Merrill},
  journal= {arXiv preprint arXiv:1906.01615},
  year   = {2021}
}

Comments

To appear in the proceedings of the Deep Learning and Formal Languages workshop at ACL 2019

R2 v1 2026-06-23T09:41:54.682Z