Cargando…

PCA driven mixed filter pruning for efficient convNets

Deployment of the deep neural networks (DNNs) on resource-constrained devices is a challenging task due to their limited memory and computational power. In most cases, the pruning techniques do not prune the DNNs to full extent and redundancy still exists in these models. Considering this, a mixed f...

Descripción completa

Detalles Bibliográficos
Autores principales: Ahmed, Waqas, Ansari, Shahab, Hanif, Muhammad, Khalil, Akhtar
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Public Library of Science 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8786156/
https://www.ncbi.nlm.nih.gov/pubmed/35073373
http://dx.doi.org/10.1371/journal.pone.0262386
_version_ 1784639056434429952
author Ahmed, Waqas
Ansari, Shahab
Hanif, Muhammad
Khalil, Akhtar
author_facet Ahmed, Waqas
Ansari, Shahab
Hanif, Muhammad
Khalil, Akhtar
author_sort Ahmed, Waqas
collection PubMed
description Deployment of the deep neural networks (DNNs) on resource-constrained devices is a challenging task due to their limited memory and computational power. In most cases, the pruning techniques do not prune the DNNs to full extent and redundancy still exists in these models. Considering this, a mixed filter pruning approach based on principal component analysis (PCA) and geometric median is presented. First, a pre-trained model is analyzed by using PCA to identify the important filters for every layer. These important filters are then used to reconstruct the network with a fewer number of layers and a fewer number of filters per layer. A new network with optimized structure is constructed and trained on the data. Secondly, the trained model is then analyzed using geometric median as a base. The redundant filters are identified and removed which results in further compression of the network. Finally, the pruned model is fine tuned to regain the accuracy. Experiments on CIFAR-10, CIFAR-100 and ILSVRC 2017 datasets show that the proposed mixed pruning approach is feasible and can compress the network to greater extent without any significant loss to accuracy. With VGG-16 on CIFAR-10, the number of operations and parameters are reduced to 18.56× and 3.33×, respectively, with almost 1% loss in the accuracy. The compression rate for AlexNet on CIFAR-10 dataset is 2.61× and 4.85× in terms of number of operations and number of parameters, respectively, with a gain of 1.2% in the accuracy. On CIFAR-100, VGG-19 is compressed by 16.02 X in terms of number of operations and 36× in terms of number of parameters with a 2.6% loss of accuracy. Similarly, the compression rate for VGG-19 network on ILSVRC 2017 dataset is 1.87× and 2.4× for operations and parameters with 0.5% loss in accuracy.
format Online
Article
Text
id pubmed-8786156
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher Public Library of Science
record_format MEDLINE/PubMed
spelling pubmed-87861562022-01-25 PCA driven mixed filter pruning for efficient convNets Ahmed, Waqas Ansari, Shahab Hanif, Muhammad Khalil, Akhtar PLoS One Research Article Deployment of the deep neural networks (DNNs) on resource-constrained devices is a challenging task due to their limited memory and computational power. In most cases, the pruning techniques do not prune the DNNs to full extent and redundancy still exists in these models. Considering this, a mixed filter pruning approach based on principal component analysis (PCA) and geometric median is presented. First, a pre-trained model is analyzed by using PCA to identify the important filters for every layer. These important filters are then used to reconstruct the network with a fewer number of layers and a fewer number of filters per layer. A new network with optimized structure is constructed and trained on the data. Secondly, the trained model is then analyzed using geometric median as a base. The redundant filters are identified and removed which results in further compression of the network. Finally, the pruned model is fine tuned to regain the accuracy. Experiments on CIFAR-10, CIFAR-100 and ILSVRC 2017 datasets show that the proposed mixed pruning approach is feasible and can compress the network to greater extent without any significant loss to accuracy. With VGG-16 on CIFAR-10, the number of operations and parameters are reduced to 18.56× and 3.33×, respectively, with almost 1% loss in the accuracy. The compression rate for AlexNet on CIFAR-10 dataset is 2.61× and 4.85× in terms of number of operations and number of parameters, respectively, with a gain of 1.2% in the accuracy. On CIFAR-100, VGG-19 is compressed by 16.02 X in terms of number of operations and 36× in terms of number of parameters with a 2.6% loss of accuracy. Similarly, the compression rate for VGG-19 network on ILSVRC 2017 dataset is 1.87× and 2.4× for operations and parameters with 0.5% loss in accuracy. Public Library of Science 2022-01-24 /pmc/articles/PMC8786156/ /pubmed/35073373 http://dx.doi.org/10.1371/journal.pone.0262386 Text en © 2022 Ahmed et al https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
spellingShingle Research Article
Ahmed, Waqas
Ansari, Shahab
Hanif, Muhammad
Khalil, Akhtar
PCA driven mixed filter pruning for efficient convNets
title PCA driven mixed filter pruning for efficient convNets
title_full PCA driven mixed filter pruning for efficient convNets
title_fullStr PCA driven mixed filter pruning for efficient convNets
title_full_unstemmed PCA driven mixed filter pruning for efficient convNets
title_short PCA driven mixed filter pruning for efficient convNets
title_sort pca driven mixed filter pruning for efficient convnets
topic Research Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8786156/
https://www.ncbi.nlm.nih.gov/pubmed/35073373
http://dx.doi.org/10.1371/journal.pone.0262386
work_keys_str_mv AT ahmedwaqas pcadrivenmixedfilterpruningforefficientconvnets
AT ansarishahab pcadrivenmixedfilterpruningforefficientconvnets
AT hanifmuhammad pcadrivenmixedfilterpruningforefficientconvnets
AT khalilakhtar pcadrivenmixedfilterpruningforefficientconvnets