由于算力和内存高度受限,在自动驾驶车辆与机器人搭载的边缘设备上部署基于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}.
PTQ4RIS: Post-Training Quantization for Referring Image Segmentation
School of Electronic and Electrical Engineering, Shanghai University of Engineering Science(上海工程技术大学电子与电气工程学院);SenseTime(商汤科技);Carnegie Mellon University(卡内基梅隆大学)
FP4DiT: Towards Effective Floating Point Quantization for Diffusion Transformers
Department of Electrical and Computer Engineering, Faculty of Engineering University of Alberta(电气与计算机工程系,工程学院,阿尔伯塔大学);Division of Computer Science and Engineering, College of Engineering Louisiana State University(计算机科学与工程系,工程学院,路易斯安那州立大学)
PTQ4ARVG: Post-Training Quantization for AutoRegressive Visual Generation Models
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
I&S-ViT: An Inclusive & Stable Method for Pushing the Limit of Post-Training ViTs Quantization
Institute of Artificial Intelligence, Xiamen University(厦门大学人工智能学院);MAC Lab, Department of Artificial Intelligence, School of Informatics, Xiamen University(厦门大学信息学院人工智能系);Rakuten;Peng Cheng Laboratory(鹏城实验室)
Post-Training Quantization via Residual Truncation and Zero Suppression for Diffusion Models
Department of Artificial Intelligence(人工智能系);Kyung Hee University(庆尚大学);Department of Electrical Engineering(电气工程系);Department of Computer Science(计算机科学系)
GLF-Q: Global-Local Feature-based Quantization for Vision Transformers
State Key Laboratory of Novel Software Technology, Nanjing University(南京大学计算机软件新技术全国重点实验室);School of Artificial Intelligence, Nanjing University(南京大学人工智能学院);Zhongguancun Academy(中关村学院)
MGRQ: Post-Training Quantization For Vision Transformer With Mixed Granularity Reconstruction
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
Sensitivity-Aware Post-Training Quantization for Deep Neural Networks
South China University of Technology(华南理工大学);Pazhou Laboratory(Pazhou实验室);Key Laboratory of Big Data and Intelligent Robot, Ministry of Education(大数据与智能机器人重点实验室,教育部)
RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformers
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
Selective Focus: Investigating Semantics Sensitivity in Post-training Quantization for Lane Detection
School of Information Science and Technology, ShanghaiTech University(上海科技大学信息科学与技术学院);SenseTime Research(商汤科技研究院);Institute of Artificial Intelligence, Beihang University(北京航空航天大学人工智能研究院);State Key Laboratory of Complex & Critical Software Environment, Beihang University(北京航空航天大学复杂与关键软件环境国家重点实验室)