arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.05964cs.LGcs.CLcs.CV

Transformer压缩方法综述

A Survey on Transformer Compression

Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Yehui Tang, Yunhe Wang, Jianyuan Guo, Zhijun Tu, Kai Han, Hailin Hu, Dacheng Tao

AI总结:

本文系统综述了Transformer模型的压缩方法,涵盖剪枝、量化、知识蒸馏和高效架构设计四类技术,并探讨了其在语言与视觉任务中的应用及未来方向。

摘要:

Transformer在自然语言处理(NLP)和计算机视觉(CV)领域发挥着至关重要的作用,尤其是在构建大语言模型(LLM)和大视觉模型(LVM)方面。模型压缩方法能够降低Transformer的内存和计算开销,这是在实际设备上部署大语言/视觉模型的必要步骤。鉴于Transformer独特的架构特点,即交替出现的注意力模块和前馈神经网络(FFN)模块,通常需要采用专门的压缩技术。这些压缩方法的效率也至关重要,因为在完整训练数据集上重新训练大模型通常是不切实际的。本综述对近年来的压缩方法进行了全面回顾,特别关注其在基于Transformer的模型上的应用。压缩方法主要分为剪枝、量化、知识蒸馏和高效架构设计(Mamba、RetNet、RWKV等)。在每一类方法中,我们分别讨论了面向语言任务和视觉任务的压缩方法,并强调了其中共同的基本原理。最后,我们深入探讨了各种压缩方法之间的关系,并讨论了该领域的未来研究方向。

英文摘要:

Transformer plays a vital role in the realms of natural language processing (NLP) and computer vision (CV), specially for constructing large language models (LLM) and large vision models (LVM). Model compression methods reduce the memory and computational cost of Transformer, which is a necessary step to implement large language/vision models on practical devices. Given the unique architecture of Transformer, featuring alternative attention and feedforward neural network (FFN) modules, specific compression techniques are usually required. The efficiency of these compression methods is also paramount, as retraining large models on the entire training dataset is usually impractical. This survey provides a comprehensive review of recent compression methods, with a specific focus on their application to Transformer-based models. The compression methods are primarily categorized into pruning, quantization, knowledge distillation, and efficient architecture design (Mamba, RetNet, RWKV, etc.). In each category, we discuss compression methods for both language and vision tasks, highlighting common underlying principles. Finally, we delve into the relation between various compression methods, and discuss further directions in this domain.

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

↑