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

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

计算机科学 > 机器学习

arXiv:2211.16749 (cs)
[提交于 2022年11月30日]

标题:HEAT: Hardware-Efficient Automatic Tensor Decomposition for Transformer Compression

作者:Jiaqi Gu, Ben Keller, Jean Kossaifi, Anima Anandkumar, Brucek Khailany, David Z. Pan
查看论文《HEAT: Hardware-Efficient Automatic Tensor Decomposition for Transformer Compression》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Transformers have attained superior performance in natural language processing and computer vision. Their self-attention and feedforward layers are overparameterized, limiting inference speed and energy efficiency. Tensor decomposition is a promising technique to reduce parameter redundancy by leveraging tensor algebraic properties to express the parameters in a factorized form. Prior efforts used manual or heuristic factorization settings without hardware-aware customization, resulting in poor hardware efficiencies and large performance degradation. In this work, we propose a hardware-aware tensor decomposition framework, dubbed HEAT, that enables efficient exploration of the exponential space of possible decompositions and automates the choice of tensorization shape and decomposition rank with hardware-aware co-optimization. We jointly investigate tensor contraction path optimizations and a fused Einsum mapping strategy to bridge the gap between theoretical benefits and real hardware efficiency improvement. Our two-stage knowledge distillation flow resolves the trainability bottleneck and thus significantly boosts the final accuracy of factorized Transformers. Overall, we experimentally show that our hardware-aware factorized BERT variants reduce the energy-delay product by 5.7x with less than 1.1% accuracy loss and achieve a better efficiency-accuracy Pareto frontier than hand-tuned and heuristic baselines.
评论: 9 pages. Accepted to NeurIPS ML for System Workshop 2022 (Spotlight)
主题: 机器学习 (cs.LG); 人工智能 (cs.AI); 硬件体系结构 (cs.AR)
引用方式: arXiv:2211.16749 [cs.LG]
  (或者 arXiv:2211.16749v1 [cs.LG] 对于此版本)
  https://doi.org/10.48550/arXiv.2211.16749

提交历史

来自:Jiaqi Gu
[v1] 2022年11月30日 星期三 05:31:45 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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