Abstract
Deep learning approaches have achieved unprecedented performance in visual recognition tasks such as object detection and pose estimation. However, state-of-the-art models have millions of parameters represented as floats which make them computationally expensive and constrain their deployment on hardware such as mobile phones and IoT nodes. Most commonly, activations of deep neural networks tend to be sparse thus proving that models are over parametrized with redundant neurons. Model compression techniques, such as pruning and quantization, have recently shown promising results by improving model complexity with little loss in performance. In this work, we extended pruning, a compression technique that discards unnecessary model connections, and weight sharing techniques for the task of object detection. With our approach, we are able to compress a state-of-the-art object detection model by 30.0% without a loss in performance. We also show that our compressed model can be easily initialized with existing pre-trained weights, and thus is able to fully utilize published state-of-the-art model zoos.
Introduction
Modern deep learning models for visual recognition are incredibly accurate, but they are also massive. State-of-the-art object detectors often contain tens of millions of parameters represented as 32-bit floating-point numbers. This high computational and memory footprint makes them practically unusable on edge devices with strict latency, power, and memory constraints, such as mobile phones, IoT nodes, and AR/VR headsets. Because neural networks are often over-parameterized—meaning many neurons and connections contribute little to the final output—this research tackles the challenge of stripping away this "dead weight." The goal is to shrink the model's physical size and computational requirements without sacrificing its ability to accurately detect objects.
Methodology
The authors employ a two-pronged approach to model compression:
- Pruning: Parts of the model that contribute the least to its predictive power are removed. Two variations are explored: Weight Pruning, which ranks individual parameters by absolute magnitude, and Unit/Neuron Pruning, which evaluates entire columns in the parameter matrix using the $L_2$-norm.
- Quantization: After pruning, the remaining 32-bit floating-point parameters are quantized down to 8-bit integer precision, drastically reducing the memory footprint.
Experiments were conducted using a Faster R-CNN architecture with a ResNet-50 backbone and a Feature Pyramid Network (FPN). The model contains 41.4 million parameters, with the backbone accounting for over 60% of them. The approach was evaluated on a custom dataset of 1,309 instances collected from East African parks.
Results and Analysis
Sparsity as Regularization
A key finding is that at lower sparsity levels, pruning actually improves the model's performance compared to the dense baseline. By removing 10% to 30% of the backbone's weights, the model likely sheds noisy or overfitted connections, acting as a form of structural regularization.
Targeting the Backbone
Because the ResNet-50 backbone contains the majority of the parameters (>60%), it is the most effective target for compression. Pruning just the backbone yields a superior trade-off between memory reduction and accuracy retention compared to aggressive pruning of the Region of Interest (ROI) heads.
As shown in the table above, the baseline model (0% pruning) achieved 87.92 AP50 at 165.6 MB. Pruning 30% of the backbone increased AP50 slightly to 88.15, while dropping the memory requirement to 133.44 MB. Even at 40% backbone pruning, performance remains high at 86.95 AP50.
Aggressive Pruning Trade-offs
In contrast, pruning both the backbone and the ROI head simultaneously leads to more significant performance degradation at higher sparsity levels.
Pruning both components by 40% reduces memory to 100.3 MB but causes a noticeable drop in accuracy to 73.64 AP50. Extreme pruning (90%) effectively destroys the model's predictive capability, with AP50 dropping to near zero.
Discussion and Conclusion
The results demonstrate that state-of-the-art object detection models can be significantly compressed with minimal performance loss. A 30% reduction in memory was achieved while slightly improving accuracy, highlighting the redundancy in modern architectures. Furthermore, these techniques support initialization from existing pre-trained weights, allowing engineers to compress off-the-shelf models post-hoc.
Limitations: The primary limitation is the small size of the custom East African parks dataset (1,309 instances). It remains to be seen if the "free" 30% compression holds on more diverse datasets like MS COCO. Additionally, while memory reduction is clear, future work should evaluate actual inference speedups on edge hardware. The methodology is architecture-agnostic and could be readily applied to single-stage detectors like YOLO.
Summary updated