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

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

计算机科学 > 硬件体系结构

arXiv:2208.06118 (cs)
[提交于 2022年8月12日]

标题:An Algorithm-Hardware Co-Optimized Framework for Accelerating N:M Sparse Transformers

作者:Chao Fang, Aojun Zhou, Zhongfeng Wang
查看论文《An Algorithm-Hardware Co-Optimized Framework for Accelerating N:M Sparse Transformers》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:The Transformer has been an indispensable staple in deep learning. However, for real-life applications, it is very challenging to deploy efficient Transformers due to immense parameters and operations of models. To relieve this burden, exploiting sparsity is an effective approach to accelerate Transformers. Newly emerging Ampere GPUs leverage a 2:4 sparsity pattern to achieve model acceleration, while it can hardly meet the diverse algorithm and hardware constraints when deploying models. By contrast, we propose an algorithm-hardware co-optimized framework to flexibly and efficiently accelerate Transformers by utilizing general N:M sparsity patterns. (1) From algorithm perspective, we propose a sparsity inheritance mechanism along with an inherited dynamic pruning (IDP) method to obtain a series of N:M sparse candidate Transformers rapidly. A model compression scheme is further proposed to significantly reduce the storage requirement for deployment. (2) From hardware perspective, we present a flexible and efficient hardware architecture, namely STA, to achieve significant speedup when deploying N:M sparse Transformers. STA features not only a computing engine unifying both sparse-dense and dense-dense matrix multiplications with high computational efficiency but also a scalable softmax module eliminating the latency from intermediate off-chip data communication. Experimental results show that compared to other methods, N:M sparse Transformers, generated using IDP, achieves an average of 6.7% improvement on accuracy with high training efficiency. Moreover, STA can achieve 14.47x and 11.33x speedup compared to Intel i9-9900X and NVIDIA RTX 2080 Ti, respectively, and perform 2.00-19.47x faster inference than the state-of-the-art FPGA-based accelerators for Transformers.
评论: To appear in IEEE Transactions on Very Large Scale Integration (VLSI) Systems
主题: 硬件体系结构 (cs.AR); 机器学习 (cs.LG)
引用方式: arXiv:2208.06118 [cs.AR]
  (或者 arXiv:2208.06118v1 [cs.AR] 对于此版本)
  https://doi.org/10.48550/arXiv.2208.06118
期刊参考: IEEE Trans. Very Large Scale Integr. Syst. 30 (2022) 1573 - 1586
相关 DOI: https://doi.org/10.1109/TVLSI.2022.3197282

提交历史

来自:Chao Fang
[v1] 2022年8月12日 星期五 04:51:49 UTC
全文链接:

访问论文:

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

当前浏览上下文:

cs.AR
< 上一篇   |   下一篇 >
最新 | 近期 | 2022-08
切换浏览方式为:
cs
cs.LG

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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