arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.13324cs.CL
收藏

一种用于序列建模的轻量级递归网络

A Lightweight Recurrent Network for Sequence Modeling

University of Edinburgh(爱丁堡大学);University of Zurich(苏黎世大学)

Biao Zhang, Rico Sennrich

摘要:

递归网络在复杂递归单元的帮助下在各种顺序任务上取得了巨大的成功,但由于并行性差,导致计算效率低下。缓解这个问题的一个方向是将繁重的计算转移到递归之外。在本文中,我们提出了一个轻量级的递归网络,或LRN。LRN使用输入和遗忘门来处理长期依赖关系以及梯度消失和爆炸,所有参数相关的计算都在递归之外。LRN中的递归只操纵分配给每个标记的权重,将LRN与自我注意网络紧密连接起来。我们将LRN作为几个神经序列模型中现有递归单元的替代。在六个NLP任务上的大量实验表明,LRN在模型性能几乎没有损失的情况下产生了最佳的运行效率。

英文摘要:

Recurrent networks have achieved great success on various sequential tasks with the assistance of complex recurrent units, but suffer from severe computational inefficiency due to weak parallelization. One direction to alleviate this issue is to shift heavy computations outside the recurrence. In this paper, we propose a lightweight recurrent network, or LRN. LRN uses input and forget gates to handle long-range dependencies as well as gradient vanishing and explosion, with all parameter related calculations factored outside the recurrence. The recurrence in LRN only manipulates the weight assigned to each token, tightly connecting LRN with self-attention networks. We apply LRN as a drop-in replacement of existing recurrent units in several neural sequential models. Extensive experiments on six NLP tasks show that LRN yields the best running efficiency with little or no loss in model performance.

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

↑