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

一种面向网络剪枝和知识蒸馏的体系结构精简方法

A Novel Architecture Slimming Method for Network Pruning and Knowledge Distillation

Zhejiang University(浙江大学)

Dongqi Wang, Shengyu Zhang, Zhipeng Di, Xin Lin, Weihua Zhou, Fei Wu

摘要:

网络剪枝和知识蒸馏是两种广为人知的模型压缩方法,有效地减少计算成本和模型大小。修剪和蒸馏中的一个共同问题是确定压缩架构,即,每层过滤器的确切数量和层配置,以保留大部分原始模型容量。尽管已有的作品有了很大的进步,但一个优秀建筑的确定仍然需要人为的干预或大量的实验。在本文中,我们提出了一个架构瘦身方法,自动化的层配置过程。我们从这样的角度出发,即通过找到保持每层最大参数方差的最小数量的滤波器,可以在很大程度上保留过参数化模型的容量,从而形成薄架构。我们制定的压缩架构的确定作为一个一步的正交线性变换,并集成主成分分析(PCA),在前几个投影中的滤波器的方差最大化。通过大量的实验,我们证明了我们的分析的合理性和所提出的方法的有效性。特别是,我们表明,在相同的整体压缩率下,由我们的方法确定的压缩架构显示出显着的性能增益超过基线后修剪和蒸馏。令人惊讶的是,我们发现,所得到的逐层压缩率对应于现有的作品通过大量的实验发现的层的敏感性。

英文摘要:

Network pruning and knowledge distillation are two widely-known model compression methods that efficiently reduce computation cost and model size. A common problem in both pruning and distillation is to determine compressed architecture, i.e., the exact number of filters per layer and layer configuration, in order to preserve most of the original model capacity. In spite of the great advances in existing works, the determination of an excellent architecture still requires human interference or tremendous experimentations. In this paper, we propose an architecture slimming method that automates the layer configuration process. We start from the perspective that the capacity of the over-parameterized model can be largely preserved by finding the minimum number of filters preserving the maximum parameter variance per layer, resulting in a thin architecture. We formulate the determination of compressed architecture as a one-step orthogonal linear transformation, and integrate principle component analysis (PCA), where the variances of filters in the first several projections are maximized. We demonstrate the rationality of our analysis and the effectiveness of the proposed method through extensive experiments. In particular, we show that under the same overall compression rate, the compressed architecture determined by our method shows significant performance gain over baselines after pruning and distillation. Surprisingly, we find that the resulting layer-wise compression rates correspond to the layer sensitivities found by existing works through tremendous experimentations.

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

↑