Compression of Deep Convolutional Neural Network Using Additional Importance-Weight-Based Filter Pruning Approach
Open Access
- 4 November 2022
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 12 (21) , 11184
Abstract
The success of the convolutional neural network (CNN) comes with a tremendous growth of diverse CNN structures, making it hard to deploy on limited-resource platforms. These over-sized models contain a large amount of filters in the convolutional layers, which are responsible for almost 99% of the computation. The key question here arises: Do we really need all those filters? By removing entire filters, the computational cost can be significantly reduced. Hence, in this article, a filter pruning method, a process of discarding a subset of unimportant or weak filters from the original CNN model, is proposed, which alleviates the shortcomings of over-sized CNN architectures at the cost of storage space and time. The proposed filter pruning strategy is adopted to compress the model by assigning additional importance weights to convolutional filters. These additional importance weights help each filter learn its responsibility and contribute more efficiently. We adopted different initialization strategies to learn more about filters from different aspects and prune accordingly. Furthermore, unlike existing pruning approaches, the proposed method uses a predefined error tolerance level instead of the pruning rate. Extensive experiments on two widely used image segmentation datasets: Inria and AIRS, and two widely known CNN models for segmentation: TernausNet and standard U-Net, verify that our pruning approach can efficiently compress CNN models with almost negligible or no loss of accuracy. For instance, our approach could significantly reduce 85% of all floating point operations (FLOPs) from TernausNet on Inria with a negligible drop of 0.32% in validation accuracy. This compressed network is six-times smaller and almost seven-times faster (on a cluster of GPUs) than that of the original TernausNet, while the drop in the accuracy is less than 1%. Moreover, we reduced the FLOPs by 84.34% without significantly deteriorating the output performance on the AIRS dataset for TernausNet. The proposed pruning method effectively reduced the number of FLOPs and parameters of the CNN model, while almost retaining the original accuracy. The compact model can be deployed on any embedded device without any specialized hardware. We show that the performance of the pruned CNN model is very similar to that of the original unpruned CNN model. We also report numerous ablation studies to validate our approach.Keywords
Funding Information
- European Research Consortium
- Mathematics (ERCIM) fellowship program
This publication has 62 references indexed in Scilit:
- ThiNet: Pruning CNN Filters for a Thinner NetIEEE Transactions on Pattern Analysis and Machine Intelligence, 2019
- TEMPORARY REMOVAL: Aerial imagery for roof segmentation: A large-scale dataset towards automatic mapping of buildingsISPRS Journal of Photogrammetry and Remote Sensing, 2019
- ESPNet: Efficient Spatial Pyramid of Dilated Convolutions for Semantic Segmentation2018
- Soft Filter Pruning for Accelerating Deep Convolutional Neural Networks2018
- Modified Cuckoo Search Algorithm with Variational Parameters and Logistic MapAlgorithms, 2018
- Can semantic labeling methods generalize to any city? the inria aerial image labeling benchmark2017
- Multimodal learning and inference from visual and remotely sensed dataThe International Journal of Robotics Research, 2016
- U-Net: Convolutional Networks for Biomedical Image Segmentation2015
- Deep learningNature, 2015
- On the efficiency of chaos optimization algorithms for global optimizationChaos, Solitons & Fractals, 2007