arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.08500cs.CV
收藏

视觉Transformer修剪

Vision Transformer Pruning

Zhejiang University(浙江大学);Westlake University(西湖大学);Peking University(北京大学);Noah’s Ark Lab, Huawei Technologies(华为技术有限公司诺亚方舟实验室)

Mingjian Zhu, Yehui Tang, Kai Han

摘要:

视觉Transformer在各种计算机视觉应用中取得了有竞争力的性能。然而,它们的存储、运行时内存和计算需求阻碍了移动设备的部署。在这里,我们提出了一个视觉Transformer修剪方法,该方法识别维度在Transformer的每一层中的影响,然后相应地执行修剪。通过鼓励Transformer中的维度稀疏性,重要的维度会自动出现。可以丢弃大量重要性分数小的维度,以实现高修剪率,而不会显着损害准确性。用于视觉Transformer修剪的流水线如下:1)使用稀疏正则化进行训练; 2)修剪线性投影的维度; 3)微调。在ImageNet数据集上对所提出的算法的参数和FLOPs比率进行了很好的评估和分析,以证明我们所提出的方法的有效性。

英文摘要:

Vision transformer has achieved competitive performance on a variety of computer vision applications. However, their storage, run-time memory, and computational demands are hindering the deployment to mobile devices. Here we present a vision transformer pruning approach, which identifies the impacts of dimensions in each layer of transformer and then executes pruning accordingly. By encouraging dimension-wise sparsity in the transformer, important dimensions automatically emerge. A great number of dimensions with small importance scores can be discarded to achieve a high pruning ratio without significantly compromising accuracy. The pipeline for vision transformer pruning is as follows: 1) training with sparsity regularization; 2) pruning dimensions of linear projections; 3) fine-tuning. The reduced parameters and FLOPs ratios of the proposed algorithm are well evaluated and analyzed on ImageNet dataset to demonstrate the effectiveness of our proposed method.

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

↑