TL;DR
This paper introduces a novel method for compressing deep visual detectors, crucial for deploying them on resource-constrained devices. By proactively optimizing for detection-specific discriminants and leveraging object location information, their approach achieves significant model compression while often improving detection performance compared to the original, unpruned models.
What Problem Does This Paper Address?
Deep neural networks have revolutionized computer vision, but their immense size and computational demands make them impractical for edge devices. While network pruning is a common compression technique, most existing methods focus on classification tasks and overlook the unique challenges of object detection. Specifically, they often fail to effectively utilize crucial localization information and tend to prune based on local importance measures that don't necessarily translate to the final task's utility. This can lead to suboptimal compression, where useful components are discarded or redundant ones are retained, hindering performance.
Methods
The core of this paper is the Location-aware Discriminant Training (LDT) framework, which proactively prepares a detector for pruning. LDT operates in two main steps:
- Maximizing and Compressing Detection-Related Discriminants: LDT trains the network's "neck" (e.g., Feature Pyramid Network - FPN) to maximize class separation and localization power. It achieves this by formulating a generalized eigenvalue problem based on within-class and between-class scatter matrices derived from location-aware features. A covariance penalty term is also introduced to de-correlate dimensions and encourage a compact set of discriminative channels. This step effectively "condenses" the essential detection information into fewer, more potent channels.
- Tracing and Pruning Discriminating Power: After LDT, the paper traces the detection-related discriminating power backward through the network using first-order derivatives. This process, guided by object location information (to focus on relevant foreground objects), helps identify and prune less important filters and channels. The location information is incorporated by using attention masks that prioritize pixels within ground truth bounding boxes. This ensures that pruning decisions are more informed by the actual task of detecting objects.
Datasets
The authors evaluate their method on two widely used object detection datasets:
- KITTI: A dataset commonly used for autonomous driving tasks.
- Microsoft COCO: A large-scale dataset for object detection, segmentation, and captioning.
Key Insights and Ideas
- Location is King (for Detection Pruning): Explicitly incorporating object location information into both the training (LDT) and pruning (utility tracing) phases significantly boosts performance. This is a key differentiator from prior work that often ignored this crucial aspect of object detection.
- Proactive vs. Passive Pruning: Instead of passively pruning a pre-trained model where useful and harmful components are intertwined, LDT proactively reorganizes discriminants during training, creating more "room" for safe and effective pruning.
- Filter Utility is Not Binary: The paper argues against the assumption that filters are either entirely useful or useless. Their LDT process refines filter utility, making the decision to prune or retain an entire filter more justifiable.
- Improved Performance Post-Pruning: Remarkably, their compressed models not only achieve significant complexity reduction but often outperform the original unpruned models. This suggests that the pruning process, guided by LDT, can act as a form of regularization, removing noise and improving generalization.
Key Results
- KITTI Dataset:
- Their pruned YOLOX-S detector, with 65% parameters pruned, achieved a 0.6% mAP increase.
- Pruned ATSS and GFL detectors, with 70% pruning rates, showed mAP improvements of 0.7% and 0.5%, respectively.
- Their method consistently outperformed HRank, GroupFisher, CHIP, and PX across various base detectors and pruning rates.
- COCO Dataset:
- Improvements of up to 1.5% mAP for ATSS, 2.6% for GFL, and 2.7% for YOLOF were observed.
- A pruned YOLOF model with 30% FLOP reduction showed a 0.3% mAP increase.
- Inference Latency: Significant reductions in FLOPs (e.g., 62.1% for YOLOX-S) and parameters (e.g., 74.8% for YOLOX-S) led to substantial improvements in inference speed (e.g., 1.52x speedup on CPU for YOLOX-S).
- LDT Benefits: Incorporating LDT into training improved performance for all tested detectors on both KITTI and COCO, adding only ~10% offline training overhead.
Limitations and Future Work
- Data Efficiency: While the paper shows that a subset of images can be used for importance estimation, the initial LDT training still requires a significant amount of data. Future work could explore more efficient ways to learn these discriminants.
- Generalization to Other Tasks: The current method is specifically designed for object detection. Extending it to other vision tasks like segmentation or pose estimation could be a valuable future direction.
- Hyperparameter Tuning: The paper mentions hyperparameters for attention decay and LDT loss terms. Further research into automated hyperparameter optimization could simplify the application of this method.
Summary updated