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

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

计算机科学 > 计算与语言

arXiv:2103.07601 (cs)
[提交于 2021年3月13日 (v1),最后修订于 2021年10月20日 (此版本, v3)]

标题:Approximating How Single Head Attention Learns

作者:Charlie Snell, Ruiqi Zhong, Dan Klein, Jacob Steinhardt
查看论文《Approximating How Single Head Attention Learns》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Why do models often attend to salient words, and how does this evolve throughout training? We approximate model training as a two stage process: early on in training when the attention weights are uniform, the model learns to translate individual input word `i` to `o` if they co-occur frequently. Later, the model learns to attend to `i` while the correct output is $o$ because it knows `i` translates to `o`. To formalize, we define a model property, Knowledge to Translate Individual Words (KTIW) (e.g. knowing that `i` translates to `o`), and claim that it drives the learning of the attention. This claim is supported by the fact that before the attention mechanism is learned, KTIW can be learned from word co-occurrence statistics, but not the other way around. Particularly, we can construct a training distribution that makes KTIW hard to learn, the learning of the attention fails, and the model cannot even learn the simple task of copying the input words to the output. Our approximation explains why models sometimes attend to salient words, and inspires a toy example where a multi-head attention model can overcome the above hard training distribution by improving learning dynamics rather than expressiveness. We end by discussing the limitation of our approximation framework and suggest future directions.
主题: 计算与语言 (cs.CL); 人工智能 (cs.AI)
引用方式: arXiv:2103.07601 [cs.CL]
  (或者 arXiv:2103.07601v3 [cs.CL] 对于此版本)
  https://doi.org/10.48550/arXiv.2103.07601

提交历史

来自:Ruiqi Zhong
[v1] 2021年3月13日 星期六 02:32:19 UTC
[v3] 2021年10月20日 星期三 20:57:45 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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