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

使用Recurrent Discounted Attention单元有效地将注意力应用于序列数据

Efficiently applying attention to sequential data with the Recurrent Discounted Attention unit

Institute of Security Science and Technology(安全技术研究所);Imperial College London(帝国理工学院)

Brendan Maginnis, Pierre H. Richemond

摘要:

递归神经网络架构擅长通过对不同时间尺度上的依赖关系进行建模来处理序列。最近引入的递归加权平均(RWA)单元在几个具有挑战性的任务上比LSTM更好地捕获长期依赖关系。RWA通过对每个输入应用注意力并计算其计算的整个历史的加权平均值来实现这一点。不幸的是,RWA无法改变它分配给先前时间步的注意力,因此难以执行连续的任务或具有变化需求的任务。我们提出的经常性折扣注意力(RDA)单位,建立在RWA额外允许过去的折扣。我们在几个具有挑战性的任务上将我们的模型与RWA,LSTM和GRU单元进行了经验比较。在具有单一输出的任务中,RWA、RDA和GRU单元的学习速度比LSTM快得多,性能也更好。在多序列复制任务中,我们的RDA单元学习任务的速度是LSTM或GRU单元的三倍,而RWA根本无法学习。在Wikipedia字符预测任务中,LSTM表现最好,但紧随其后的是我们的RDA单元。总的来说,我们的RDA单元表现良好,并且在各种各样的序列任务上都是高效的。

英文摘要:

Recurrent Neural Networks architectures excel at processing sequences by modelling dependencies over different timescales. The recently introduced Recurrent Weighted Average (RWA) unit captures long term dependencies far better than an LSTM on several challenging tasks. The RWA achieves this by applying attention to each input and computing a weighted average over the full history of its computations. Unfortunately, the RWA cannot change the attention it has assigned to previous timesteps, and so struggles with carrying out consecutive tasks or tasks with changing requirements. We present the Recurrent Discounted Attention (RDA) unit that builds on the RWA by additionally allowing the discounting of the past. We empirically compare our model to RWA, LSTM and GRU units on several challenging tasks. On tasks with a single output the RWA, RDA and GRU units learn much quicker than the LSTM and with better performance. On the multiple sequence copy task our RDA unit learns the task three times as quickly as the LSTM or GRU units while the RWA fails to learn at all. On the Wikipedia character prediction task the LSTM performs best but it followed closely by our RDA unit. Overall our RDA unit performs well and is sample efficient on a large variety of sequence tasks.

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

↑