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

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

计算机科学 > 神经与演化计算

arXiv:1911.02150 (cs)
[提交于 2019年11月7日]

标题:Fast Transformer Decoding: One Write-Head is All You Need

作者:Noam Shazeer
查看论文《Fast Transformer Decoding: One Write-Head is All You Need》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Multi-head attention layers, as used in the Transformer neural sequence model, are a powerful alternative to RNNs for moving information across and between sequences. While training these layers is generally fast and simple, due to parallelizability across the length of the sequence, incremental inference (where such paralleization is impossible) is often slow, due to the memory-bandwidth cost of repeatedly loading the large "keys" and "values" tensors. We propose a variant called multi-query attention, where the keys and values are shared across all of the different attention "heads", greatly reducing the size of these tensors and hence the memory bandwidth requirements of incremental decoding. We verify experimentally that the resulting models can indeed be much faster to decode, and incur only minor quality degradation from the baseline.
主题: 神经与演化计算 (cs.NE); 计算与语言 (cs.CL); 机器学习 (cs.LG)
引用方式: arXiv:1911.02150 [cs.NE]
  (或者 arXiv:1911.02150v1 [cs.NE] 对于此版本)
  https://doi.org/10.48550/arXiv.1911.02150

提交历史

来自:Noam Shazeer
[v1] 2019年11月7日 星期四 00:00:00 UTC
全文链接:

访问论文:

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

当前浏览上下文:

cs.NE
< 上一篇   |   下一篇 >
最新 | 近期 | 2019-11
切换浏览方式为:
cs
cs.CL
cs.LG

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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