Abstract
To address the challenges of missed and false detections caused by densely distributed small objects, complex backgrounds, and limited informative cues in UAV-view images, this paper proposes MLRT-DETR (Multi-Layer RT-DETR), a multi-level modeling small object detection algorithm based on RT-DETR. First, a feature extraction module SDFE (Selective Dynamic Feature Extraction) is proposed. It leverages dynamic weight attention and a gating mechanism to capture key information, followed by randomized feature enhancement, thereby improving the model's ability to extract edge features of small objects. Second, polarity-aware linear attention and dynamic tanh are introduced to construct the PD-AIFI (Polarity-aware Dynamic AIFI) module, which enhances the model's spatial structure learning capability and nonlinear modeling efficiency. Finally, a feature fusion module MFF (Multi-path Feature Fusion) is designed. This module fuses shallow features and performs multi-level modeling, thereby enhancing the model's ability to perceive image textures, edges, and structural regions. Experimental results demonstrate that on the Visdrone2019 dataset, compared with RT-DETR, MLRT-DETR achieves a 2.1% improvement in [email protected] and a 1.0% improvement in [email protected]:0.95, while reducing the number of parameters by 5.7M and the computational complexity by 3.5Gflops. In comparison with algorithms such as YOLOv11M and DEIM, MLRT-DETR exhibits excellent performance in both accuracy and speed, indicating favorable application value.
Introduction
Detecting objects from an Unmanned Aerial Vehicle (UAV) perspective is notoriously difficult. Unlike standard datasets where objects are often centered and clear, UAV images feature "densely distributed small objects"—often only a few pixels wide—set against highly complex, cluttered backgrounds like forests or busy city intersections. Existing models face a "precision-efficiency" paradox: high-accuracy models like the original DETR are often too computationally heavy for edge deployment, while lightweight models often lose the fine-grained details necessary to distinguish small targets.
MLRT-DETR bridges this gap by evolving the Real-Time Detection Transformer (RT-DETR) with three primary architectural innovations: Selective Dynamic Feature Extraction (SDFE), Polarity-aware Dynamic AIFI (PD-AIFI), and Multi-path Feature Fusion (MFF).
Methodology
Overall Architecture
The MLRT-DETR architecture integrates specialized modules into the backbone and encoder-decoder framework to enhance sensitivity to tiny features without bloating computational costs.
Selective Dynamic Feature Extraction (SDFE)
The SDFE module replaces standard convolutional layers in the backbone. It is designed to capture spatial structures from multiple angles using multi-directional kernels (horizontal, vertical, and local).
SDFE incorporates a gating mechanism to filter out background noise and a Monte Carlo Attention (MoCAttention) component. MoCAttention randomly augments feature maps, making the model more robust to the varied textures found in aerial imagery.
Polarity-aware Dynamic AIFI (PD-AIFI)
Standard self-attention often ignores negative values in feature maps, treating them as noise to be suppressed. MLRT-DETR argues that the difference in polarity (positive vs. negative interactions) is a key cue for distinguishing targets from complex backgrounds. The PD-AIFI module uses Polarity-aware Linear Attention to explicitly model these interactions. Furthermore, by replacing standard normalization with a learnable Dynamic Tanh (DyT) activation function, the model maintains training stability while significantly reducing the computational overhead typically associated with calculating channel-wise mean and variance.
Multi-path Feature Fusion (MFF)
For UAV imagery, the earliest layers of a network contain vital localization information that is often lost in deeper layers. MFF re-integrates these high-resolution "shallow" features (from the P2 layer) with deeper semantic information. To maintain real-time speeds, MFF utilizes Pinwheel-shaped Convolutions (PConv), which perform directional sparse modeling to capture contours without the massive GFLOPs increase associated with dense convolutions.
Experimental Evaluation
The model was rigorously tested on the VisDrone2019 and DOTA benchmarks. VisDrone2019 is the gold standard for UAV-based detection, featuring over 540,000 objects across ten categories.
Key Results
Compared to the baseline RT-DETR-R18, MLRT-DETR achieved:
- Accuracy: A 2.1% increase in [email protected] on the VisDrone dataset.
- Efficiency: A reduction of 5.7 million parameters and 3.5 GFLOPs.
- Real-time Performance: On an NVIDIA Jetson Orin Nano, MLRT-DETR reached 50.8 FPS, outperforming the baseline (39.6 FPS) and YOLOv11L (48.2 FPS).
Qualitative analysis shows that the model successfully avoids common "false positives," such as misidentifying rocks as bicycles or trees as pedestrians.
Conclusion
MLRT-DETR demonstrates that polarity-aware attention and multi-level feature modeling can significantly improve small object detection in UAV imagery while reducing model size. While it shows a significant speedup over the original DETR family, future work will focus on further optimizing the transformer decoder for even lower-power embedded systems to push the frame rate higher.
Summary updated