arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.07904cs.CL
收藏

HGRN2:带状态扩展的门控线性循环神经网络

HGRN2: Gated Linear RNNs with State Expansion

TapTap;MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);OpenNLPLab;Shanghai AI Lab(上海人工智能实验室)

Zhen Qin, Songlin Yang, Weixuan Sun, Xuyang Shen, Dong Li, Weigao Sun, Yiran Zhong

AI总结:

针对HGRN循环状态尺寸小、表达能力受限的问题,提出基于外积的无额外参数状态扩展机制得到HGRN2,兼具线性注意力可解释性与硬件高效训练优势,实验证明其性能优于HGRN且对标其他循环模型。

摘要:

分层门控线性循环神经网络(HGRN)在语言建模任务中展现出具有竞争力的训练速度与性能,同时还能实现高效推理。但HGRN的循环状态尺寸相对较小,限制了其表达能力。为解决该问题,我们提出一种简单的基于外积的状态扩展机制,可在不引入任何额外参数的前提下显著增大循环状态尺寸。这一改进还为HGRN2提供了线性注意力视角的解释,使其能够实现硬件高效的训练。我们开展的大量实验验证了,在不同设置下HGRN2的性能始终优于HGRN,且与其他循环模型相比具备竞争力。

英文摘要:

Hierarchically gated linear RNN (HGRN, \citealt{HGRN}) has demonstrated competitive training speed and performance in language modeling while offering efficient inference. However, the recurrent state size of HGRN remains relatively small, limiting its expressiveness. To address this issue, we introduce a simple outer product-based state expansion mechanism, which significantly enlarges the recurrent state size without introducing any additional parameters. This enhancement also provides a linear attention interpretation for HGRN2, enabling hardware-efficient training. Our extensive experiments verify the advantage of HGRN2 over HGRN consistently across different settings and competitive with other recurrent models.

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

↑