arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.07799cs.LGstat.ML
收藏

Transformers中的自适应注意广度

Adaptive Attention Span in Transformers

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

Sainbayar Sukhbaatar, Edouard Grave, Piotr Bojanowski, Armand Joulin

摘要:

我们提出了一种新的自我注意机制,可以学习其最佳的注意广度。这使我们能够显著扩展Transformer中使用的最大上下文大小,同时保持对它们的内存占用和计算时间的控制。我们展示了我们的方法在字符级语言建模任务上的有效性,通过使用最大8k字符的上下文,我们在text8和enwiki8上实现了最先进的性能。

英文摘要:

We propose a novel self-attention mechanism that can learn its optimal attention span. This allows us to extend significantly the maximum context size used in Transformer, while maintaining control over their memory footprint and computational time. We show the effectiveness of our approach on the task of character level language modeling, where we achieve state-of-the-art performances on text8 and enwiki8 by using a maximum context of 8k characters.

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

↑