Skip to main content
QUICK REVIEW

[Paper Review] Learning to Prune Filters in Convolutional Neural Networks

Qiangui Huang, Kevin Zhou|arXiv (Cornell University)|Jan 23, 2018
Advanced Neural Network ApplicationsComputer Science27 references28 citations
TL;DR

This paper proposes a data-driven, reinforcement learning-based method to automatically prune redundant filters in convolutional neural networks (CNNs) using a 'try-and-learn' framework. By training a pruning agent via policy gradients with a novel reward function that balances pruning ratio and performance retention, the method achieves significant compression and speedup—up to 68.7% filter removal and 53% inference speedup—while maintaining or even improving accuracy on semantic segmentation tasks.

ABSTRACT

Many state-of-the-art computer vision algorithms use large scale convolutional neural networks (CNNs) as basic building blocks. These CNNs are known for their huge number of parameters, high redundancy in weights, and tremendous computing resource consumptions. This paper presents a learning algorithm to simplify and speed up these CNNs. Specifically, we introduce a "try-and-learn" algorithm to train pruning agents that remove unnecessary CNN filters in a data-driven way. With the help of a novel reward function, our agents removes a significant number of filters in CNNs while maintaining performance at a desired level. Moreover, this method provides an easy control of the tradeoff between network performance and its scale. Per- formance of our algorithm is validated with comprehensive pruning experiments on several popular CNNs for visual recognition and semantic segmentation tasks.

Motivation & Objective

  • To develop an automatic, data-driven method for pruning redundant filters in CNNs without requiring manual hyperparameter tuning.
  • To enable direct control over the tradeoff between model performance and model size during pruning.
  • To overcome the limitations of hand-crafted criteria like L1 norm pruning, which lack adaptability and performance optimization.
  • To reduce inference time and model size without sacrificing accuracy, especially in over-parameterized networks.
  • To provide a scalable, end-to-end solution that eliminates human intervention in determining optimal pruning ratios.

Proposed method

  • Formulates filter pruning as a reinforcement learning problem where a pruning agent learns to decide which filters to remove.
  • Uses a neural network as the pruning agent that takes filter weights as input and outputs binary decisions (keep/remove).
  • Employs a novel non-differentiable reward function that combines pruning ratio and performance constraint (e.g., accuracy drop ≤ b).
  • Trains the pruning agent using policy gradient methods (e.g., REINFORCE) to maximize the expected cumulative reward.
  • Applies the method in a layer-by-layer manner, allowing progressive pruning with performance monitored via a validation metric.
  • Integrates the reward function to encourage aggressive pruning while ensuring the pruned model's performance stays within a user-defined tolerance.

Experimental results

Research questions

  • RQ1Can a data-driven, learning-based approach outperform hand-crafted criteria like L1 norm for filter pruning in CNNs?
  • RQ2Can a reinforcement learning agent automatically discover optimal filter pruning policies without human intervention?
  • RQ3Can the method effectively control the tradeoff between model compression and performance degradation?
  • RQ4Does the proposed method maintain or improve accuracy after aggressive pruning, especially in over-parameterized networks?
  • RQ5How does the method scale across different architectures (e.g., FCN-32s, SegNet) and tasks (e.g., semantic segmentation) with varying dataset sizes?

Key findings

  • The method achieved a 63.7% filter removal rate in FCN-32s on Pascal VOC, reducing model size and accelerating inference by 37.0% on GPU and 49.1% on CPU.
  • In SegNet on CamVid, the method removed 56.9% of parameters and improved global accuracy by 2.1%, while magnitude-based pruning decreased accuracy by 3.0%.
  • The first half of SegNet had only 26.9% of filters pruned, while the second half had 49.2%, indicating asymmetric redundancy and adaptive pruning capability.
  • The method outperformed magnitude-based pruning (L1 norm) by achieving a lower accuracy drop (1.5% vs. 3.4%) at the same pruning ratio.
  • The reward function successfully maintained performance within a user-defined drop bound (e.g., b=2) while enabling aggressive pruning.
  • Visualizations confirmed that pruned models preserved semantic segmentation quality, with minimal degradation in prediction consistency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.