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

通过查询选择实现检测Transformer的知识蒸馏

Knowledge Distillation via Query Selection for Detection Transformer

Beihang University(北京航空航天大学);Baidu Inc(百度公司)

Yi Liu, Luting Wang, Zongheng Tang, Yue Liao, Yifan Sun, Lijun Zhang, Si Liu

AI总结:

针对DETR模型部署成本高的问题,本文提出QSKD框架,通过基于GIoU的分组查询选择挖掘难负查询,并结合AGFD与LAPD进行知识蒸馏,在MS-COCO上以低计算开销显著提升多种DETR架构的AP。

摘要:

Transformer通过引入DETR彻底改变了目标检测领域,DETR以其简洁性和有效性而广受赞誉。尽管具有这些优势,这些模型的庞大尺寸给实际部署带来了重大挑战,尤其是在资源受限的环境中。本文致力于解决压缩DETR的难题,所借助的手段是知识蒸馏,该技术有望在缩小模型尺寸的同时保持模型性能。DETR性能的一个关键方面在于其依赖查询来准确解释目标表示。传统蒸馏方法往往只关注通过二分匹配识别出的正查询,而忽略了难负查询中蕴含的丰富信息。我们的可视化分析表明,聚焦于前景元素的难负查询对于提升蒸馏效果至关重要。为此,我们提出了一种新颖的分组查询选择策略,该策略不同于DETR蒸馏中的传统查询选择,它根据查询与真实目标的广义交并比(GIoU)对查询进行分组划分,从而发掘出有价值的难负查询用于蒸馏。此外,我们提出了面向DETR的查询选择知识蒸馏(QSKD)框架,该框架整合了注意力引导特征蒸馏(AGFD)与局部对齐预测蒸馏(LAPD)。这些组件通过聚焦教师模型中间特征和输出中信息量最大的方面来优化蒸馏过程。我们在MS-COCO数据集上进行的全面实验评估证明了本方法的有效性:该方法在多种DETR架构上显著提升了平均精度(AP),且不会产生显著的计算开销。具体而言,Conditional DETR ResNet-18的AP从35.8提升至39.9。

英文摘要:

Transformers have revolutionized the object detection landscape by introducing DETRs, acclaimed for their simplicity and efficacy. Despite their advantages, the substantial size of these models poses significant challenges for practical deployment, particularly in resource-constrained environments. This paper addresses the challenge of compressing DETR by leveraging knowledge distillation, a technique that holds promise for maintaining model performance while reducing size. A critical aspect of DETRs' performance is their reliance on queries to interpret object representations accurately. Traditional distillation methods often focus exclusively on positive queries, identified through bipartite matching, neglecting the rich information present in hard-negative queries. Our visual analysis indicates that hard-negative queries, focusing on foreground elements, are crucial for enhancing distillation outcomes. To this end, we introduce a novel Group Query Selection strategy, which diverges from traditional query selection in DETR distillation by segmenting queries based on their Generalized Intersection over Union (GIoU) with ground truth objects, thereby uncovering valuable hard-negative queries for distillation. Furthermore, we present the Knowledge Distillation via Query Selection for DETR (QSKD) framework, which incorporates Attention-Guided Feature Distillation (AGFD) and Local Alignment Prediction Distillation (LAPD). These components optimize the distillation process by focusing on the most informative aspects of the teacher model's intermediate features and output. Our comprehensive experimental evaluation of the MS-COCO dataset demonstrates the effectiveness of our approach, significantly improving average precision (AP) across various DETR architectures without incurring substantial computational costs. Specifically, the AP of Conditional DETR ResNet-18 increased from 35.8 to 39.9.

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

↑