Auto-Balanced Filter Pruning for Efficient Convolutional Neural Networks

Xiaohan Ding, Guiguang Ding, Jungong Han, Sheng Tang

Introduction

Deep Convolutional Neural Networks (CNNs) have achieved state-of-the-art performance across various computer vision tasks, but their high computational and memory requirements often hinder deployment on resource-constrained devices. Network pruning has emerged as a vital technique to address this. While connection-wise pruning offers high sparsity, it typically requires specialized hardware or libraries to realize speedups. In contrast, filter-wise pruning removes entire 3D filters, resulting in a physically smaller network that runs faster on any device.

However, traditional filter pruning methods face a dilemma: high regularization penalties can degrade model accuracy during training, while iterative pruning can cause "structural damage" that requires long re-training cycles. The authors of this paper propose Auto-Balanced Filter Pruning (AFP) to bridge this gap by preparing the network for pruning through a "polarization" phase.

The AFP Framework

The core philosophy of AFP is to redistribute the network's representational capacity before filters are removed. Instead of a simple prune-and-fix approach, the authors utilize an iterative pipeline that dynamically adjusts the model based on performance feedback.

The AFP iterative pruning pipeline, illustrating the cycle of pre-training, pruning, and re-training with feedback loops for performance adjustment.

As shown in the flowchart, the process involves:

  1. Pre-training with specialized regularization.
  2. Pruning weak filters based on their $L_1$ norm.
  3. Re-training the compressed model to recover accuracy.
  4. Evaluation: If performance is unsatisfactory, the system can "Roll Back"; if the model is still too large, it can "Step Forward" to prune further.

Auto-Balanced Regularization and Polarization

The primary innovation of AFP is its Auto-balanced Regularization scheme. The method divides filters into a "to-be-pruned" set ($P$) and a "remaining" set ($R$).

  • Weak filters in $P$ receive a positive regularization factor, pushing them toward zero.
  • Strong filters in $R$ receive a negative regularization factor, stimulating them to grow stronger.

Crucially, the sum of all regularization terms is kept at zero. This "zero-sum" approach prevents the regularization from dominating the loss function, allowing the network to focus on accuracy while effectively "transferring" knowledge from the weak filters to the strong ones. This creates a polarization effect, where the distinction between essential and redundant filters becomes stark.

Polarization effect in the first convolutional layer (conv-1). Blue represents remaining capacity, green shows increased norm for strong filters, and red shows decreased norm for weak filters.

By making the strong filters stronger and the weak filters weaker before deletion, the network becomes robust to the eventual removal of the redundant components.

Experimental Results

The researchers evaluated AFP on standard benchmarks including MNIST (LeNet-5) and CIFAR-10 (VGG-16 and ResNet-56). The method achieved significant reductions in Floating Point Operations (FLOPs) with minimal impact on error rates:

Model Dataset FLOP Reduction Accuracy Impact
LeNet-5 MNIST 95.1% Error decreased (0.83% → 0.76%)
VGG-16 CIFAR-10 79.7% Minimal (6.75% → 7.06% error)
ResNet-56 CIFAR-10 60.9% Minimal (6.96% → 7.06% error)

Interestingly, on the LeNet-5 architecture, the pruned model actually achieved better accuracy than the baseline. This suggests that removing redundant filters can act as a powerful form of regularization, reducing overfitting and improving generalization.

Conclusion and Future Work

Auto-Balanced Filter Pruning provides an effective way to shrink CNNs by polarizing filters before removal. By balancing positive and negative regularization, the authors bypass the classic trade-off where high sparsity leads to poor training convergence. While the method shows impressive results on CIFAR-10, future work is needed to validate its performance on larger-scale datasets like ImageNet and to automate the hyperparameter tuning required for complex residual architectures.

Summary updated

BibTeX
@inproceedings{ding2018auto,
  author = {Xiaohan Ding and Guiguang Ding and Jungong Han and Sheng Tang},
  title = {{Auto-Balanced Filter Pruning for Efficient Convolutional Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.12262},
}
Figure