arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.07982cs.LGcs.ARcs.CLcs.CV
收藏

Transformer推理优化技术综述

A Survey of Techniques for Optimizing Transformer Inference

Indian Institute of Technology Roorkee(印度理工学院鲁尔基分校);Argonne National Laboratory(阿贡国家实验室)

Krishna Teja Chitty-Venkata, Sparsh Mittal, Murali Emani, Venkatram Vishwanath, Arun K. Somani

AI总结:

本文系统综述Transformer推理在算法与硬件层面的优化技术,定量总结参数量、FLOPs与准确率权衡,并指出未来研究方向。

摘要:

近年来,Transformer神经网络的性能和应用取得了惊人增长。Transformer网络家族,包括来自Transformer的双向编码器表示(BERT)、生成式预训练Transformer(GPT)和视觉Transformer(ViT),已在自然语言处理(NLP)和计算机视觉(CV)领域展现出有效性。诸如ChatGPT之类基于Transformer的网络已经影响了普通人的生活。然而,对高预测性能的追求导致Transformer的内存和计算开销呈指数级增长。研究人员已经提出在各个抽象层次优化Transformer推理的技术。本文全面综述了优化Transformer网络推理阶段的技术。我们调研了算法层面的知识蒸馏、剪枝、量化、神经架构搜索和轻量级网络设计等技术。我们进一步回顾了硬件层面的优化技术以及面向Transformer的新型硬件加速器设计。我们总结了若干模型/技术在参数量/FLOPs和准确率方面的定量结果,以展示它们所实现的权衡。我们还概述了这一快速发展研究领域的未来方向。我们相信,本综述将帮助新手和经验丰富的研究人员,并激发该领域的大量研究工作。

英文摘要:

Recent years have seen a phenomenal rise in performance and applications of transformer neural networks. The family of transformer networks, including Bidirectional Encoder Representations from Transformer (BERT), Generative Pretrained Transformer (GPT) and Vision Transformer (ViT), have shown their effectiveness across Natural Language Processing (NLP) and Computer Vision (CV) domains. Transformer-based networks such as ChatGPT have impacted the lives of common men. However, the quest for high predictive performance has led to an exponential increase in transformers' memory and compute footprint. Researchers have proposed techniques to optimize transformer inference at all levels of abstraction. This paper presents a comprehensive survey of techniques for optimizing the inference phase of transformer networks. We survey techniques such as knowledge distillation, pruning, quantization, neural architecture search and lightweight network design at the algorithmic level. We further review hardware-level optimization techniques and the design of novel hardware accelerators for transformers. We summarize the quantitative results on the number of parameters/FLOPs and accuracy of several models/techniques to showcase the tradeoff exercised by them. We also outline future directions in this rapidly evolving field of research. We believe that this survey will educate both novice and seasoned researchers and also spark a plethora of research efforts in this field.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑