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

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

计算机科学 > 计算与语言

arXiv:2012.02030 (cs)
[提交于 2020年11月20日 (v1),最后修订于 2024年5月17日 (此版本, v3)]

标题:Data-Informed Global Sparseness in Attention Mechanisms for Deep Neural Networks

作者:Ileana Rugina, Rumen Dangovski, Li Jing, Preslav Nakov, Marin Soljačić
查看论文《Data-Informed Global Sparseness in Attention Mechanisms for Deep Neural Networks》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Attention mechanisms play a crucial role in the neural revolution of Natural Language Processing (NLP). With the growth of attention-based models, several pruning techniques have been developed to identify and exploit sparseness, making these models more efficient. Most efforts focus on hard-coding attention patterns or pruning attention weights based on training data. We propose Attention Pruning (AP), a framework that observes attention patterns in a fixed dataset and generates a global sparseness mask. AP saves 90% of attention computation for language modeling and about 50% for machine translation and GLUE tasks, maintaining result quality. Our method reveals important distinctions between self- and cross-attention patterns, guiding future NLP research. Our framework can reduce both latency and memory requirements for any attention-based model, aiding in the development of improved models for existing or new NLP applications. We have demonstrated this with encoder and autoregressive transformer models using Triton GPU kernels and make our code publicly available at https://github.com/irugina/AP.
评论: Presented at LREC-COLING 2024: 12 pages, 4 figures, 11 tables
主题: 计算与语言 (cs.CL)
引用方式: arXiv:2012.02030 [cs.CL]
  (或者 arXiv:2012.02030v3 [cs.CL] 对于此版本)
  https://doi.org/10.48550/arXiv.2012.02030

提交历史

来自:Rumen Dangovski
[v1] 2020年11月20日 星期五 13:58:21 UTC
[v3] 2024年5月17日 星期五 13:30:15 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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