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

CAP:面向高精度稀疏视觉模型的相关性感知剪枝

CAP: Correlation-Aware Pruning for Highly-Accurate Sparse Vision Models

Skoltech(斯科尔科沃科学技术研究所);Yandex(央捷科斯);IST Austria(奥地利科学技术研究所);Neural Magic(神经魔法)

Denis Kuznedelev, Eldar Kurtic, Elias Frantar, Dan Alistarh

AI总结:

本文提出相关性感知剪枝框架 CAP,通过理论支撑的权重相关性处理与高效微调,首次将 ViT、现代 CNN 及混合模型剪枝至高稀疏度且准确率损失极小,并兼容结构化剪枝与量化。

摘要:

在架构设计和训练流程显著改进的推动下,计算机视觉近期在 ImageNet 等经典基准上的准确率取得了巨大进步。这些高精度模型难以部署,因为使用剪枝等标准技术似乎更难压缩它们。我们通过引入相关性感知剪枝器(Correlation Aware Pruner,CAP)来解决这一问题,这是一个新的非结构化剪枝框架,显著突破了最先进架构的可压缩性极限。我们的方法基于两项技术进步:一种具有理论依据的新型剪枝器,它能在剪枝过程中准确且高效地处理复杂的权重相关性;以及一种用于压缩后恢复的高效微调流程。我们通过在多个现代视觉模型上进行大量实验来验证我们的方法,这些模型包括 Vision Transformers(ViT)、现代 CNN 以及 ViT-CNN 混合模型,首次表明这些模型可以被剪枝到高稀疏度(例如 ≥75%),同时对准确率的影响很小(相对下降 ≤1%)。我们的方法还与结构化剪枝和量化兼容,并且可以在不损失准确率的情况下实现 1.5 到 2.4 倍的实际加速。为了进一步展示 CAP 的准确率和可扩展性,我们使用它首次表明,通过自监督技术训练的极高精度大型视觉模型也可以被剪枝到中等稀疏度,且准确率损失可以忽略不计。

英文摘要:

Driven by significant improvements in architectural design and training pipelines, computer vision has recently experienced dramatic progress in terms of accuracy on classic benchmarks such as ImageNet. These highly-accurate models are challenging to deploy, as they appear harder to compress using standard techniques such as pruning. We address this issue by introducing the Correlation Aware Pruner (CAP), a new unstructured pruning framework which significantly pushes the compressibility limits for state-of-the-art architectures. Our method is based on two technical advancements: a new theoretically-justified pruner, which can handle complex weight correlations accurately and efficiently during the pruning process itself, and an efficient finetuning procedure for post-compression recovery. We validate our approach via extensive experiments on several modern vision models such as Vision Transformers (ViT), modern CNNs, and ViT-CNN hybrids, showing for the first time that these can be pruned to high sparsity levels (e.g. $\geq 75$%) with low impact on accuracy ($\leq 1$% relative drop). Our approach is also compatible with structured pruning and quantization, and can lead to practical speedups of 1.5 to 2.4x without accuracy loss. To further showcase CAP's accuracy and scalability, we use it to show for the first time that extremely-accurate large vision models, trained via self-supervised techniques, can also be pruned to moderate sparsities, with negligible accuracy loss.

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

↑