arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2110.04869cs.CV
收藏

基于Hessian感知显著性的全局视觉Transformer剪枝

Global Vision Transformer Pruning with Hessian-Aware Saliency

NVIDIA(英伟达);University of California, Berkeley(加州大学伯克利分校);Duke University(杜克大学)

Huanrui Yang, Hongxu Yin, Maying Shen, Pavlo Molchanov, Hai Li, Jan Kautz

摘要:

Transformers在许多任务中产生最先进的结果。然而,他们的体系结构设计的启发式在推理过程中施加了巨大的计算成本。这项工作的目的是挑战共同的设计理念的视觉Transformer(ViT)模型的统一尺寸在所有的堆叠块在一个模型阶段,在那里我们重新分配参数跨Transformer块和块内的不同结构之间通过第一次系统的尝试对全球结构修剪。处理不同的ViT结构组件,我们得到了一个新的基于Hessian的结构修剪标准,可在所有层和结构中进行比较,延迟感知正则化直接减少延迟。在DeiT-Base模型上执行迭代修剪导致了一个新的架构家族,称为NViT(Novel ViT),具有更有效地利用参数的新参数重新分配。在ImageNet-1 K上,NViT-Base以近乎无损的方式实现了比DeiT-Base模型低2.6倍的FLOPs减少,5.1倍的参数减少和1.9倍的运行时加速。较小的NViT变体在与DeiT Small/Tiny变体相同的吞吐量下实现了超过1%的精度增益,并且与SWIN-Small模型相比无损参数减少了3.3倍。这些结果大大优于现有技术。进一步的分析提供了NViT的参数重新分布的洞察力,在那里,我们显示了高修剪的ViT模型,不同的灵敏度内ViT块,和独特的参数分布趋势堆叠ViT块。我们的见解提供了一个简单而有效的参数重新分配规则的可行性,以实现更有效的ViT,以提高现成的性能。

英文摘要:

Transformers yield state-of-the-art results across many tasks. However, their heuristically designed architecture impose huge computational costs during inference. This work aims on challenging the common design philosophy of the Vision Transformer (ViT) model with uniform dimension across all the stacked blocks in a model stage, where we redistribute the parameters both across transformer blocks and between different structures within the block via the first systematic attempt on global structural pruning. Dealing with diverse ViT structural components, we derive a novel Hessian-based structural pruning criteria comparable across all layers and structures, with latency-aware regularization for direct latency reduction. Performing iterative pruning on the DeiT-Base model leads to a new architecture family called NViT (Novel ViT), with a novel parameter redistribution that utilizes parameters more efficiently. On ImageNet-1K, NViT-Base achieves a 2.6x FLOPs reduction, 5.1x parameter reduction, and 1.9x run-time speedup over the DeiT-Base model in a near lossless manner. Smaller NViT variants achieve more than 1% accuracy gain at the same throughput of the DeiT Small/Tiny variants, as well as a lossless 3.3x parameter reduction over the SWIN-Small model. These results outperform prior art by a large margin. Further analysis is provided on the parameter redistribution insight of NViT, where we show the high prunability of ViT models, distinct sensitivity within ViT block, and unique parameter distribution trend across stacked ViT blocks. Our insights provide viability for a simple yet effective parameter redistribution rule towards more efficient ViTs for off-the-shelf performance boost.

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

↑