跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 机器学习

arXiv:2003.05997 (cs)
[提交于 2020年3月12日 (v1),最后修订于 2020年10月24日 (此版本, v5)]

标题:Efficient Content-Based Sparse Attention with Routing Transformers

作者:Aurko Roy, Mohammad Saffar, Ashish Vaswani, David Grangier
查看论文《Efficient Content-Based Sparse Attention with Routing Transformers》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Self-attention has recently been adopted for a wide range of sequence modeling problems. Despite its effectiveness, self-attention suffers from quadratic compute and memory requirements with respect to sequence length. Successful approaches to reduce this complexity focused on attending to local sliding windows or a small set of locations independent of content. Our work proposes to learn dynamic sparse attention patterns that avoid allocating computation and memory to attend to content unrelated to the query of interest. This work builds upon two lines of research: it combines the modeling flexibility of prior work on content-based sparse attention with the efficiency gains from approaches based on local, temporal sparse attention. Our model, the Routing Transformer, endows self-attention with a sparse routing module based on online k-means while reducing the overall complexity of attention to $O\left(n^{1.5}d\right)$ from $O\left(n^2d\right)$ for sequence length $n$ and hidden dimension $d$. We show that our model outperforms comparable sparse attention models on language modeling on Wikitext-103 (15.8 vs 18.3 perplexity) as well as on image generation on ImageNet-64 (3.43 vs 3.44 bits/dim) while using fewer self-attention layers. Additionally, we set a new state-of-the-art on the newly released PG-19 data-set, obtaining a test perplexity of 33.2 with a 22 layer Routing Transformer model trained on sequences of length 8192.
评论: TACL 2020; pre-MIT Press publication version; v5 has a random attention baseline
主题: 机器学习 (cs.LG); 音频与语音处理 (eess.AS); 机器学习 (stat.ML)
引用方式: arXiv:2003.05997 [cs.LG]
  (或者 arXiv:2003.05997v5 [cs.LG] 对于此版本)
  https://doi.org/10.48550/arXiv.2003.05997

提交历史

来自:Aurko Roy
[v1] 2020年3月12日 星期四 19:50:14 UTC
[v2] 2020年8月17日 星期一 19:22:32 UTC
[v4] 2020年10月13日 星期二 02:42:17 UTC
[v5] 2020年10月24日 星期六 19:41:17 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

stat.ML
< 上一篇   |   下一篇 >
最新 | 近期 | 2020-10
切换浏览方式为:
cs
cs.LG
eess.AS

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站