mlsanityData to 7 Oct 2026

KS-DETR: Knowledge Sharing in Attention Learning for Detection Transformer

arXiv 2302.11208 ↗First posted 22 Feb 2023cs.CV cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Scaled dot-product attention applies a softmax function on the scaled dot-product of queries and keys to calculate weights and then multiplies the weights and values. In this work, we study how to improve the learning of scaled dot-product attention to improve the accuracy of DETR. Our method is based on the following observations: using ground truth foreground-background mask (GT Fg-Bg Mask) as additional cues in the weights/values learning enables learning much better weights/values; with better weights/values, better values/weights can be learned. We propose a triple-attention module in which the first attention is a plain scaled dot-product attention, the second/third attention generates high-quality weights/values (with the assistance of GT Fg-Bg Mask) and shares the values/weights with the first attention to improve the quality of values/weights. The second and third attentions are removed during inference. We call our method knowledge-sharing DETR (KS-DETR), which is an extension of knowledge distillation (KD) in the way that the improved weights and values of the teachers (the second and third attentions) are directly shared, instead of mimicked, by the student (the first attention) to enable more efficient knowledge transfer from the teachers to the student. Experiments on various DETR-like methods show consistent improvements over the baseline methods on the MS COCO benchmark. Code is available at https://github.com/edocanonymous/KS-DETR.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 20 of its 24 references that are in the map. First posted on arXiv 22 Feb 2023.

Builds on

20 of 24 references.

References · 20

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  7. 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
  8. 2020End-to-End Object Detection with Transformerscited by 7,384
  9. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
  10. 2020Knowledge Distillation: A Surveycited by 1,578
  11. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
  12. 2022DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detectioncited by 1,306
8 more
  1. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  2. 2022DAB-DETR: Dynamic Anchor Boxes are Better Queries for DETRcited by 569
  3. 2022DN-DETR: Accelerate DETR Training by Introducing Query DeNoisingcited by 486
  4. 2021Conditional DETR for Fast Training Convergencecited by 422
  5. 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 240
  6. 2021Fast Convergence of DETR with Spatially Modulated Co-Attentioncited by 176
  7. 2021Anchor DETR: Query Design for Transformer-Based Object Detectioncited by 30
  8. 2022Attention Distillation: self-supervised vision transformer students need more guidancecited by 16

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.