Abstract
This paper introduces Practical Object Detection (POD), a novel framework designed to enhance neural network scale sensitivity without incurring computational overhead during inference. By learning continuous scales during training and mathematically decomposing them into fixed, integral dilated convolutions for deployment, POD achieves significant accuracy improvements on the COCO dataset. Crucially, the method adds zero extra parameters or FLOPs to the final model, making it highly compatible with hardware accelerators like TensorRT and TVM.
Introduction
Scale variation remains a fundamental challenge in object detection, as models must accurately identify objects ranging from a few pixels to nearly the entire image frame. Current solutions typically involve heuristic approaches, such as predefined anchor boxes and image pyramids, or dynamic methods like Deformable Convolutions. While dynamic methods offer flexibility by adjusting receptive fields per-pixel, they introduce irregular memory access patterns that are difficult to optimize for real-time edge deployment.
The POD framework addresses this gap by asking: How can we provide the accuracy benefits of learned, flexible receptive fields while maintaining the fixed, standard convolution structures required for high-performance hardware?
Methodology: From Learning to Deployment
The authors propose a two-stage pipeline that bridges the gap between continuous scale learning and rigid hardware execution.
1. Global Scale Learner (GSL) Network
During the training phase, standard 3x3 convolutions are replaced with GSL modules. These modules learn a global, continuous (fractional) scale for each convolution filter in both height and width directions. Unlike dynamic methods that predict scales per-pixel, GSL learns a single optimal scale per layer, which the authors found to be remarkably stable across different images.
2. Scale Decomposition and Weight Transfer
Because fractional scales require slow bilinear interpolation, POD employs a mathematical decomposition trick. A learned fractional scale (e.g., 1.7) is decomposed into a weighted combination of standard, integer-based dilated convolutions (e.g., a mix of dilation 1 and dilation 2).
3. Fast-Deployment (FD) Network
A new deployment network is constructed using only these fixed, integer dilated convolutions. The weights from the GSL network are split according to the decomposition ratio and transferred to the FD network, followed by a brief fine-tuning stage. The resulting FD network behaves as if it has fractional receptive fields but utilizes only highly optimized, standard dilated convolutions.
Experimental Results
The method was evaluated on the MS COCO dataset using both one-stage (RetinaNet) and two-stage (Faster R-CNN) detectors with ResNet-50 and ResNet-101 backbones.
Accuracy and Efficiency
On the COCO test-dev set, the ResNet-101 RetinaNet-FD achieved 41.5 mAP, a +2.4 mAP improvement over the baseline. Similarly, the ResNet-101 Faster R-CNN reached 42.1 mAP (+2.1 mAP).
As shown in the performance analysis, the inference time for the FD network is identical to the baseline because it uses standard convolutions. For instance, RetinaNet-FD runs at 101ms, whereas the unoptimized GSL version requires 150ms. This efficiency is achieved with zero additional parameters and zero extra FLOPs during inference.
Key Insights and Discussion
- Global vs. Local Scales: The stability of learned scales suggests that global, per-layer scale tuning is often sufficient for significant gains, avoiding the complexity of per-pixel dynamic sampling.
- FPN Behavior: Interestingly, layers within Feature Pyramid Networks (FPNs) often learned scales less than 1. This indicates that FPNs, which already perform heavy down-sampling, benefit from shrinking their receptive fields to avoid irrelevant background noise.
- Limitations: While inference is seamless, the training pipeline is multi-staged, requiring GSL training, decomposition, weight transfer, and fine-tuning.
Conclusion
POD offers a practical path for deploying scale-sensitive detectors on edge devices. By shifting the complexity of scale adaptation from inference-time sampling to training-time decomposition, it provides a "free" accuracy boost for standard CNN architectures without sacrificing hardware compatibility.
Summary updated