深層モデル圧縮のための差別意識ネットワーク剪定
Discrimination-aware Network Pruning for Deep Model Compression
Discrimination-aware Network Pruning for Deep Model Compression
@misc{liu2020discriminationaware,
title = {Discrimination-aware Network Pruning for Deep Model Compression},
author = {Jing Liu and Bohan Zhuang and Zhuangwei Zhuang and Yong Guo and Junzhou Huang and Jinhui Zhu and Mingkui Tan},
year = {2020},
eprint = {2001.01050},
archivePrefix = {arXiv},
primaryClass = {cs.CV},
url = {https://arxiv.org/abs/2001.01050}
}
Liu, J., Zhuang, B., Zhuang, Z., Guo, Y., Huang, J., Zhu, J., & Tan, M. (2020). Discrimination-aware Network Pruning for Deep Model Compression [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2001.01050
LIU J, ZHUANG B, ZHUANG Z, et al. Discrimination-aware Network Pruning for Deep Model Compression[EB/OL]. (2020-01-04)[2026-11-29]. https://arxiv.org/abs/2001.01050.
要旨
本研究では、深層ネットワークの推論速度を向上させるために冗長なチャネル/カーネルを除去するネットワーク剪定(pruning)について検討する。既存の剪定手法は、疎性制約付きからゼロで再学習するか、事前学習済みモデルの特性マップと圧縮後の特性マップ間の再構成誤差を最小化する方法のいずれかである。両方の戦略には限界がある:前者は計算コストが高く収束が困難であり、後者は再構成誤差を最適化するがチャネルの識別能力を無視する。本稿では、実際に識別能力に寄与するチャネルを選択するための単純かつ効果的な手法である識別能力意識型チャネル剪定(DCP)を提案する。なお、チャネルはしばしばカーネルの集合から構成される。チャネル内の冗長性に加え、チャネル内の一部のカーネルも冗長であり、ネットワークの識別能力に寄与しない場合がある。これを解決するために、さらに深層ネットワークを圧縮し冗長なカーネルを除去する識別能力意識型カーネル剪定(DKP)を提案する。DCP/DKP が冗長なチャネル/カーネルを選択しないように、選択されるチャネル/カーネルの数を自動的に決定し、よりコンパクトで性能の良いモデルを生成する新しい適応停止条件を提案する。画像分類および顔認識の両方で大規模な実験を行った結果、我々の手法の有効性が示された。例えば、ILSVRC-12 において、チャネルを 30% 削減した結果の ResNet-50 モデルは、Top-1 精度においてベースラインモデルを 0.36% 上回った。剪定された MobileNetV1 と MobileNetV2 は、それぞれモバイルデバイス上で 1.93 倍および 1.42 倍の推論加速を実現し、性能の低下は微々たるものだった。ソースコードおよび事前学習済みモデルは https://github.com/SCUT-AILab/DCP に公開されている。
We study network pruning which aims to remove redundant channels/kernels and hence speed up the inference of deep networks. Existing pruning methods either train from scratch with sparsity constraints or minimize the reconstruction error between the feature maps of the pre-trained models and the compressed ones. Both strategies suffer from some limitations: the former kind is computationally expensive and difficult to converge, while the latter kind optimizes the reconstruction error but ignores the discriminative power of channels. In this paper, we propose a simple-yet-effective method called discrimination-aware channel pruning (DCP) to choose the channels that actually contribute to the discriminative power. Note that a channel often consists of a set of kernels. Besides the redundancy in channels, some kernels in a channel may also be redundant and fail to contribute to the discriminative power of the network, resulting in kernel level redundancy. To solve this, we propose a discrimination-aware kernel pruning (DKP) method to further compress deep networks by removing redundant kernels. To prevent DCP/DKP from selecting redundant channels/kernels, we propose a new adaptive stopping condition, which helps to automatically determine the number of selected channels/kernels and often results in more compact models with better performance. Extensive experiments on both image classification and face recognition demonstrate the effectiveness of our methods. For example, on ILSVRC-12, the resultant ResNet-50 model with 30% reduction of channels even outperforms the baseline model by 0.36% in terms of Top-1 accuracy. The pruned MobileNetV1 and MobileNetV2 achieve 1.93x and 1.42x inference acceleration on a mobile device, respectively, with negligible performance degradation. The source code and the pre-trained models are available at https://github.com/SCUT-AILab/DCP.