On Efficiently Representing Regular Languages as RNNs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Svete, Anej, Chan, Robin Shing Moon, Cotterell, Ryan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911923719634944
author Svete, Anej
Chan, Robin Shing Moon
Cotterell, Ryan
author_facet Svete, Anej
Chan, Robin Shing Moon
Cotterell, Ryan
contents 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 can RNNs 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 claimed -- specifically, 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_15814
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle On Efficiently Representing Regular Languages as RNNs
Svete, Anej
Chan, Robin Shing Moon
Cotterell, Ryan
Computation and Language
Computational Complexity
Machine Learning
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 can RNNs 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 claimed -- specifically, 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.
title On Efficiently Representing Regular Languages as RNNs
topic Computation and Language
Computational Complexity
Machine Learning
url https://arxiv.org/abs/2402.15814