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

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

计算机科学 > 计算与语言

arXiv:2201.03327 (cs)
[提交于 2022年1月10日 (v1),最后修订于 2024年9月18日 (此版本, v9)]

标题:Latency Adjustable Transformer Encoder for Language Understanding

作者:Sajjad Kachuee, Mohammad Sharifkhani
查看论文《Latency Adjustable Transformer Encoder for Language Understanding》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Adjusting the latency, power, and accuracy of natural language understanding models is a desirable objective of an efficient architecture. This paper proposes an efficient Transformer architecture that adjusts the inference computational cost adaptively with a desired inference latency speedup. In fine-tuning phase, the proposed method detects less important hidden sequence elements (word-vectors) and eliminates them in each encoder layer using a proposed Attention Context Contribution (ACC) metric. After the fine-tuning phase, with the novel offline-tuning property, the inference latency of the model can be adjusted in a wide range of inference speedup selections without any further training. Extensive experiments reveal that most word-vectors in higher Transformer layers contribute less to subsequent layers, allowing their removal to improve inference latency. Experimental results on various language understanding, text generation, and instruction tuning tasks and benchmarks demonstrate the approach's effectiveness across diverse datasets, with minimal impact on the input's global context. The technique improves Time-to-First-Token (TTFT) of Llama3 by up to 2.9x, with minor performance drop. The suggested approach posits that in Large Language Models (LLMs), although the complete network is necessary for training, it can be truncated during the fine-tuning phase.
主题: 计算与语言 (cs.CL)
引用方式: arXiv:2201.03327 [cs.CL]
  (或者 arXiv:2201.03327v9 [cs.CL] 对于此版本)
  https://doi.org/10.48550/arXiv.2201.03327

提交历史

来自:Sajjad Kachuee
[v1] 2022年1月10日 星期一 13:04:39 UTC
[v2] 2022年1月14日 星期五 14:45:24 UTC
[v3] 2022年2月11日 星期五 07:53:45 UTC
[v4] 2022年3月17日 星期四 14:04:59 UTC
[v5] 2022年6月21日 星期二 17:27:55 UTC
[v7] 2023年12月20日 星期三 17:41:51 UTC
[v9] 2024年9月18日 星期三 19:48:06 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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