HA-DETR: accelerating real-time object detection by replacing decoder self-attention

Mainstream real-time object detectors, like the YOLO series, balance speed and accuracy but are bottlenecked by Non-Maximum Suppression (NMS) for post-processing. While end-to-end Transformer-based detectors show potential by eliminating NMS, their high computational cost impedes real-time application. Concurrently, alternatives like DECO, using a pure convolutional framework, are hampered by local receptive fields, limiting global context modeling and limiting the accuracy on lightweight models. To address this, we introduce HA-DETR, a Hybrid Architecture DETR fusing the local feature extraction of convolutions with the global context modeling of Transformers, particularly effective in resource-constrained scenarios. HA-DETR uses an efficient multi-scale encoder and an effective hybrid decoder that integrates convolutional query refinement with cross-attention to accelerate predictions. This hybrid design, however, exacerbates a training dynamic mismatch. To mitigate this, we propose the Decoupled Gamma Loss (DGL), which introduces independent modulating factors, $$\gamma _{pos}$$ and $$\gamma _{neg}$$, to alleviate sample imbalance from disparate convergence rates of the hybrid components. Experiments validate our method. On the COCO dataset, our lightweight HA-DETR-R18 achieves 48.4 AP at 68 FPS on a V100 GPU, surpassing RT-DETR-R18 by 1.9 AP with a 13% speedup and outperforming DECO-R18 by 7.9 AP. Our work provides a competitive architectural alternative for efficient and accurate real-time object detection.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-04-16
DOI
https://doi.org/10.1038/s41598-026-48909-1
Primary Topic
Advanced Neural Network Applications
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

HA-DETR: accelerating real-time object detection by replacing decoder self-attention

Shen Wang, Yanqiu Tang
Scientific Reports
Advanced Neural Network Applications
article

HA-DETR: accelerating real-time object detection by replacing decoder self-attention

Shen Wang, Yanqiu Tang
article en

Abstract

Mainstream real-time object detectors, like the YOLO series, balance speed and accuracy but are bottlenecked by Non-Maximum Suppression (NMS) for post-processing. While end-to-end Transformer-based detectors show potential by eliminating NMS, their high computational cost impedes real-time application. Concurrently, alternatives like DECO, using a pure convolutional framework, are hampered by local receptive fields, limiting global context modeling and limiting the accuracy on lightweight models. To address this, we introduce HA-DETR, a Hybrid Architecture DETR fusing the local feature extraction of convolutions with the global context modeling of Transformers, particularly effective in resource-constrained scenarios. HA-DETR uses an efficient multi-scale encoder and an effective hybrid decoder that integrates convolutional query refinement with cross-attention to accelerate predictions. This hybrid design, however, exacerbates a training dynamic mismatch. To mitigate this, we propose the Decoupled Gamma Loss (DGL), which introduces independent modulating factors, $$\gamma _{pos}$$ and $$\gamma _{neg}$$, to alleviate sample imbalance from disparate convergence rates of the hybrid components. Experiments validate our method. On the COCO dataset, our lightweight HA-DETR-R18 achieves 48.4 AP at 68 FPS on a V100 GPU, surpassing RT-DETR-R18 by 1.9 AP with a 13% speedup and outperforming DECO-R18 by 7.9 AP. Our work provides a competitive architectural alternative for efficient and accurate real-time object detection.

Scientific Reports
Changchun University of Science and Technology (CN), Changchun University (CN)
People's Government of Jilin Province
Openalex Percentile: Top 6%
Advanced Neural Network Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.