Sequential Neural Networks as Automata

06/04/2019
by   William Merrill, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/15/2020

On the Linguistic Capacity of Real-Time Counter Automata

Counter machines have achieved a newfound relevance to the field of natu...
research
06/27/2022

Extracting Weighted Finite Automata from Recurrent Neural Networks for Natural Languages

Recurrent Neural Networks (RNNs) have achieved tremendous success in seq...
research
10/02/2015

A Primer on Neural Network Models for Natural Language Processing

Over the past few years, neural networks have re-emerged as powerful mac...
research
12/07/2021

Learning Theory Can (Sometimes) Explain Generalisation in Graph Neural Networks

In recent years, several results in the supervised learning setting sugg...
research
06/09/2019

LSTM Networks Can Perform Dynamic Counting

In this paper, we systematically assess the ability of standard recurren...
research
10/15/2020

RNNs can generate bounded hierarchical languages with optimal memory

Recurrent neural networks empirically generate natural language with hig...
research
09/07/2016

A modular architecture for transparent computation in Recurrent Neural Networks

Computation is classically studied in terms of automata, formal language...

Please sign up or login with your details

Forgot password? Click here to reset