arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.15865cs.CV
收藏

LiDAR-PTQ: 面向点云三维目标检测的训练后量化

LiDAR-PTQ: Post-Training Quantization for Point Cloud 3D Object Detection

Southeast University(东南大学);Meituan Inc(美团);Nanyang Technological University(南洋理工大学);Zhejiang University(浙江大学)

Sifan Zhou, Liang Li, Xinyu Zhang, Bo Zhang, Shipeng Bai, Miao Sun, Ziyu Zhao, Xiaobo Lu, Xiangxiang Chu

AI总结:

针对边缘设备部署3D激光雷达检测器的算力内存受限问题,提出含稀疏校准、任务引导损失与自适应舍入的LiDAR-PTQ方法,实现INT8模型精度接近FP32且推理提速3倍,效率远超量化感知训练。

摘要:

由于算力和内存高度受限,在自动驾驶车辆与机器人搭载的边缘设备上部署基于3D激光雷达的检测器面临严峻挑战。训练后量化(Post-Training Quantization, PTQ)作为一种简便直接的模型压缩方法,已在2D视觉任务中得到广泛应用,但直接将其应用于3D激光雷达任务会不可避免地导致性能下降。为此,我们提出了一种名为LiDAR-PTQ的有效PTQ方法,专门针对3D激光雷达检测(包括基于SPConv和无SPConv的架构)设计。LiDAR-PTQ包含三个核心组件:(1)基于稀疏性的校准方法,用于确定量化参数的初始化值;(2)任务引导的全局正样本损失(Task-guided Global Positive Loss, TGPL),用于缩小量化前后最终预测结果的差异;(3)自适应最近舍入操作,用于最小化逐层重构误差。大量实验表明,将LiDAR-PTQ应用于CenterPoint(包括基于Pillar和基于Voxel的版本)时,可取得当前最优的量化性能。据我们所知,在基于激光雷达的3D检测任务中,PTQ INT8模型的精度首次与FP32模型几乎持平,同时推理速度提升3倍。此外,LiDAR-PTQ的成本效益优异,比量化感知训练方法快30倍。代码将发布于https://github.com/StiphyJay/LiDAR-PTQ。

英文摘要:

Due to highly constrained computing power and memory, deploying 3D lidar-based detectors on edge devices equipped in autonomous vehicles and robots poses a crucial challenge. Being a convenient and straightforward model compression approach, Post-Training Quantization (PTQ) has been widely adopted in 2D vision tasks. However, applying it directly to 3D lidar-based tasks inevitably leads to performance degradation. As a remedy, we propose an effective PTQ method called LiDAR-PTQ, which is particularly curated for 3D lidar detection (both SPConv-based and SPConv-free). Our LiDAR-PTQ features three main components, \textbf{(1)} a sparsity-based calibration method to determine the initialization of quantization parameters, \textbf{(2)} a Task-guided Global Positive Loss (TGPL) to reduce the disparity between the final predictions before and after quantization, \textbf{(3)} an adaptive rounding-to-nearest operation to minimize the layerwise reconstruction error. Extensive experiments demonstrate that our LiDAR-PTQ can achieve state-of-the-art quantization performance when applied to CenterPoint (both Pillar-based and Voxel-based). To our knowledge, for the very first time in lidar-based 3D detection tasks, the PTQ INT8 model's accuracy is almost the same as the FP32 model while enjoying $3\times$ inference speedup. Moreover, our LiDAR-PTQ is cost-effective being $30\times$ faster than the quantization-aware training method. Code will be released at \url{https://github.com/StiphyJay/LiDAR-PTQ}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑