Object Detection with Transformers: A Review

Tahira Shehzadi, Khurram Azeem Hashmi, Didier Stricker, Muhammad Zeshan Afzal

Abstract

The astounding performance of transformers in natural language processing (NLP) has motivated researchers to explore their applications in computer vision tasks. DEtection TRansformer (DETR) introduces transformers to object detection tasks by reframing detection as a set prediction problem. Consequently, eliminating the need for proposal generation and post-processing steps. Initially, despite competitive performance, DETR suffered from slow training convergence and ineffective detection of smaller objects. However, numerous improvements are proposed to address these issues, leading to substantial improvements in DETR and enabling it to exhibit state-of-the-art performance. To our knowledge, this is the first paper to provide a comprehensive review of 21 recently proposed advancements in the original DETR model. We dive into both the foundational modules of DETR and its recent enhancements, such as modifications to the backbone structure, query design strategies, and refinements to attention mechanisms. Moreover, we conduct a comparative analysis across various detection transformers, evaluating their performance and network architectures. We hope that this study will ignite further interest among researchers in addressing the existing challenges and exploring the application of transformers in the object detection domain.

Introduction: The DETR Revolution

For years, object detection was the kingdom of Convolutional Neural Networks (CNNs), relying on complex, hand-crafted components like anchor generation and Non-Maximum Suppression (NMS) to prune redundant guesses. In 2020, the DEtection TRansformer (DETR) changed the game by reframing detection as a simple set prediction problem, eliminating the need for these manual steps.

However, the original DETR had two "Achilles' heels": glacial training convergence (often requiring 500 epochs) and poor performance on small objects. This review paper systematizes the explosion of research that followed, tracking how the field moved from these initial hurdles to state-of-the-art (SOTA) detectors like DINO.

Timeline of important developments in DEtection TRansformers (DETR), tracking the evolution from the original model to DINO.

Architectural Taxonomy of Improvements

As a review of 21 distinct variants, this paper categorizes improvements across four key architectural dimensions. Research has primarily focused on overcoming the computational bottlenecks of the original transformer architecture, with a heavy emphasis on attention mechanisms.

Distribution of research focus on modifications to the original DETR architecture, showing that 60% of efforts target Attention mechanisms.

1. Refined Attention Mechanisms

The biggest breakthrough in the DETR lineage was realizing that global "look-at-everything" attention is overkill. By replacing global attention with localized or "deformable" attention (e.g., Deformable-DETR) that focuses on a small set of sampling points near a reference, training time dropped by an order of magnitude.

2. Query Design Strategies

Instead of using random learned embeddings, newer models use "anchor points" (Anchor-DETR) or dynamic bounding boxes (DAB-DETR) as queries. Treating queries as explicit $(x, y, w, h)$ coordinates makes the attention mechanism much more intuitive and effective by providing the model with better spatial priors.

3. Backbone Modifications

Researchers have moved beyond standard ResNets to more efficient structures or even "backbone-free" designs (like WB-DETR) to optimize the feature extraction process.

4. Pre-training & Denoising

Techniques like DN-DETR and DINO introduce "ground-truth denoising," where noised versions of real boxes are fed into the decoder. Asking the model to "fix" these boxes stabilizes the bipartite matching process, leading to significantly faster convergence.

Key Results and Performance

Quantitative comparisons on the MS COCO benchmark highlight the dramatic progress of transformer-based detectors:

  • Convergence Speed: While the original DETR took 500 epochs to reach 43.3 mAP, DINO achieved a superior 49.0 mAP in just 12 epochs.
  • Small Object Performance: Deformable-DETR nearly doubled the accuracy for small objects ($AP_s$) compared to the baseline DETR (26.4 vs 15.2).
  • SOTA Performance: At the time of writing, DINO (using a ResNet-50) reached up to 51.3 mAP, showcasing that Transformer-based detectors have officially surpassed traditional CNN-based frameworks like Faster R-CNN.

Limitations and Future Work

Despite rapid progress, several challenges remain. High-resolution feature maps still make these models memory-hungry, complicating deployment on edge devices. Furthermore, most current models use a fixed number of object queries; future work should focus on adaptive query quantities that change based on image complexity. Finally, there is a growing trend toward using these detection transformers as part of larger, multi-modal foundation models that handle text and images simultaneously.

Summary updated

BibTeX
@inproceedings{shehzadi2025object,
  author = {Tahira Shehzadi and Khurram Azeem Hashmi and Didier Stricker and Muhammad Zeshan Afzal},
  title = {{Object Detection with Transformers: A Review}},
  booktitle = {Sensors},
  year = {2025},
  doi = {10.3390/s25196025},
}
Figure