# Pruning Filters for Efficient ConvNets

Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, Hans Peter Graf · arXiv · 2016-8-31

- **Problem** Weight pruning mostly removes parameters from fully connected layers, which contribute little computation. It leaves irregular sparsity in convolutional layers, where most computation sits, and dense BLAS libraries handle that poorly.
- **Method** Filter pruning removes the filters with the smallest absolute-weight sums, together with their feature maps and the matching next-layer kernels. Unlike weight pruning, it keeps the model dense, then the remaining weights are retrained.
- **Results** On CIFAR-10, VGG-16 reached 34.2% FLOP pruned with error 6.60, against 6.75 for the unpruned VGG-16.

## Why remove whole filters instead of weights

Magnitude-based weight pruning has compressed AlexNet and VGGNet substantially, but most of the removed parameters sit in fully connected layers. In VGG-16 those layers hold 90% of the total parameters yet contribute less than 1% of the floating point operations, so the FLOP count barely changes.

Computation keeps growing in convolutional layers as networks get deeper, so the savings have to come from there. Pruned weights in convolutional kernels leave irregular sparsity, and the sparse libraries that could exploit it are limited, while the sparse data structures add storage overhead.

Removing a whole filter together with its output feature map keeps the model dense, so the computation maps directly onto the dense matrix multiplications that existing BLAS libraries already run. Each pruned filter removes one matrix product's worth of work, so the number of pruned filters sets the speedup and is easy to tune for a target.

## Ranking filters by their absolute weights

Each filter F\_{i,j} is a stack of n\_i two-dimensional kernels, one per input channel, and produces one output feature map. Its importance is the sum of the absolute values of its kernel weights, which is its ℓ1-norm, written as \\\\( s\_j = \\\\sum\_{l=1}^{n\_i} \\\\sum \|K\_l\| \\\\). All filters in a layer share the same n\_i, so the sum ranks filters in the same order as their average absolute kernel weight.

A small kernel sum suggests that the filter produces a weak output feature map compared with its neighbours in the same layer. The procedure computes s\_j for every filter, sorts the filters by it, and removes the m smallest together with their feature maps. The kernels of the next layer that read those feature maps are dropped, and new kernel matrices for both layers are filled with the remaining weights.

Removing m of the n\_{i+1} filters in layer i cuts the computation of layers i and i+1 by the fraction m/n\_{i+1}, since the cost of a layer scales with n\_{i+1} n\_i k^2 h\_{i+1} w\_{i+1}.

## Setting per-layer pruning rates from sensitivity

The authors prune one layer at a time and measure validation accuracy, which gives each layer's sensitivity to pruning. Layers whose accuracy stays flat as filters are removed are the ones with steeper weight-sum curves, while layers with flatter curves are more sensitive.

Layers in the same stage, which share a feature map size, behave similarly, so one pruning ratio is applied to all layers of a stage. Sensitive layers are pruned by a smaller percentage or skipped, which avoids adding a separate meta-parameter for each layer.

On VGG-16 for CIFAR-10, each convolutional layer with 512 feature maps can lose at least 60% of its filters without accuracy loss, and with retraining almost 90% can be removed. The first layer tolerates pruning better than the next few layers, and removing 80% of its filters still leaves 12 filters, more than the 3 input channels, whereas an 80% cut in the second layer leaves a 64 to 12 mapping that the authors expect to lose information.

The configuration in Table 2 prunes 50% of the filters in Conv 1 and Conv 2 and halves Conv 8 to 256 maps, with 75% of the filters removed in Conv 9 to Conv 13, giving a total FLOP reduction of 34%. The pruned model reaches an error of 6.60 with 34.2% of FLOP pruned, against 6.75 for the unpruned VGG-16.

## Pruning across layers and residual shortcuts

Pruning and retraining one layer at a time is slow for deep networks, and a joint view of all layers shows how robust the network is overall. Two selection strategies handle the multi-layer case: independent pruning ranks each layer on its own, while greedy pruning leaves out kernels that belong to feature maps already removed in earlier layers.

The greedy strategy is not globally optimal, but the authors report that it gives higher accuracy than independent pruning, especially when many filters are removed. Both strategies produce a kernel matrix of size (n\_{i+1} − 1) × (n\_{i+2} − 1) in the layers that follow.

In a residual block with a projection shortcut, the first convolutional layer can be pruned freely because it does not change the block's output width. The second layer's output must be added to the identity feature maps, so its pruned indices are copied from the 1×1 kernels of the shortcut, which are chosen by the same criterion.

Pruning once and retraining can recover accuracy for resilient layers within a shorter schedule than the original training, while removing filters from sensitive layers or large parts of the network may leave the original accuracy out of reach. Iterative pruning and retraining may do better, but it needs many more epochs, which matters most for very deep networks.

Retraining uses a constant learning rate of 0.001 for 40 epochs on CIFAR-10 and 20 epochs on ImageNet, which is one-fourth of the original training epochs. Pruned models are built as new networks with fewer filters, and the surviving weights are copied in, and the batch normalization weights of a pruned convolutional layer are removed with it.

## ResNet results on CIFAR-10 and ImageNet

On CIFAR-10 the ResNets have three stages, and only the first layer of each residual block is pruned because the identity feature maps cannot be selected through a projection. Most layers tolerate pruning, and the sensitive ones sit next to the residual blocks where the number of feature maps changes. Skipping the sensitive layers 16, 20, 38 and 54 and pruning 10% of the filters gives ResNet-56-pruned-A an error of 6.90 against 6.96 for ResNet-56, with 10.4% of FLOP pruned.

ResNet-56-pruned-B uses per-stage rates of p1=60%, p2=30% and p3=10% and skips layers 16, 18, 20, 34, 38 and 54. It reaches an error of 6.94 with 27.6% of FLOP pruned, while the same architecture trained from scratch reaches 8.69. ResNet-110-pruned-B uses p1=50%, p2=40% and p3=30% and skips layers 36, 38 and 74, reaching an error of 6.70 and 38.6% of FLOP pruned against 6.47 for ResNet-110.

Training the pruned ResNet-110-pruned-B from scratch gives an error of 7.06, and the authors suggest that small-capacity networks are harder to train than to recover by retraining.

On ImageNet, ResNet-34 uses a projection shortcut at down-sampling points, and its first layers are pruned with two settings: (A) p1=30%, p2=30%, p3=30%, and (B) p1=50%, p2=60%, p3=40%. Option B gives 24.2% FLOP pruned with an error of 27.83 against 26.77 for ResNet-34, and the authors describe about 1% loss in accuracy for this option. The identity shortcuts and second layers are more sensitive, and ResNet-34-pruned-C prunes only the third stage at p3=20%, giving 7.5% FLOP reduction with 0.75% accuracy loss.

The authors conclude that pruning the first layer of each residual block reduces FLOP more effectively than pruning the second layer, which they link to the bottleneck design of deeper ResNets.

## Filter norms against random and activation-based selection

On VGG-16 for CIFAR-10, pruning the smallest filters beats pruning random filters for most layers at different ratios.

The activation-based baseline removes feature maps whose statistics on sample training data are weak, which requires a forward pass over sample images. The authors compare the ℓ1-norm of the filters with mean, standard deviation, ℓ1 and ℓ2 statistics of the feature maps, and with the variance criterion of Polyak and Wolf. Smallest-filter pruning outperforms the mean, ℓ1, ℓ2 and variance criteria, while the standard deviation criterion matches it up to a 60% pruning ratio and then drops, especially in conv 1 to conv 3.

## Limitations

Pruned models are reported for VGG-16 and ResNets on CIFAR-10 and for ResNet-34 on ImageNet, while VGG on ImageNet is not pruned. Results are given in FLOP and parameter counts, and the main results table reports no separate speed measurement.

The sensitivity of each layer is measured by pruning that layer alone, so interactions between layers are not isolated by this measurement. ResNet-34 is described as harder to prune than the deeper ResNets, and its pruned-B configuration loses about 1% accuracy.

ResNet-110-pruned-B error is 6.70 against 6.47 for the unpruned ResNet-110, so the claim of close-to-original accuracy does not hold equally for every pruned model. The retraining schedule is fixed at a learning rate of 0.001 for 40 epochs on CIFAR-10 and 20 epochs on ImageNet, and no search over these values is reported.

## Paper info

- **Authors**: Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, Hans Peter Graf
- **Venue**: arXiv · Preprint
- **First published**: 2016-8-31
- **Added**: 2026-11-12
- **Updated**: 2017-3-10
- **Version**: v3
- **arXiv**: 1608.08710
- **Category**: cs.CV · cs.LG
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1608.08710v3) · [PDF ↗](https://arxiv.org/pdf/1608.08710v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, Hans Peter Graf (2016). Pruning Filters for Efficient ConvNets. arXiv:1608.08710v3. https://arxiv.org/abs/1608.08710v3

**BibTeX**

```
@misc{li2016pruning,
  title = {{Pruning Filters for Efficient ConvNets}},
  author = {Hao Li and Asim Kadav and Igor Durdanovic and Hanan Samet and Hans Peter Graf},
  year = {2016},
  eprint = {1608.08710},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.08710v3}
}
```

## Related papers

- [Densely Connected Convolutional Networks](https://refivu.com/en/papers/cda5af7e-e2a5-4e21-8c71-7a7bafe28add-densely-connected-convolutional-networks.md)
- [Channel Pruning for Accelerating Very Deep Neural Networks](https://refivu.com/en/papers/e9bb1323-d15c-464e-b220-b00a94be3b6d-channel-pruning-for-accelerating-very-deep-neural-networks.md)
- [Identity Mappings in Deep Residual Networks](https://refivu.com/en/papers/4dcb24a4-8fe8-4b2a-b957-a69e3f0212b0-identity-mappings-in-deep-residual-networks.md)
- [Learning Structured Sparsity in Deep Neural Networks](https://refivu.com/en/papers/904b80d6-c19c-420d-861d-be919e5725b1-learning-structured-sparsity-in-deep-neural-networks.md)
- [Rethinking the Inception Architecture for Computer Vision](https://refivu.com/en/papers/5a8c1d5f-a10c-4a76-a110-b62861a7dc8a-rethinking-the-inception-architecture-for-computer-vision.md)
- [Super-Convergence: Very Fast Training of Neural Networks Using Large Learning Rates](https://refivu.com/en/papers/6770e9ca-a3e2-40e5-bf7e-fd1daf28cf68-super-convergence-very-fast-training-of-neural-networks.md)

## Other paper commentary

- [Knowledge Distillation: A Survey](https://refivu.com/en/papers/20b6ef99-85b3-42b7-9c02-384c6383f2ff-knowledge-distillation-a-survey.md)
- [Efficient Processing of Deep Neural Networks: A Tutorial and Survey](https://refivu.com/en/papers/587cab8c-6795-4edf-94db-5f485a9b553b-efficient-processing-of-deep-neural-networks-a-tutorial.md)
- [Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference](https://refivu.com/en/papers/07bb92b6-cd63-4ab5-ab99-88473c074df7-quantization-and-training-of-neural-networks-for-efficient.md)
- [Federated Learning: Strategies for Improving Communication Efficiency](https://refivu.com/en/papers/f21e9a4b-b86a-4954-8c8a-ed4ff256e5d6-federated-learning-strategies-for-improving-communication.md)
- [Federated Learning: Challenges, Methods, and Future Directions](https://refivu.com/en/papers/85104455-c32d-4181-89ff-29d70a64be44-federated-learning-challenges-methods-and-future-directions.md)
- [ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design](https://refivu.com/en/papers/d1e3c93e-79dc-4e3d-a949-2f726da0b409-shufflenet-v2-practical-guidelines-for-efficient-cnn.md)
- [MMDetection: Open MMLab Detection Toolbox and Benchmark](https://refivu.com/en/papers/10a01329-b3c8-4a57-a8da-f721a2d42d68-mmdetection-open-mmlab-detection-toolbox-and-benchmark.md)
- [Recent Trends in Deep Learning Based Natural Language Processing](https://refivu.com/en/papers/6cdbf953-5aaa-4de2-9e22-528902a11655-recent-trends-in-deep-learning-based-natural-language.md)
- [Generalizing from a Few Examples: A Survey on Few-Shot Learning](https://refivu.com/en/papers/8988e143-7a9e-4146-9f9b-40c8e0cb6bb2-generalizing-from-a-few-examples-a-survey-on.md)
- [CatBoost: unbiased boosting with categorical features](https://refivu.com/en/papers/2bddd7a0-b14d-422c-836d-b47da78a26fd-catboost-unbiased-boosting-with-categorical-features.md)
- [In Defense of the Triplet Loss for Person Re-Identification](https://refivu.com/en/papers/9a193d31-bb38-4b07-8752-1bc32882197d-in-defense-of-the-triplet-loss-for-person.md)
- [SuperPoint: Self-Supervised Interest Point Detection and Description](https://refivu.com/en/papers/d0aa9e04-3220-432a-8074-02191fd86615-superpoint-self-supervised-interest-point-detection-and.md)

## Terms in this paper

- [CIFAR-10](https://refivu.com/en/terms/19035a518d0a-cifar-10)
- [Batch Normalization](https://refivu.com/en/terms/2b3e5f8509f6-batch-normalization)
- [Pruning](https://refivu.com/en/terms/143c3e7dde1f-pruning)
- [residual block](https://refivu.com/en/terms/bb4b0de94056-residual-block)
- [sensitivity analysis](https://refivu.com/en/terms/f97589901505-sensitivity-analysis)
- [Filter](https://refivu.com/en/terms/af48d5c59a22-filter)
- [FLOP](https://refivu.com/en/terms/fbab97a48fa2-flop)
- [one-shot pruning](https://refivu.com/en/terms/abda5378d61b-one-shot-pruning)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/54826eca-5fee-4b64-b058-a4fcd92f8178-pruning-filters-for-efficient-convnets)
