arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2201.00043cs.CVcs.LG
收藏

视觉Transformer的多维模型压缩

Multi-Dimensional Model Compression of Vision Transformer

Princeton University(普林斯顿大学)

Zejiang Hou, Sun-Yuan Kung

摘要:

视觉Transformer(ViT)最近引起了相当大的关注,但巨大的计算成本仍然是实际部署的问题。以往的ViT剪枝方法倾向于只沿一维方向对模型进行剪枝,这可能会导致过度约简,导致模型质量不佳。相比之下,我们提倡多维ViT压缩范式,并提出利用注意头,神经元和序列维度联合减少冗余。我们首先提出了一个基于统计依赖的修剪准则,该准则可推广到不同的维度,用于识别有害成分。此外,我们将多维压缩作为一种优化,学习在计算预算下最大化压缩模型准确性的三维最佳修剪策略。我们的自适应高斯过程搜索解决了这个问题,预期的改善。实验结果表明,该方法有效地降低了各种ViT模型的计算成本。例如,我们的方法减少了40\%的FLOP,而没有损失DeiT和T2 T-ViT模型的前1精度,优于以前的最先进技术。

英文摘要:

Vision transformers (ViT) have recently attracted considerable attentions, but the huge computational cost remains an issue for practical deployment. Previous ViT pruning methods tend to prune the model along one dimension solely, which may suffer from excessive reduction and lead to sub-optimal model quality. In contrast, we advocate a multi-dimensional ViT compression paradigm, and propose to harness the redundancy reduction from attention head, neuron and sequence dimensions jointly. We firstly propose a statistical dependence based pruning criterion that is generalizable to different dimensions for identifying deleterious components. Moreover, we cast the multi-dimensional compression as an optimization, learning the optimal pruning policy across the three dimensions that maximizes the compressed model's accuracy under a computational budget. The problem is solved by our adapted Gaussian process search with expected improvement. Experimental results show that our method effectively reduces the computational cost of various ViT models. For example, our method reduces 40\% FLOPs without top-1 accuracy loss for DeiT and T2T-ViT models, outperforming previous state-of-the-arts.

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

↑