Three Dimensional Convolutional Neural Network Pruning with Regularization-Based Method

Yuxin Zhang, Huan Wang, Yang Luo, Roland HuarXiv 2018

Abstract

Despite enjoying extensive applications in video analysis, three-dimensional convolutional neural networks (3D CNNs) are restricted by their massive computation and storage consumption. To solve this problem, we propose a three-dimensional regularization-based neural network pruning method to assign different regularization parameters to different weight groups based on their importance to the network. Further, we analyze the redundancy and computation cost for each layer to determine the different pruning ratios. Experiments show that pruning based on our method can lead to 2x theoretical speedup with only 0.41% accuracy loss for 3D-ResNet18 and 3.28% accuracy loss for C3D. The proposed method performs favorably against other popular methods for model compression and acceleration.

Introduction

While 2D CNNs have revolutionized image analysis, video analysis requires 3D CNNs to model the temporal dimension. However, the addition of this third dimension significantly increases memory and computational demands, making deployment on edge devices challenging. Network pruning—removing unnecessary weights—is a common solution, but applying it to 3D architectures is complex. Most existing methods either produce unstructured patterns that do not yield hardware speedups or treat every layer uniformly, ignoring varying levels of redundancy and computational cost across the network.

Methodology

The proposed approach focuses on "structured pruning," which removes entire groups of weights (e.g., filters or channels) to ensure actual hardware acceleration.

Structured pruning types in 3D CNNs: (a) filter/row sparsity, (b) shape/column sparsity, and (c) channel sparsity.

Importance-Based Regularization

Rather than abrupt weight removal, the authors introduce a dynamic regularization term into the loss function. Using the $L_1$ norm to rank weight groups, they assign varying penalties ($\lambda$): "unimportant" groups receive higher penalties, forcing them toward zero, while "important" groups receive lower penalties to preserve critical information. This gradual process ensures more stable training compared to traditional "hard" pruning.

Determining Pruning Ratios (DPR)

Unlike standard methods that apply a Same Pruning Ratio (SPR) across all layers, this method utilizes Different Pruning Ratios (DPR) based on two factors:

  1. Redundancy (PCA): Principal Component Analysis determines how well a layer's weights can be reconstructed. Layers with low reconstruction error are deemed more redundant.
  2. Utility (GFLOPs): Priority is given to pruning layers that contribute most to the total computational workload.

Experimental Results

The method was evaluated using the UCF101 dataset on C3D and 3D-ResNet18 architectures.

Comparison of increased error (%) for different pruning methods at 2× and 4× speedups.

The proposed DPR method consistently outperformed popular techniques like Taylor Pruning (TP) and Filter Pruning (FP). For 3D-ResNet18, it achieved a 2× theoretical speedup with a negligible 0.41% accuracy loss. At a 4× speedup, the accuracy loss was only 2.87%, compared to 14.24% for Taylor Pruning.

Discussion and Conclusion

Analysis revealed that deeper layers (e.g., conv5b) exhibit higher reconstruction errors, suggesting they are less redundant and more sensitive to pruning. The dynamic regularization approach avoids the dramatic loss spikes seen in sudden pruning methods by "fading out" weights. While the theoretical speedups are significant, future work should address real-world wall-clock latency on specific hardware and evaluate performance on larger datasets like Kinetics-400.

Summary updated

BibTeX
@misc{zhang2018three,
  author = {Yuxin Zhang and Huan Wang and Yang Luo and Roland Hu},
  title = {{Three Dimensional Convolutional Neural Network Pruning with Regularization-Based Method}},
  year = {2018},
  eprint = {1811.07555},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.07555},
}
Figure