[Paper Review] AutoPruner: An End-to-End Trainable Filter Pruning Method for Efficient Deep Model Inference
AutoPruner proposes an end-to-end trainable filter pruning method that integrates channel selection and model fine-tuning into a single framework, using a differentiable binary code generation layer to automatically identify and remove unimportant filters. It achieves state-of-the-art accuracy with higher compression ratios than prior methods, outperforming even training from scratch on ImageNet and CUB200-2011 datasets.
Channel pruning is an important family of methods to speed up deep model's inference. Previous filter pruning algorithms regard channel pruning and model fine-tuning as two independent steps. This paper argues that combining them into a single end-to-end trainable system will lead to better results. We propose an efficient channel selection layer, namely AutoPruner, to find less important filters automatically in a joint training manner. Our AutoPruner takes previous activation responses as an input and generates a true binary index code for pruning. Hence, all the filters corresponding to zero index values can be removed safely after training. We empirically demonstrate that the gradient information of this channel selection layer is also helpful for the whole model training. By gradually erasing several weak filters, we can prevent an excessive drop in model accuracy. Compared with previous state-of-the-art pruning algorithms (including training from scratch), AutoPruner achieves significantly better performance. Furthermore, ablation experiments show that the proposed novel mini-batch pooling and binarization operations are vital for the success of filter pruning.
Motivation & Objective
- To address the limitation of existing filter pruning methods that treat pruning and fine-tuning as separate, non-interactive steps.
- To explore whether fine-tuning can guide filter selection by integrating pruning into the training process.
- To develop a trainable, end-to-end framework that jointly optimizes model accuracy and filter pruning.
- To enable adaptive compression ratios and multi-layer pruning while maintaining high accuracy.
- To demonstrate that automatic, consistent filter pruning via gradient flow improves model efficiency and performance.
Proposed method
- Introduces AutoPruner as a differentiable, learnable layer that takes feature maps as input and outputs a C-dimensional binary code indicating which filters to prune.
- Employs a novel scaled sigmoid function with a learnable temperature parameter α to gradually binarize the output, enabling soft-to-hard pruning during training.
- Uses mini-batch pooling and max pooling to aggregate activation statistics across a batch, ensuring consistent filter importance scores across different inputs.
- Applies a sparsity-inducing loss function that encourages the binary code to converge to a predefined compression ratio while allowing the network to adaptively determine actual sparsity.
- Enables end-to-end training where gradients from the channel selection layer flow back to previous layers, improving feature learning and pruning accuracy.
- Supports multi-layer pruning by applying the AutoPruner layer to multiple convolutional layers simultaneously, reducing training cost and improving efficiency.
Experimental results
Research questions
- RQ1Can integrating filter pruning and model fine-tuning into a single end-to-end trainable framework improve model accuracy and compression efficiency?
- RQ2Does the gradient information from the channel selection layer enhance the training of earlier convolutional layers?
- RQ3Can the proposed method achieve better performance than training from scratch while maintaining high compression ratios?
- RQ4How does the consistency of the binary index code across different input batches affect pruning reliability and model accuracy?
- RQ5What role do the novel mini-batch pooling and binarization operations play in enabling stable and effective filter pruning?
Key findings
- AutoPruner outperforms state-of-the-art filter pruning methods on both CUB200-2011 and ImageNet datasets, achieving higher top-1 accuracy at similar or higher compression ratios.
- On ImageNet with ResNet-50, AutoPruner achieves 74.76% top-1 accuracy, surpassing the 73.90% accuracy of training from scratch over 180 epochs.
- The method achieves a 2% higher top-1 accuracy than SSS on ResNet-50 with similar FLOPs, even when SSS prunes entire residual blocks.
- Ablation studies confirm that the combination of mini-batch pooling and the adaptive sigmoid binarization is essential—removing α or the pooling leads to poor performance (e.g., 9.154% accuracy without α).
- The generated binary index code is consistent across different input batches, ensuring that filters marked as zero are safely pruned without performance degradation.
- The gradient flow from the AutoPruner layer improves training of earlier layers, demonstrating mutual benefit between pruning and fine-tuning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.