Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Fan, Ting-Han, Chi, Ta-Chung, Rudnicky, Alexander I.
Format: Preprint
Veröffentlicht: 2023
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2309.07412
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909163709267968
author Fan, Ting-Han
Chi, Ta-Chung
Rudnicky, Alexander I.
author_facet Fan, Ting-Han
Chi, Ta-Chung
Rudnicky, Alexander I.
contents In recent studies, linear recurrent neural networks (LRNNs) have achieved Transformer-level performance in natural language and long-range modeling, while offering rapid parallel training and constant inference cost. With the resurgence of interest in LRNNs, we study whether they can learn the hidden rules in training sequences, such as the grammatical structures of regular language. We theoretically analyze some existing LRNNs and discover their limitations in modeling regular language. Motivated by this analysis, we propose a new LRNN equipped with a block-diagonal and input-dependent transition matrix. Experiments suggest that the proposed model is the only LRNN capable of performing length extrapolation on regular language tasks such as Sum, Even Pair, and Modular Arithmetic. The code is released at \url{https://github.com/tinghanf/RegluarLRNN}.
format Preprint
id arxiv_https___arxiv_org_abs_2309_07412
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Advancing Regular Language Reasoning in Linear Recurrent Neural Networks
Fan, Ting-Han
Chi, Ta-Chung
Rudnicky, Alexander I.
Computation and Language
Machine Learning
In recent studies, linear recurrent neural networks (LRNNs) have achieved Transformer-level performance in natural language and long-range modeling, while offering rapid parallel training and constant inference cost. With the resurgence of interest in LRNNs, we study whether they can learn the hidden rules in training sequences, such as the grammatical structures of regular language. We theoretically analyze some existing LRNNs and discover their limitations in modeling regular language. Motivated by this analysis, we propose a new LRNN equipped with a block-diagonal and input-dependent transition matrix. Experiments suggest that the proposed model is the only LRNN capable of performing length extrapolation on regular language tasks such as Sum, Even Pair, and Modular Arithmetic. The code is released at \url{https://github.com/tinghanf/RegluarLRNN}.
title Advancing Regular Language Reasoning in Linear Recurrent Neural Networks
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2309.07412