Saved in:
Bibliographic Details
Main Authors: Liu, Yi, Wang, Luting, Tang, Zongheng, Liao, Yue, Sun, Yifan, Zhang, Lijun, Liu, Si
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2409.06443
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914946379415552
author Liu, Yi
Wang, Luting
Tang, Zongheng
Liao, Yue
Sun, Yifan
Zhang, Lijun
Liu, Si
author_facet Liu, Yi
Wang, Luting
Tang, Zongheng
Liao, Yue
Sun, Yifan
Zhang, Lijun
Liu, Si
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2409_06443
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Knowledge Distillation via Query Selection for Detection Transformer
Liu, Yi
Wang, Luting
Tang, Zongheng
Liao, Yue
Sun, Yifan
Zhang, Lijun
Liu, Si
Computer Vision and Pattern Recognition
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.
title Knowledge Distillation via Query Selection for Detection Transformer
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2409.06443