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

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

计算机科学 > 计算与语言

arXiv:2012.14913 (cs)
[提交于 2020年12月29日]

标题:Transformer Feed-Forward Layers Are Key-Value Memories

作者:Mor Geva, Roei Schuster, Jonathan Berant, Omer Levy
查看论文《Transformer Feed-Forward Layers Are Key-Value Memories》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Feed-forward layers constitute two-thirds of a transformer model's parameters, yet their role in the network remains under-explored. We show that feed-forward layers in transformer-based language models operate as key-value memories, where each key correlates with textual patterns in the training examples, and each value induces a distribution over the output vocabulary. Our experiments show that the learned patterns are human-interpretable, and that lower layers tend to capture shallow patterns, while upper layers learn more semantic ones. The values complement the keys' input patterns by inducing output distributions that concentrate probability mass on tokens likely to appear immediately after each pattern, particularly in the upper layers. Finally, we demonstrate that the output of a feed-forward layer is a composition of its memories, which is subsequently refined throughout the model's layers via residual connections to produce the final output distribution.
评论: EMNLP 2021
主题: 计算与语言 (cs.CL)
引用方式: arXiv:2012.14913 [cs.CL]
  (或者 arXiv:2012.14913v1 [cs.CL] 对于此版本)
  https://doi.org/10.48550/arXiv.2012.14913

提交历史

来自:Mor Geva
[v1] 2020年12月29日 星期二 19:12:05 UTC
全文链接:

访问论文:

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

当前浏览上下文:

cs
< 上一篇   |   下一篇 >
最新 | 近期 | 2020-12
切换浏览方式为:
cs.CL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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