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

S2HPruner:从软到硬的蒸馏弥合剪枝中的离散化鸿沟

S2HPruner: Soft-to-Hard Distillation Bridges the Discretization Gap in Pruning

School of Information Science and Technology, Fudan University(复旦大学信息科学与技术学院);Academy for Engineering and Technology, Fudan University(复旦大学工程技术研究院);Shanghai AI Laboratory(上海人工智能实验室)

Weihao Lin, Shengji Tang, Chong Yu, Peng Ye, Tao Chen

AI总结:

针对可微掩码剪枝中软网络离散化为硬网络时存在的离散化鸿沟问题,提出S2HPruner框架,通过解耦双向知识蒸馏以单阶段弥合该鸿沟,在多基准和架构上无需微调即取得更优剪枝性能。

摘要:

近年来,可微掩码剪枝方法通过优化连续松弛架构(软网络)作为剪枝后离散网络(硬网络)的代理,以实现更优的子架构搜索。然而,由于离散化过程的影响具有不可知性,硬网络难以获得与软网络相当的表征能力,这一问题被称为离散化鸿沟,会严重损害剪枝性能。本文首先对离散化鸿沟展开研究,提出了一种名为S2HPruner的新型结构化可微掩码剪枝框架,以单阶段方式弥合离散化鸿沟。在训练过程中,S2HPruner同时前向传播软网络及其对应的硬网络,随后在软网络的监督下对硬网络进行蒸馏。为优化掩码并防止性能下降,我们提出了解耦双向知识蒸馏方法:该方法阻断从硬网络到软网络的权重更新,同时保留与掩码对应的梯度。与现有剪枝技术相比,S2HPruner在无需微调的情况下,在CIFAR-100、Tiny ImageNet、ImageNet等多个综合基准以及多种网络架构上均取得了更优的剪枝性能。此外,探究与分析实验验证了S2HPruner的有效性,代码即将发布。

英文摘要:

Recently, differentiable mask pruning methods optimize the continuous relaxation architecture (soft network) as the proxy of the pruned discrete network (hard network) for superior sub-architecture search. However, due to the agnostic impact of the discretization process, the hard network struggles with the equivalent representational capacity as the soft network, namely discretization gap, which severely spoils the pruning performance. In this paper, we first investigate the discretization gap and propose a novel structural differentiable mask pruning framework named S2HPruner to bridge the discretization gap in a one-stage manner. In the training procedure, SH2Pruner forwards both the soft network and its corresponding hard network, then distills the hard network under the supervision of the soft network. To optimize the mask and prevent performance degradation, we propose a decoupled bidirectional knowledge distillation. It blocks the weight updating from the hard to the soft network while maintaining the gradient corresponding to the mask. Compared with existing pruning arts, S2HPruner achieves surpassing pruning performance without fine-tuning on comprehensive benchmarks, including CIFAR-100, Tiny ImageNet, and ImageNet with a variety of network architectures. Besides, investigation and analysis experiments explain the effectiveness of S2HPruner. Codes will be released soon.

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

↑