Abstract
Model pruning aims to reduce the deep neural network (DNN) model size or computational overhead. Traditional model pruning methods such as $\ell_1$ pruning that evaluates the channel significance for DNN pay too much attention to the local analysis of each channel and make use of the magnitude of the entire feature while ignoring its relevance to the batch normalization (BN) and ReLU layer after each convolutional operation. To overcome these problems, we propose a new model pruning method from a new perspective of gradient flow in this paper. Specifically, we first theoretically analyze the channel's influence based on Taylor expansion by integrating the effects of BN layer and ReLU activation function. Then, the incorporation of the first-order Taylor polynomial of the scaling parameter and the shifting parameter in the BN layer is suggested to effectively indicate the significance of a channel in a DNN. Comprehensive experiments on both image classification and image denoising tasks demonstrate the superiority of the proposed novel theory and scheme.
The Challenge of Efficient Model Pruning
Deep Neural Networks (DNNs) have become indispensable in computer vision, yet their massive computational requirements hinder deployment on resource-constrained edge devices. Structured pruning, specifically channel pruning, is a popular solution to reduce model size by removing redundant filters. However, many existing methods rely on heuristic metrics, such as the $\ell_1$-norm of weights, which often fail to capture the complex inter-layer dependencies and the specific roles of Batch Normalization (BN) and ReLU activation layers.
While "Oracle pruning"—the process of testing the impact of removing every single channel individually—provides an ideal baseline for accuracy, it is computationally prohibitive. This research introduces Gradient Flow Based Saliency (GFBS), a mathematically rigorous framework that approximates oracle pruning in a single pass by analyzing information flow during backpropagation.
The GFBS Framework
The core of GFBS is treating pruning as an optimization problem: identifying which channels can be removed with the minimal impact on the loss function. The method leverages several key technical innovations:
1. Taylor Expansion Approximation
GFBS uses a first-order Taylor expansion to estimate the change in loss when a channel is zeroed out. By utilizing gradients (gradient flow), the method can measure the sensitivity of the entire network to a specific channel's removal.
2. Integrating BN and ReLU
Unlike traditional methods that focus solely on convolutional weights, GFBS proves that for a standard Conv-BN-ReLU block, a channel's saliency is a function of the BN scaling parameter ($\gamma$) and the shifting parameter ($\beta$). The derived scoring function is: $$S = |J(\gamma) \cdot \gamma| + \lambda \beta$$ Where $J(\gamma)$ represents the gradient of the loss with respect to $\gamma$, and $\lambda$ is a balancing term. This formula captures both the network's sensitivity to the channel and the amount of signal that survives the ReLU "gate."
3. Global Pruning Strategy
Instead of pruning a fixed percentage of channels layer-by-layer, GFBS normalizes scores across the entire network. This allows the algorithm to identify and remove redundant channels wherever they exist, regardless of their layer depth.
As shown in the distributions for different layers, the importance of channels varies significantly across the architecture. By evaluating these distributions globally, GFBS can make more informed decisions about which layers can afford more aggressive pruning.
Experimental Results
The authors evaluated GFBS across multiple architectures (VGGNet, ResNet, MobileNetv2) and tasks:
- Image Classification: On CIFAR-10, GFBS reduced VGGNet-16 FLOPs by 84% with only a 2.10% accuracy drop. On the large-scale ImageNet dataset, it maintained higher Top-1 accuracy for ResNet-50 compared to established methods like ThiNet and GAL.
- Image Denoising: Using the DnCNN architecture, GFBS achieved a 94% FLOP reduction while maintaining high-quality denoising results on BSD68 and Set12 benchmarks.
Conclusion
GFBS offers a highly efficient, single-pass pruning method that requires no extra trainable parameters. By accounting for the "ReLU gate" and utilizing global gradient flow, it bridges the gap between simple heuristics and computationally expensive oracle pruning. Future work may extend this gradient-flow perspective to other compression techniques, such as bit-width quantization.
Summary updated