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

梳理、剪枝、蒸馏:迈向视觉模型压缩的统一剪枝

Comb, Prune, Distill: Towards Unified Pruning for Vision Model Compression

Institute for Anthropomatics and Robotics, Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院人类工程与机器人研究所)

Jonas Schmitt, Ruiping Liu, Junwei Zheng, Jiaming Zhang, Rainer Stiefelhagen

AI总结:

本文提出统一剪枝框架CPD,通过梳理层级依赖、基于重要性评分自适应剪枝并结合知识蒸馏,同时实现模型无关和任务无关的视觉模型压缩,在CNN和Transformer的分类与分割任务上验证了有效性。

摘要:

轻量且有效的模型对于资源受限的设备(如智能车辆)至关重要。结构化剪枝为模型压缩和效率提升提供了一种有前景的方法。然而,现有方法往往将剪枝技术与特定模型架构或视觉任务绑定。为了解决这一局限性,我们提出了一种新颖的统一剪枝框架 Comb, Prune, Distill (CPD),它同时解决了模型无关和任务无关的问题。我们的框架采用梳理步骤来解决层级依赖问题,从而实现架构无关性。此外,剪枝流程根据重要性评分指标自适应地移除参数,而不受视觉任务限制。为了支持模型保留其已学到的信息,我们在剪枝步骤中引入知识蒸馏。大量实验证明了我们框架的通用性,涵盖卷积神经网络(CNN)和 transformer 模型,以及图像分类和分割任务。在图像分类中,我们实现了高达 x4.3 的加速,准确率损失为 1.8%;在语义分割中,实现了高达 x1.89 的加速,mIoU 损失为 5.1%。

英文摘要:

Lightweight and effective models are essential for devices with limited resources, such as intelligent vehicles. Structured pruning offers a promising approach to model compression and efficiency enhancement. However, existing methods often tie pruning techniques to specific model architectures or vision tasks. To address this limitation, we propose a novel unified pruning framework Comb, Prune, Distill (CPD), which addresses both model-agnostic and task-agnostic concerns simultaneously. Our framework employs a combing step to resolve hierarchical layer-wise dependency issues, enabling architecture independence. Additionally, the pruning pipeline adaptively remove parameters based on the importance scoring metrics regardless of vision tasks. To support the model in retaining its learned information, we introduce knowledge distillation during the pruning step. Extensive experiments demonstrate the generalizability of our framework, encompassing both convolutional neural network (CNN) and transformer models, as well as image classification and segmentation tasks. In image classification we achieve a speedup of up to x4.3 with a accuracy loss of 1.8% and in semantic segmentation up to x1.89 with a 5.1% loss in mIoU.

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

↑