Abstract
LiDAR-based 3D object detection is a critical component for autonomous driving, yet its high computational demands typically require power-hungry desktop GPUs. This paper presents a compiler-aware unified framework that achieves real-time 3D detection on a mobile device (Samsung Galaxy S20). By leveraging reinforcement learning to co-optimize network architecture, pruning strategies, and compiler-level code generation, the proposed method achieves a 2.7x speedup over standard models while maintaining competitive accuracy on the KITTI benchmark.
The Challenge of Mobile 3D Detection
3D object detection allows vehicles to perceive their surroundings through LiDAR point clouds. However, deploying these models on mobile edge devices presents a "triple threat":
- Computational Complexity: Irregular and dense 3D point clouds are difficult to process efficiently.
- Hardware Constraints: Mobile GPUs lack the memory and compute throughput of their desktop counterparts.
- The Optimization Gap: Traditional model compression techniques, such as pruning, often focus on theoretical metrics like FLOPs. These metrics frequently fail to translate into actual speedups because they ignore how a specific compiler executes code on target hardware.
Methods: A Compiler-Aware Unified Framework
The authors address these challenges by treating model optimization as a search problem solved via Reinforcement Learning (RL). The framework consists of two primary components interacting in a closed loop:
- The Generator (RNN): This acts as a controller that automatically samples "unified schemes." For every layer in the network, the RNN determines network enhancements (e.g., kernel size selection, Winograd transformations) and pruning parameters (method, type, and ratio).
- The Unified Actor: This component implements the sampled scheme, trains the model, and evaluates its mean Average Precision (mAP) and actual latency on the physical mobile device.
To manage the high cost of training every sampled model, the researchers utilize Bayesian Optimization (BO) with a Weisfeiler-Lehman (WL) graph kernel to predict the performance of promising schemes. Finally, a custom compiler performs domain-specific optimizations, including layer fusion and sparse matrix reordering, specifically tuned for mobile GPU architectures.
Key Insights and Results
A central finding of the study is that hardware-in-the-loop measurement is essential. FLOPs are a poor proxy for real-world latency; instead, the RL agent discovers that different layers require different pruning types—such as the authors' proposed Block Pruning—to maximize hardware parallelism.
Performance on KITTI Benchmark
The framework was evaluated using the KITTI object detection benchmark, focusing on Car, Pedestrian, and Cyclist detection. Key results include:
- Real-Time Latency: On a Samsung Galaxy S20, the optimized model achieved a latency of 97ms (~10 FPS), meeting the threshold for real-time operation.
- Efficiency Gains: This represents a 2.7x speedup over the original PointPillars baseline on the same hardware.
- Accuracy Retention: Despite pruning ratios reaching up to 86%, the model maintained high accuracy. In some cases, such as "Easy" car detection (85.20% AP), it slightly outperformed the unoptimized baseline, likely due to the regularizing effect of pruning.
Conclusion and Future Work
This work demonstrates that real-time 3D LiDAR detection is feasible on mobile devices when the optimization process is hardware-aware. While the current search process is computationally intensive (requiring significant GPU hours), it paves the way for deploying sophisticated perception models on edge devices. Future research will focus on expanding compiler support for more complex 3D sparse convolutions and exploring aggressive quantization techniques to further reduce latency.
Summary updated