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

Q-DETR:一种高效的低比特量化检测Transformer

Q-DETR: An Efficient Low-Bit Quantized Detection Transformer

Beihang University(北京航空航天大学);Tencent(腾讯);Shanghai AI Laboratory(上海人工智能实验室);UNIUBI Research, Universal Ubiquitous Co.(泛在科技UNIUBI研究院);Zhongguancun Laboratory(中关村实验室)

Sheng Xu, Yanjing Li, Mingbao Lin, Peng Gao, Guodong Guo, Jinhu Lu, Baochang Zhang

AI总结:

本文提出分布校正蒸馏(DRD)方法,通过双层优化解决低比特量化DETR的查询信息失真问题,4比特Q-DETR在COCO上加速6.6倍且性能仅降2.6%。

摘要:

最近的检测Transformer(DETR)推进了目标检测的发展,但其在资源受限设备上的应用需要大量的计算和内存资源。量化通过用低比特参数和操作来表示网络,作为一种解决方案脱颖而出。然而,使用现有量化方法执行低比特量化DETR(Q-DETR)时会出现显著的性能下降。通过我们的经验分析,发现Q-DETR的瓶颈来自于查询信息失真。本文基于分布校正蒸馏(DRD)解决了这个问题。我们将DRD公式化为一个双层优化问题,该问题可以通过将信息瓶颈(IB)原则推广到Q-DETR的学习中来推导。在内层,我们对查询进行分布对齐以最大化自信息熵。在外层,我们引入了一种新的前景感知查询匹配方案,以有效地将教师信息转移到蒸馏所需的特征上,从而最小化条件信息熵。大量实验结果表明,我们的方法表现远优于现有技术。例如,4比特Q-DETR在理论上可以使带有ResNet-50骨干的DETR加速6.6倍,并达到39.4%的AP,在COCO数据集上仅比其实值对应物低2.6%的性能差距。

英文摘要:

The recent detection transformer (DETR) has advanced object detection, but its application on resource-constrained devices requires massive computation and memory resources. Quantization stands out as a solution by representing the network in low-bit parameters and operations. However, there is a significant performance drop when performing low-bit quantized DETR (Q-DETR) with existing quantization methods. We find that the bottlenecks of Q-DETR come from the query information distortion through our empirical analyses. This paper addresses this problem based on a distribution rectification distillation (DRD). We formulate our DRD as a bi-level optimization problem, which can be derived by generalizing the information bottleneck (IB) principle to the learning of Q-DETR. At the inner level, we conduct a distribution alignment for the queries to maximize the self-information entropy. At the upper level, we introduce a new foreground-aware query matching scheme to effectively transfer the teacher information to distillation-desired features to minimize the conditional information entropy. Extensive experimental results show that our method performs much better than prior arts. For example, the 4-bit Q-DETR can theoretically accelerate DETR with ResNet-50 backbone by 6.6x and achieve 39.4% AP, with only 2.6% performance gaps than its real-valued counterpart on the COCO dataset.

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

↑