HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Pruning Filters for Efficient ConvNets

Hao Li; Asim Kadav; Igor Durdanovic; Hanan Samet; Hans Peter Graf

Pruning Filters for Efficient ConvNets

Abstract

The success of CNNs in various applications is accompanied by a significant increase in the computation and parameter storage costs. Recent efforts toward reducing these overheads involve pruning and compressing the weights of various layers without hurting original accuracy. However, magnitude-based pruning of weights reduces a significant number of parameters from the fully connected layers and may not adequately reduce the computation costs in the convolutional layers due to irregular sparsity in the pruned networks. We present an acceleration method for CNNs, where we prune filters from CNNs that are identified as having a small effect on the output accuracy. By removing whole filters in the network together with their connecting feature maps, the computation costs are reduced significantly. In contrast to pruning weights, this approach does not result in sparse connectivity patterns. Hence, it does not need the support of sparse convolution libraries and can work with existing efficient BLAS libraries for dense matrix multiplications. We show that even simple filter pruning techniques can reduce inference costs for VGG-16 by up to 34% and ResNet-110 by up to 38% on CIFAR10 while regaining close to the original accuracy by retraining the networks.

Code Repositories

VainF/Torch-Pruning
pytorch
Mentioned in GitHub
mvpzhangqiu/yolov5prune
pytorch
Mentioned in GitHub
guoxiaolu/model_compression
pytorch
Mentioned in GitHub
midasklr/yolov5prune
pytorch
Mentioned in GitHub
marcoancona/TorchPruner
pytorch
Mentioned in GitHub
Adlik/model_optimizer
pytorch
Mentioned in GitHub
prerakmody/CS4180-DL
pytorch
Mentioned in GitHub
AlumLuther/PruningFilters
pytorch
Mentioned in GitHub
matthew-mcateer/Keras_pruning
tf
Mentioned in GitHub
cailinhang/2018-Graduation-Project
pytorch
Mentioned in GitHub
he-y/filter-pruning-geometric-median
pytorch
Mentioned in GitHub
lehduong/ginp
pytorch
Mentioned in GitHub
lehduong/kesi
pytorch
Mentioned in GitHub
siyuan0/pytorch_model_prune
pytorch
Mentioned in GitHub
AnishDelft/ModelCompression
pytorch
Mentioned in GitHub
mingsun-tse/regularization-pruning
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
network-pruning-on-imagenetResNet50-2.3 GFLOPs
Accuracy: 78.79
GFLOPs: 2.335
MParams: 14.811
network-pruning-on-imagenetResNet50-1.5 GFLOPs
Accuracy: 78.07
GFLOPs: 1.635
MParams: 10.511
network-pruning-on-imagenetResNet50-1G FLOPs
Accuracy: 76.376
GFLOPs: 1.075
MParams: 6.954

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp