Multi-Layer Pruning Framework for Compressing Single Shot MultiBox Detector

Pravendra Singh, Manikandan R, Neeraj Matiyali, Vinay Namboodiri · DOI

Abstract

Deep learning models like the Single Shot MultiBox Detector (SSD) have achieved state-of-the-art performance in object detection but are often too large for edge deployment. This paper introduces a multi-layer pruning framework that utilizes global thresholding and a phased approach to compress SSD without significant accuracy loss. The method achieves up to 26X compression on detection tasks and 200X on classification, demonstrating high efficiency without specialized hardware requirements.

Introduction

While deep learning has revolutionized computer vision, the resulting models are frequently over-parameterized. For instance, the SSD model contains millions of parameters, making it unsuitable for resource-constrained devices like smartphones or drones. While model compression is well-established for image classification, it remains challenging for object detection. In detection, the network must not only identify objects but also localize them precisely. Pruning filters indiscriminately can "blind" the model to specific spatial regions, severely impacting Mean Average Precision (mAP). This work addresses these challenges by pruning the entire pipeline, including the specialized detection layers.

Methodology

The proposed framework follows a four-stage pipeline executed in multiple phases to maintain model stability.

Overview of the multi-layer pruning process, showing the transition from standard convolutional layers to sparse and finally pruned weights.

1. Sparsity Induction

The first step involves training the model with $L1$ regularization to encourage weight values toward zero. Unlike traditional methods that use local, layer-wise thresholds, this framework employs a global threshold across a set of layers. This approach preserves the relative importance of filters across the entire network architecture.

Weight distributions for layers conv3_3 and conv4_3. The bottom row (c, d) shows the sharp peak at zero induced by L1 regularization, facilitating effective pruning.

2. Filter Selection and Pruning

The algorithm evaluates dependencies between consecutive layers ($l$ and $l+1$). A filter in layer $l$ is removed if it is highly sparse or if the weights in the subsequent layer that depend on it are also sparse. This ensures that pruning one layer does not inadvertently destroy critical information flow to the next.

3. Phased Execution and Retraining

To avoid the "catastrophic" performance drop associated with one-shot pruning, the authors use a phased approach. The network is pruned in chunks (e.g., layers 1-4, then 4-7). After each pruning phase, the model is fine-tuned to recover accuracy. Interestingly, the authors found that using the original $L1$-trained weights for the remaining filters—rather than the zeroed-out thresholded weights—yielded superior recovery.

Experimental Results

The framework was evaluated on standard benchmarks including PASCAL VOC, GTSDB, CIFAR-10, and GTSRB.

Object Detection Performance

On the PASCAL VOC dataset, the framework achieved 6.7X compression on SSD300 with a minor mAP reduction (from 77.16 to 75.07). On the GTSDB traffic sign dataset, the results were even more pronounced: a 26X compression was achieved alongside an increase in mAP from 82.44 to 89.53. This suggests that aggressive pruning can act as a powerful regularizer for smaller, specialized datasets.

Image Classification Performance

To demonstrate versatility, the method was applied to VGG16 for classification. On CIFAR-10, the model was compressed by 125X (from 537MB to 4.3MB) while accuracy improved from 93.23% to 94.01%. On the GTSRB dataset, the model size was reduced by 200X with a 96.6% reduction in FLOPs.

Conclusion

The multi-layer pruning framework provides a robust solution for deploying complex detection models on edge devices. By considering inter-layer dependencies and using global thresholding, it achieves massive compression rates with minimal impact on accuracy. Future work will explore the integration of this framework with quantization and the development of more sophisticated importance scores for filter selection.

Summary updated

BibTeX
@inproceedings{singh2018multi,
  author = {Pravendra Singh and Manikandan R and Neeraj Matiyali and Vinay Namboodiri},
  title = {{Multi-Layer Pruning Framework for Compressing Single Shot MultiBox Detector}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2018},
  doi = {10.1109/wacv.2019.00145},
}
Figure