End-to-End Sensitivity-Based Filter Pruning

Zahra Babaiee, Lucas Liebenwein, Ramin M. Hasani, Daniela Rus, Radu GrosuarXiv 2022 · DOI

Abstract

Deep Convolutional Neural Networks (CNNs) are often over-parameterized, making them unsuitable for deployment on resource-constrained edge devices. Traditional pruning methods typically involve complex multi-stage pipelines and manual layer-wise budget tuning. This paper introduces the SbF-Pruner (Sensitivity-based Filter Pruner), a novel end-to-end algorithm that learns filter importance scores directly from weights. By utilizing a custom Leaky-Exponential activation and an alternating training schedule, SbF-Pruner automatically discovers optimal sparsity patterns. Experimental results on CIFAR-10 demonstrate that SbF-Pruner can reduce parameters by over 50% while simultaneously improving model accuracy.

Introduction: The Pruning Bottleneck

While redundancy in CNNs facilitates training, it imposes significant computational and memory overhead. Pruning—the removal of redundant weights—is the standard mitigation strategy. However, existing approaches face three primary challenges:

  1. Manual Tuning: Researchers must often manually specify pruning budgets for each layer.
  2. Multi-stage Pipelines: Most methods require a sequence of training, pruning, and fine-tuning.
  3. Local vs. Global Blindness: Many algorithms evaluate filters in isolation, failing to account for inter-layer dependencies.

SbF-Pruner addresses these issues by framing pruning as a learnable, global-aware optimization process integrated directly into the training pipeline.

Methodology: Learnable Sensitivity-Based Pruning

The core innovation of SbF-Pruner is the "Pruner Layer," which maps filter weights to continuous importance scores.

Architecture of the SbF Pruner

Instead of relying on simple heuristics like the $\ell_1$ norm of weights, the SbF-Pruner uses a linear transformation to learn complex correlations between filters. These scores are then passed through a custom Leaky-Exponential activation function. Unlike standard activations like Sigmoid, which can saturate and kill gradients, the Leaky-Exponential function ensures non-zero gradients across its entire domain, allowing the importance of every filter to be learned effectively via gradient descent.

Overview of the SbF-Pruner architecture and the pruning process.

End-to-End Training Schedule

The training process is divided into distinct phases to ensure stability and convergence:

  1. Warm-up: The dense network is trained briefly to establish a baseline.
  2. Alternating Training: The model alternates between training the pruner layers (to identify critical filters) and training the sparse network weights (using a gate function to binarize scores).
  3. Fine-tuning: A final stage to solidify the performance of the discovered sparse architecture.
The end-to-end training schedule of SbF-Pruner, showing alternating phases of weight and pruner training.

A single global hyperparameter, $\lambda$, controls the trade-off between accuracy and sparsity, allowing the model to automatically allocate pruning budgets across layers.

Experimental Results and Insights

The authors evaluated SbF-Pruner on the CIFAR-10 dataset using ResNet56 and ResNet110 architectures.

Performance Benchmarks

SbF-Pruner achieved state-of-the-art results, often outperforming methods that require pre-trained baselines:

  • ResNet56: Achieved a 52.3% parameter reduction and 49.3% FLOPs reduction, while increasing accuracy by 1.02% over the dense baseline.
  • ResNet110: Reduced parameters by 54.9% with an accuracy gain of 1.19%.
  • Aggressive Pruning: At extreme levels (e.g., 83% parameter reduction on ResNet56), the model maintained 92.42% accuracy, significantly outperforming competitors like CHIP or HRank.

Key Insights

  • Automatic Budget Discovery: The algorithm naturally identifies "bottleneck" structures. For instance, in ResNets, it tends to prune the first layer of a residual block more heavily than the second—a pattern typically designed manually by experts.
  • ResNet Stability: Mathematical analysis confirms that SbF-Pruner preserves the "iterative feature-refinement" property of ResNets, ensuring stable information flow even after aggressive pruning.

Conclusion and Future Directions

SbF-Pruner demonstrates that end-to-end learning of filter sensitivity is a powerful alternative to traditional multi-stage pruning. By treating sparsity as an optimization goal, it achieves significant compression without sacrificing—and often improving—accuracy.

Future work will focus on scaling the method to larger datasets like ImageNet and exploring its applicability to modern architectures such as Vision Transformers (ViTs). Additionally, incorporating hardware-aware metrics into the optimization loop could further enhance its utility for real-world edge deployment.

Summary updated

BibTeX
@misc{babaiee2022end,
  author = {Zahra Babaiee and Lucas Liebenwein and Ramin M. Hasani and Daniela Rus and Radu Grosu},
  title = {{End-to-End Sensitivity-Based Filter Pruning}},
  year = {2022},
  eprint = {2204.07412},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.07412},
}
Figure