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

基于少量样本的密集视觉Transformer压缩

Dense Vision Transformer Compression with Few Samples

National Key Laboratory for Novel Software Technology, Nanjing University(南京大学计算机软件新技术国家重点实验室);School of Artificial Intelligence, Nanjing University(南京大学人工智能学院)

Hanxiao Zhang, Yifan Zhou, Guo-Hua Wang, Jianxin Wu

AI总结:

本文提出DC-ViT框架,通过选择性消除注意力模块并重用MLP部分实现视觉Transformer的密集少样本压缩,以10个百分点优势超越现有方法并降低延迟。

摘要:

少样本模型压缩旨在仅使用极小的训练集(甚至无标签)将大模型压缩为更紧凑的模型。块级剪枝近来已成为少样本CNN压缩中实现高精度和低延迟的领先技术。然而,视觉Transformer(ViT)的少样本压缩在很大程度上仍未得到探索,这带来了新的挑战。特别是,传统CNN少样本方法存在稀疏压缩的问题,只能产生极少数量不同模型尺寸的压缩模型。本文提出了一种名为DC-ViT的新型少样本ViT压缩框架。DC-ViT不是丢弃整个块,而是选择性地消除注意力模块,同时保留并重用MLP模块的部分内容。DC-ViT实现了密集压缩,能够输出大量压缩模型,密集地覆盖模型复杂度的范围。DC-ViT在ViT及其变体的压缩中,以10个百分点的显著优势超越了最先进的少样本压缩方法,同时具有更低的延迟。

英文摘要:

Few-shot model compression aims to compress a large model into a more compact one with only a tiny training set (even without labels). Block-level pruning has recently emerged as a leading technique in achieving high accuracy and low latency in few-shot CNN compression. But, few-shot compression for Vision Transformers (ViT) remains largely unexplored, which presents a new challenge. In particular, the issue of sparse compression exists in traditional CNN few-shot methods, which can only produce very few compressed models of different model sizes. This paper proposes a novel framework for few-shot ViT compression named DC-ViT. Instead of dropping the entire block, DC-ViT selectively eliminates the attention module while retaining and reusing portions of the MLP module. DC-ViT enables dense compression, which outputs numerous compressed models that densely populate the range of model complexity. DC-ViT outperforms state-of-the-art few-shot compression methods by a significant margin of 10 percentage points, along with lower latency in the compression of ViT and its variants.

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

↑