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

用于序列建模的分层门控循环神经网络

Hierarchically Gated Recurrent Neural Network for Sequence Modeling

OpenNLPLab, Shanghai Artificial Intelligence Laboratory(上海人工智能实验室 OpenNLPLab);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室)

Zhen Qin, Songlin Yang, Yiran Zhong

AI总结:

针对现有线性RNN忽略循环内遗忘门作用的问题,提出分层门控循环神经网络HGRN,通过随层数单调递增的可学习遗忘门下限实现长短依赖分层建模,在多项任务上验证了有效性与效率。

摘要:

Transformer凭借其在并行训练和长距离依赖建模方面的优越能力,受欢迎程度已超越RNN。近期,学界重新燃起了将线性RNN用于高效序列建模的研究兴趣。这类线性RNN通常在线性循环层的输出端使用门控机制,却忽略了在循环内部设置遗忘门的重要性。本文提出了一种门控线性RNN模型,名为分层门控循环神经网络(Hierarchically Gated Recurrent Neural Network,HGRN),该模型包含下限为可学习值的遗忘门。随着网络层数升高,遗忘门的下限单调递增。这一设计使得上层网络能够建模长距离依赖,而下层网络则更多建模局部的短距离依赖。在语言建模、图像分类以及long-range arena基准测试上的实验证明了我们所提模型的效率与有效性。源代码已发布于https://github.com/OpenNLPLab/HGRN。

英文摘要:

Transformers have surpassed RNNs in popularity due to their superior abilities in parallel training and long-term dependency modeling. Recently, there has been a renewed interest in using linear RNNs for efficient sequence modeling. These linear RNNs often employ gating mechanisms in the output of the linear recurrence layer while ignoring the significance of using forget gates within the recurrence. In this paper, we propose a gated linear RNN model dubbed Hierarchically Gated Recurrent Neural Network (HGRN), which includes forget gates that are lower bounded by a learnable value. The lower bound increases monotonically when moving up layers. This allows the upper layers to model long-term dependencies and the lower layers to model more local, short-term dependencies. Experiments on language modeling, image classification, and long-range arena benchmarks showcase the efficiency and effectiveness of our proposed model. The source code is available at https://github.com/OpenNLPLab/HGRN.

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

↑