[Paper Review] MnasFPN: Learning Latency-aware Pyramid Architecture for Object Detection on Mobile Devices
This paper proposes MnasFPN, a mobile-optimized neural architecture search space for object detection heads that integrates inverted residual blocks and latency-aware search. Trained with a reinforcement learning controller guided by on-device latency, MnasFPN achieves 1.8 mAP higher than SSDLite and 10% faster inference than NAS-FPNLite on Pixel devices, with a 25% reduction in non-backbone latency while maintaining low parameter count.
Despite the blooming success of architecture search for vision tasks in resource-constrained environments, the design of on-device object detection architectures have mostly been manual. The few automated search efforts are either centered around non-mobile-friendly search spaces or not guided by on-device latency. We propose MnasFPN, a mobile-friendly search space for the detection head, and combine it with latency-aware architecture search to produce efficient object detection models. The learned MnasFPN head, when paired with MobileNetV2 body, outperforms MobileNetV3+SSDLite by 1.8 mAP at similar latency on Pixel. It is also both 1.0 mAP more accurate and 10% faster than NAS-FPNLite. Ablation studies show that the majority of the performance gain comes from innovations in the search space. Further explorations reveal an interesting coupling between the search space design and the search algorithm, and that the complexity of MnasFPN search space may be at a local optimum.
Motivation & Objective
- To address the lack of automated, latency-guided architecture search for object detection heads on mobile devices.
- To design a mobile-specific search space that supports efficient operations like depthwise separable convolutions and inverted residuals.
- To improve accuracy and speed trade-offs in mobile object detection by jointly optimizing the detection head and on-device latency.
- To demonstrate that search space design is as critical as search algorithm choice in NAS for mobile detection.
- To enable efficient, high-performance object detection on edge devices through end-to-end latency-aware architecture search.
Proposed method
- Proposes MnasFPN, a search space for detection heads that incorporates inverted residual blocks and structured feature fusion operations optimized for mobile CPUs.
- Introduces a latency-aware architecture search framework using reinforcement learning, where the controller is trained on real on-device latency measurements.
- Employs a structured down-sampling operation (SDO) that combines depthwise separable convolutions and pointwise 1x1 convolutions to reduce computational cost during feature fusion.
- Uses a controller-based reinforcement learning approach to search over the MnasFPN space, with reward shaped by mAP and latency trade-offs.
- Applies a width multiplier and depth multiplier strategy to control model size and latency, enabling fair comparison with SSDLite and NAS-FPNLite.
- Conducts ablation studies to evaluate the impact of SDO, search space design, and controller behavior on performance and efficiency.
Experimental results
Research questions
- RQ1Can a mobile-optimized search space for detection heads significantly improve accuracy and latency over existing hand-crafted or non-latency-guided approaches?
- RQ2How does the integration of inverted residual blocks and structured down-sampling operations affect performance in mobile object detection?
- RQ3To what extent does latency-aware search outperform accuracy-only search in mobile detection head design?
- RQ4Is the performance gain primarily due to search space design or the search algorithm itself?
- RQ5Can a controller-based NAS framework effectively explore complex, non-sequential detection head architectures with meaningful efficiency gains?
Key findings
- MnasFPN with MobileNetV2 achieves 26.1 mAP on COCO test-dev at 183ms latency, outperforming NAS-FPNLite by 1.0 mAP and 10% faster in end-to-end latency.
- With MobileNetV3 backbone, MnasFPN achieves 25.5 mAP at 168ms, which is 3.4 mAP higher than SSDLite with MobileNetV2 and 2.5 mAP higher than SSDLite with MnasNet-A1.
- At ~120ms latency, MnasFPN with MobileNetV2 and 0.7 width multiplier achieves 1.8 mAP higher than SSDLite with MobileNetV3, even when SSDLite uses the channel-halving trick.
- The ablation study confirms that SDO reduces latency by 8–11ms (4–6%) without affecting mAP, indicating that 12–14% of the head’s latency is optimizable through SDO.
- The search space design is critical: disabling SDO or removing key architectural components leads to significant latency increases without mAP degradation, proving the effectiveness of the MnasFPN design.
- The non-backbone latency of MnasFPN is 25% lower than NAS-FPNLite, indicating that the detection head is now the performance bottleneck, suggesting potential for joint backbone-head search in future work.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.