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

序列递归处理的阶梯注意

Staircase Attention for Recurrent Processing of Sequences

Facebook AI Research(脸书人工智能研究院)

Da Ju, Stephen Roller, Sainbayar Sukhbaatar, Jason Weston

摘要:

注意力机制已经成为序列建模任务的标准工具,特别是通过在整个输入序列上堆叠自注意力层,如在Transformer架构中。在这项工作中,我们介绍了一种新的注意力程序称为楼梯注意力,不像自我注意力,在整个序列(在时间上)通过添加另一个步骤的处理递归地处理输入。阶梯中的一个步骤由向后标记(编码到目前为止看到的序列)和向前标记(插入序列的新部分)组成,或者是一个极端的阶梯版本,向前步骤为零,简单地在阶梯的每一步上重复Transformer,共享权重。因此,我们描述了一系列这样的模型,可以权衡性能和计算,通过增加随时间推移的递归量,通过递归深度的顺序处理量,或两者兼而有之。楼梯的注意力被证明能够解决的任务,涉及跟踪,传统的Transformers不能,由于这种复发。此外,它被证明提供了改进的建模能力为相同大小的模型(参数数)相比,自我专注的Transformers对大型语言建模和对话任务,产生显着的困惑收益。

英文摘要:

Attention mechanisms have become a standard tool for sequence modeling tasks, in particular by stacking self-attention layers over the entire input sequence as in the Transformer architecture. In this work we introduce a novel attention procedure called staircase attention that, unlike self-attention, operates across the sequence (in time) recurrently processing the input by adding another step of processing. A step in the staircase comprises of backward tokens (encoding the sequence so far seen) and forward tokens (ingesting a new part of the sequence), or an extreme Ladder version with a forward step of zero that simply repeats the Transformer on each step of the ladder, sharing the weights. We thus describe a family of such models that can trade off performance and compute, by either increasing the amount of recurrence through time, the amount of sequential processing via recurrence in depth, or both. Staircase attention is shown to be able to solve tasks that involve tracking that conventional Transformers cannot, due to this recurrence. Further, it is shown to provide improved modeling power for the same size model (number of parameters) compared to self-attentive Transformers on large language modeling and dialogue tasks, yielding significant perplexity gains.

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

↑