심층 모델 압축을 위한 편향 인식 네트워크 가지치기
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.
초록
우리는 심층 네트워크의 추론 속도를 높이기 위해 불필요한 채널/코어를 제거하는 네트워크 프루닝을 연구한다. 기존 프루닝 방법들은 희소성 제약을 가진从头 학습 (train from scratch) 또는 사전 학습된 모델의 특징 맵과 압축된 모델 간의 재구성 오차를 최소화하는 두 가지 전략을 따른다. 두 전략 모두 한 가지 한계를 가지고 있다: 전자는 계산 비용이 크고 수렴이 어렵고, 후자는 재구성 오차를 최적화하지만 채널의 판별력을 무시한다. 본 논문에서는 채널이 실제로 판별력에 기여하는지 선택하기 위해 단순하면서도 효과적인 방법인 판별력 인의 채널 프루닝 (Discrimination-Aware Channel Pruning, DCP) 을 제안한다. 채널은 종종 코어 집합으로 구성되므로, 채널 내의 중복성 외에도 네트워크의 판별력에 기여하지 못하는 중복 코어가 존재하여 코어 수준의 중복 (kernel level redundancy) 이 발생할 수 있다. 이를 해결하기 위해 우리는 심층 네트워크를 더 압축하기 위해 중복 코어를 제거하는 판별력 인의 코어 프루닝 (Discrimination-Aware Kernel Pruning, DKP) 방법을 제안한다. DCP/DKP 가 중복 채널/코어를 선택하지 않도록 방지하기 위해 우리는 선택된 채널/코어의 수를 자동으로 결정하고 종종 더 컴팩트한 모델과 더 나은 성능을 얻도록 돕는 새로운 적응형 정지 조건 (adaptive stopping condition) 을 제안한다. 이미지 분류 및 얼굴 인식에서 광범위한 실험은 우리 방법의 효과성을 입증한다. 예를 들어, 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.