arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.07412cs.CLcs.LG
收藏

推进线性循环神经网络中的正则语言推理

Advancing Regular Language Reasoning in Linear Recurrent Neural Networks

Carnegie Mellon University(卡内基梅隆大学)

Ting-Han Fan, Ta-Chung Chi, Alexander I. Rudnicky

AI总结:

针对现有 LRNN 难以建模正则语言的问题,本文提出采用分块对角、输入依赖转移矩阵的新型 LRNN,并证明其可在多项正则语言任务上实现长度外推。

摘要:

在近期研究中,线性循环神经网络(LRNN)在自然语言和长程建模方面达到了 Transformer 级别的性能,同时提供快速并行训练和恒定推理成本。随着对 LRNN 的兴趣重新兴起,我们研究它们是否能够学习训练序列中的隐藏规则,例如正则语言的语法结构。我们从理论上分析了一些现有 LRNN,并发现它们在建模正则语言方面的局限。受这一分析启发,我们提出一种新型 LRNN,其配备分块对角且依赖输入的转移矩阵。实验表明,所提出的模型是唯一能够在 Sum、Even Pair 和 Modular Arithmetic 等正则语言任务上进行长度外推的 LRNN。代码已发布于 https://github.com/tinghanf/RegluarLRNN。

英文摘要:

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}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑