Highlights
What are the main findings?
- GHF-DETR achieves 33.1% mAP@0.5 and 18.6% mAP@0.5:0.95 on VisDrone2019 with 15.4 GFLOPs, outperforming the DFINE-n baseline by 5.4% and 3.1%, respectively.
- The three modules (HMC, DMSF, HSP) each address a distinct bottleneck: background suppression, cross-scale misalignment, and high-frequency information loss during downsampling.
What are the implications of the main findings?
- The HMC backbone, through four-branch heterogeneous parallel perception with linear gating, enhances multi-granularity feature representation while reducing computational overhead.
- The DMSF module, via learned offset alignment and multi-kernel spatial focusing, enables effective cross-scale feature fusion for UAV imagery.
- The HSP module provides a dual-domain downsampling strategy that combines spatial-domain pixel preservation with frequency-domain high-frequency extraction.
Abstract
Detecting small targets in Unmanned Aerial Vehicle (UAV) imagery is challenging due to low pixel coverage, complex backgrounds, and information loss during downsampling. Existing detectors lack explicit mechanisms for enhancing weak target signals. We propose GHF-DETR, a Transformer-based detector featuring three collaboratively designed modules. First, a Heterogeneous Multi-Path Convolutional Network (HMC) backbone uses partial convolution and gated linear units to reduce computational redundancy while maintaining discrimination of small-object features. Second, a Dynamic Multi-Scale Focusing (DMSF) module integrates learned offset alignment with multi-kernel depthwise convolutions for cross-scale feature fusion. Third, a High-Frequency Selective Preservation (HSP) downsampling module combines space-to-depth convolution with 2D Discrete Wavelet Transform (DWT) to compensate for information loss in both spatial and frequency domains. On VisDrone2019, GHF-DETR achieves 33.1% mAP@0.5 and 18.6% mAP@0.5:0.95 with 15.4 GFLOPs and 7.59 M parameters, improving over the DFINE-n baseline by 5.4% and 3.1%, respectively, with AP_S reaching 10.1%. Generalization is validated on NWPU VHR-10. These results demonstrate that GHF-DETR achieves a favorable accuracy–efficiency balance for efficient UAV small-object detection.
1. Introduction
With the rapid development of unmanned aerial vehicle (UAV) technology, UAVs have found widespread application in urban management, agricultural monitoring, disaster assessment, and environmental protection. Thanks to their high mobility, low cost, and rapid response capabilities, the high-resolution images captured by UAVs provide a rich data source for detecting targets such as pedestrians, vehicles, and infrastructure. However, compared to ground-level perspectives, object detection tasks in UAV imagery still face significant challenges, particularly regarding small-object detection: the extremely low pixel proportion of targets leads to insufficient distinguishing features; complex backgrounds easily obscure target responses; and changes in lighting and occlusion further reduce detection stability. Additionally, the limited computational resources of UAV platforms make it extremely challenging to simultaneously ensure detection accuracy and efficiency.
In recent years, object detection methods based on Convolutional Neural Networks (CNNs) have made significant strides. From the R-CNN series to single-stage detectors such as YOLO and SSD, these methods have achieved a good balance between detection accuracy and inference speed, demonstrating excellent performance on standard datasets such as COCO [1,2,3]. However, due to the local receptive fields of convolutional operations, such methods have inherent limitations in modeling long-range dependencies, making it difficult to effectively capture global contextual information in complex scenes. At the same time, they typically rely on post-processing steps such as predefined anchor boxes and Non-Maximum Suppression (NMS), which limit the model’s end-to-end optimization capabilities and are prone to false negatives and false positives in object-dense or heavily occluded scenes.
To overcome these limitations, Transformer-based object detection methods have rapidly evolved. The DETR series of models establishes the ability to model global contextual relationships by introducing self-attention mechanisms, eliminating the reliance on anchor boxes and NMS, and achieving a truly end-to-end detection framework, demonstrating greater robustness in scenarios with overlapping objects and complex environments [4,5]. However, existing lightweight Transformer-based detection models (such as DFINE-n [6]) still have shortcomings when applied to small-object detection for UAVs: first, the feature extraction stage lacks an effective background suppression mechanism, causing weak target signals to gradually attenuate in deep networks; second, the multi-scale feature fusion process typically relies on static alignment, which is prone to introducing spatial offset errors; third, traditional downsampling operations result in the loss of high-frequency information, making it difficult to preserve object edges and details.
To address these issues, this paper proposes an efficient detection framework for small-object detection in UAV scenarios—GHF-DETR. This method addresses three key aspects—feature representation, cross-scale fusion, and information compensation—through a multi-path backbone with gated computation reduction, learned offset alignment for multi-scale fusion, and dual-domain downsampling for high-frequency preservation. First, a Heterogeneous Multi-path Convolution (HMC) network is designed within the backbone network. By incorporating partial convolution (PConv) [7] and Convolutional Gated Linear Units (CGLUs) [8], it reduces computational redundancy through partial convolution and linear gating, enhancing multi-granularity feature representation at the source. Second, in the encoding stage, we propose a Dynamic Multi-Scale Focus (DMSF) module. By employing a learning-based offset dynamic alignment operator (DySample) [9] and parallel multi-kernel convolution, it achieves cross-scale feature fusion, mitigating spatial misalignment and semantic discontinuity issues found in traditional methods. Furthermore, to compensate for the loss of high-frequency information during downsampling, this paper introduces a high-frequency selective retention downsampling module. By combining spatial–depth rearrangement (SPDConv) [10] with the Discrete Wavelet Transform (DWT) [11], it achieves collaborative modeling of spatial and frequency domain information, preserving directional edge information during downsampling. Finally, the enhanced multi-scale features are fed into the DFINE Transformer decoder [6], which iteratively optimizes the target query through an attention mechanism to produce accurate detection results.
In summary, the main contributions of this paper are as follows:
- (1)
- We design the HMC backbone network, which uses a multi-branch heterogeneous parallel architecture with linear gating to strengthen feature representation.
- (2)
- We propose the DMSF module, which integrates learned offset alignment with multi-scale feature aggregation for effective cross-scale fusion with measurable improvement.
- (3)
- We introduce the High-Frequency Selective Preservation (HSP) downsampling module, which combines spatial space-to-depth and frequency-domain wavelet transform to preserve high-frequency information during downsampling.
2. Related Works
2.1. Detection of Small Targets by UAVs
Target detection from a UAV perspective is extremely challenging due to the bird’s-eye-view imaging, varying altitudes, complex ground features, and drastic changes in target scale. Small targets (typically with pixel dimensions smaller than 32 × 32) occupy only a tiny fraction of the image and possess weak distinguishing features; complex backgrounds (such as building textures, vegetation, and shadows) easily overwhelm target responses; changes in pitch angle cause drastic alterations in target appearance and scale; and dense distribution and occlusion further increase the difficulty of detection [12,13]. Furthermore, UAV platforms have limited computational resources, making it a challenge to simultaneously ensure both accuracy and efficiency.
Existing research primarily addresses these challenges through two technical approaches: First, spatial details can be preserved by constructing high-resolution feature layers (e.g., P2/P3) or feature pyramid structures. Typical works include Feature Pyramid Networks (FPN [14]) and their enhanced variants, PANet [15] and BiFPN [16]. Second, attention mechanisms or context modeling can be employed to enhance object semantics and suppress background noise, such as CBAM [17] and non-local networks [18]. To address the specific requirements of UAV scenarios, a series of specialized detectors have been proposed: Aerial-DETR [19] improves recall for small UAV targets by refining the encoder design; RTD-Net [20] combines CNNs with Transformers to build a lightweight feature extraction and multi-scale fusion network; SOD-YOLO [21] introduces receptive field convolutional attention and a balanced pyramid to enhance detection of minute targets; and MHAF-YOLO [22] enhances feature representation through multi-branch heterogeneous auxiliary fusion. Additionally, YOLOv7-SEA [23], designed for UAV maritime scenarios, enhances small-object detection capabilities by improving the detector head structure, and modified loss functions (such as GFL [24]) have also been employed to increase the model’s sensitivity to small objects. Although the aforementioned methods have achieved some progress, three key bottlenecks remain: first, most methods rely on static feature fusion strategies (such as fixed interpolation upsampling), neglecting dynamic alignment between features at different scales, which can easily lead to spatial misalignment and semantic ambiguity [14]; second, there is a lack of explicit enhancement mechanisms for weak target signals, making it easy for complex background noise to overwhelm target features; third, the balance between computational efficiency and accuracy has not yet been optimally resolved, making it difficult for complex structures to meet the efficiency requirements of UAV platforms. These challenges motivate a systematic approach integrating backbone enhancement, cross-scale alignment, and downsampling compensation within a unified detection pipeline.
2.2. Transformer-Based Object Detection Methods
Traditional CNN detectors are limited by their local receptive fields, making it difficult to model global contextual relationships; the post-processing techniques they rely on—anchor boxes and Non-Maximum Suppression (NMS)—are prone to false negatives and false positives in scenes with dense small objects [4,5]. The Transformer architecture, with its global modeling capabilities enabled by self-attention mechanisms, offers a new paradigm for object detection. DETR [4] was the first model to unify object detection as a set prediction problem, completely abandoning anchor boxes and NMS to achieve end-to-end detection. However, DETR suffers from slow convergence and high computational cost. Consequently, subsequent work has introduced improvements from various angles: Deformable DETR [5] uses deformable attention to model only at key sampling points, reducing complexity and accelerating convergence; DN-DETR [25] introduced a query denoising training strategy, further stabilizing the training process; and DINO [26] combined contrastive denoising with hybrid query allocation, achieving state-of-the-art performance in both accuracy and convergence speed at the time. Although these methods perform well on general detection tasks, their high computational complexity limits their deployment on resource-constrained platforms such as drones.
To address real-time application scenarios, lightweight Transformer detectors have emerged. RT-DETR [27] was designed as an efficient hybrid encoder (combining CNN local modeling with Transformer global interaction) that performs IoU-aware query selection, becoming the first model to comprehensively outperform the YOLO series in both speed and accuracy. Subsequently, DFINE-n [6] further improved localization accuracy and inference efficiency by reformulating the regression task as a fine-grained distribution optimization, and is a representative model for real-time Transformer-based detection today. However, existing Transformer detectors still lack dedicated mechanisms at the backbone, neck, and downsampling stages for the specific demands of UAV small-object detection.
2.3. Feature Enhancement and Gating Mechanisms
To improve the model’s ability to distinguish features in complex scenes, attention mechanisms and gating mechanisms are widely used for feature re-calibration and noise suppression. In terms of channel attention, SE [28] generates channel weights through global average pooling to achieve adaptive feature scaling; in terms of spatial attention, CBAM [17] combines channel and spatial dimensions for weighting; ECA [29] achieves similar results with lower computational complexity. While these methods are effective for general object detection, in scenarios involving small targets captured by drones—where target signals are extremely weak and background interference is strong—simple global statistics struggle to accurately highlight small-target regions.
Gating mechanisms suppress irrelevant responses by dynamically modulating the information flow. A GLU [8] divides the input into two linearly transformed branches and performs element-wise multiplication, demonstrating excellent performance in natural language processing. Inspired by this, Gated Convolutional Networks (GCNNs) [8] introduce gating mechanisms into convolutions, using learnable gates to selectively activate features. However, existing gating methods are mostly applied to the channel dimension or high-level features, lacking deep coupling with spatial convolutions, making it difficult to capture the fine-grained structures of small targets at the lower layers. Meanwhile, multi-branch architectures (such as Inception [30] and MANet [2]) enhance multi-scale representation capabilities through parallel multi-receptive-field convolutions. However, their feature fusion methods (concatenation or summation) are simplistic, lacking effective dynamic filtering mechanisms, and are prone to introducing background redundancy.
In summary, existing feature enhancement methods for small-object detection using drones suffer from three shortcomings: attention mechanisms rely on global statistics and lack specificity for weak targets; gating is primarily used for channel modulation and lacks fine-grained spatial control; and multi-branch fusion is crude, failing to adaptively filter background noise.
2.4. Multi-Scale Feature Fusion and High-Frequency Information Modeling
Multi-scale feature fusion is a key technique for improving the performance of small-object detection. Since small objects are primarily present in high-resolution shallow-layer features, while deep-layer features are rich in semantic information, how to efficiently fuse features across different scales has become a hot research topic. Feature Pyramid Networks (FPN [14]) transmit semantic information through top-down paths and lateral connections; PANet [15] builds upon this by adding bottom-up paths to shorten information pathways; BiFPN [16] introduces learnable weights to achieve adaptive weighted fusion.
Although the aforementioned methods have improved multi-scale representational capabilities, two core limitations remain. First, most methods employ static upsampling (such as nearest-neighbor or bilinear interpolation), which cannot adapt to feature content, leading to the accumulation of spatial offset errors across scales and blurred boundaries of small objects. Second, there is a lack of effective feature selection and enhancement mechanisms after fusion; simple addition or concatenation struggles to suppress background noise and highlight weak target signals.
High-frequency information (edges, textures) is crucial for the recognition of small objects, but repeated downsampling progressively smooths and discards high-frequency components. To address this issue, researchers have proposed various strategies: SPDConv [10] achieves full-pixel downsampling through spatial–depth transformation, preserving all pixel information, and has been validated as effective in low-resolution detection tasks. Dynamic high-frequency convolution has also been explored to enhance edge and texture cues for infrared small-target detection [31]. Frequency-domain transformation methods, such as the Discrete Wavelet Transform (DWT [11]), can decompose an image into low-frequency approximations and horizontal, vertical, and diagonal high-frequency components, explicitly modeling directional details; beyond frequency-domain methods, direction-coded temporal features have been proposed to improve the distinguishability of small targets from cluttered backgrounds by encoding motion cues [32]. However, most existing frequency-domain methods operate as independent branches with shallow coupling to the backbone network, making it difficult to achieve end-to-end collaborative optimization; moreover, many methods still employ standard downsampling operators, which inevitably result in pixel loss in the spatial dimension. Temporal profile-based methods exploit multi-frame consistency for infrared small-target detection [33], suggesting temporal modeling as a complementary direction to spatial-frequency approaches. Jointly addressing spatial-domain pixel preservation and frequency-domain high-frequency extraction within a unified downsampling-fusion pipeline remains an under-explored direction.
3. Methods
3.1. Overview
This paper proposes GHF-DETR, an end-to-end detector for small-object detection in UAV aerial images. Using DFINE-n [6] as the baseline framework, it integrates three modules targeting distinct stages of the detection pipeline: multi-branch backbone feature extraction, multi-scale encoder fusion, and dual-domain downsampling. Figure 1 illustrates the overall architecture of GHF-DETR; progressively shrinking 3D blocks represent the pyramid-like spatial resolution reduction across backbone stages (P3 → P4 → P5), with color-coded features enabling direct tracing of their backbone origins. At the backbone level, HMC constructs a four-level progressive feature hierarchy using alternately stacked strided convolutions and heterogeneous multi-path convolutional blocks. Through multi-branch parallel processing with diverse kernel sizes and a channel-wise gating mechanism, HMC broadens receptive field coverage while reducing computational redundancy relative to a comparably sized single-branch backbone. The P3–P5 multi-scale features are subsequently fed into the encoder. At the encoder level, DMSF performs two-stage iterative cross-scale alignment of P3, P4, and P5 features via learned upsampling and multi-kernel depthwise convolution. HSP mitigates information loss during downsampling through a dual-domain mechanism combining spatial-domain preservation and frequency-domain compensation. After P5 features are infused with global context via Transformer encoder layers [4], deep cross-scale interaction is achieved through the two-stage fusion structure.
Figure 1.
Overall architecture of GHF-DETR. HMC: Heterogeneous Multi-Path Convolutional network; DMSF: Dynamic Multi-Scale Focusing; HSP: High-Frequency Selective Preservation.
The refined encoder features are fed into the DFINE Transformer decoder [6], which iteratively optimizes target queries via multi-scale deformable attention [5] and fine-grained distribution refinement to produce class probabilities and bounding box regressions.
3.2. Heterogeneous Multi-Path Convolutional Network (HMC)
In UAV imagery, standard backbones suffer from high computational overhead and weak small-target feature representation due to background clutter. To address this, HMC adopts heterogeneous multi-path parallel perception with linear gating to establish discriminative features at the backbone stage while reducing computational redundancy.
As a radical redesign of the DFINE-n [6] backbone network, we constructed the Heterogeneous Multi-Path Convolutional Network (HMC), whose core computational unit is the HMC block. The structure of the HMC module is shown in Figure 2. The HMC block adopts the multi-branch parallel paradigm from MANet [2] and follows the “expansion–splitting–parallel transformation–aggregation” design workflow. Given an input feature, a 1 × 1 convolutional layer first expands the channels to ), after which the feature is evenly split into upper and lower halves along the channels. The upper half is further divided into three parallel subpaths: B1 is compressed to via 1 × 1 convolutions to capture pure inter-channel dependencies; B2 aggregates contextual information within local spatial neighborhoods through a sequence of 1 × 1 convolutions followed by depthwise separable convolutions; B3 preserves the original topological information via an identity mapping. The lower half, designated as B4, is sequentially fed into n GSM (Gated Selective Mixer) units for deep gated refinement. The outputs of the four branches are concatenated along the channel dimension to form channels, which are then fused via a final 1 × 1 convolution to the target dimension . This heterogeneous parallel design enables the network to simultaneously possess four complementary feature transformation capabilities—channel compression, spatial context, original signal preservation, and gated refinement—within the same layer, thereby effectively capturing weak discriminative signals of small targets across different receptive fields.
Figure 2.
The architecture of HMC. * denotes the partial convolution (PConv) operation.
The GSM unit serves as the fundamental computational unit within the B4 branch, consisting of a cascade of selective spatial mixing and gated feature activation. The spatial mixing stage adopts the design philosophy of partial convolution (PConv [7]), dividing the input channels by a ratio of r = 4 and applying a 3 × 3 convolution only to 1/4 of the channels, while keeping the identities of the remaining 3/4 channels:
where is the output of the spatial mixing stage, denotes the first 1/4 of input channels processed by 3 × 3 convolution, and denotes the remaining 3/4 channels passed through via identity mapping.
This strategy reduces computational cost while maintaining detection accuracy. In the gated activation stage, the mixed features are expanded to 4C/3 channels via a 1 × 1 convolution and evenly split into a feature tensor X and a gating tensor V. After X undergoes 3 × 3 depthwise separable convolution and GELU activation, it performs element-wise multiplication with V:
Unlike a standard GLU [8], which uses a sigmoid activation to compress the gate to the [0, 1] interval, the gate branch in the GSM employs a linear projection, and the range of V is unconstrained—it can both suppress (V < 0) and amplify (V > 1), thereby avoiding gradient vanishing caused by the sigmoid saturation region. Through this linear gated interaction, the GSM reduces computational overhead while maintaining detection accuracy.
HMC alternately stacks strided convolutions with two HMC blocks four times to construct a four-level progressive feature hierarchy from P2 to P5, providing high-quality feature maps with strong semantic discriminative power for full-scale feature focusing by the subsequent DMSF encoder.
3.3. Dynamic Multi-Scale Focusing (DMSF) Module
Existing DETR encoders face two bottlenecks in UAV detection: they discard high-resolution P3 features, limiting fine-grained feature recovery, and static bilinear upsampling in FPN causes spatial misalignment across vastly different UAV scales. DMSF mitigates these issues by incorporating P3-layer features through learned offset alignment (DySample) and applying multi-kernel depthwise convolutions for multi-scale aggregation, yielding consistent improvement across all object scales.
The DFEN (Dynamic Frequency-Enhanced Neck) is the full encoder architecture. Its core component is the DMSF (Dynamic Multi-Scale Focusing) module, which performs cross-scale feature alignment and aggregation. As shown in Figure 3, the DFEN receives a multi-scale feature set P = {P3, P4, P5} from the backbone network and achieves deep feature representation through three stages: global initialization, iterative focus diffusion, and symmetric high-frequency compensation.
Figure 3.
Architecture of the DMSF module.
In the initialization stage, to endow the network with a global receptive field, deep P5 features are first processed through a Transformer Encoder Block for context modeling. Utilizing long-range dependencies captured by the self-attention mechanism, the network establishes a highly discriminative foundation at the highest semantic level. The computational process is expressed as:
Subsequently, DMSF enters a two-stage iterative focusing process, which constitutes the core logic of this architecture for handling cross-scale interactions. In the first diffusion stage, the core component DMSF receives the initialized P5 features along with the original P4 and P3 features. This module employs the DySample operator, which utilizes learned offsets, to achieve dynamic alignment. It performs preliminary focusing within a parallel multi-kernel convolutional space with K = {3, 5, 7, 9}, guiding deep-level semantics into the shallow-level space. To ensure information integrity during downsampling, the network introduces a High-Frequency Selective Preservation (HSP) module. This module compensates for energy loss during scale contraction by extracting and injecting directional high-frequency components. The generated enhanced features are merged with the skip-connect branches via a Concat operator, and gradient flow optimization and nonlinear mapping are performed using the RepNCSPELAN4 block.
In the second iteration stage, the network performs deep fusion of multi-scale features by invoking the DMSF module again. At this stage, the module integrates the enhanced features generated in the previous stage and employs a progressive focusing strategy to perform a secondary alignment between the high-resolution details of Layer P3 and the abstract semantics of Layer P5. This focusing process is mathematically defined as:
The parallel scanning branches ensure that the model can simultaneously extract both the fine-grained textural details across scales and contextual patterns from complex backgrounds. Finally, the enhanced features undergo final reconstruction via the RepNCSPELAN4 block, with the output expressed as:
The DMSF module serves as the central fusion hub of the Dynamic Frequency-Enhanced Neck, with its core function being to address the spatial distortion and semantic ambiguity issues in traditional feature fusion when processing multi-scale targets. As shown in Figure 4. By explicitly integrating three scale-heterogeneous feature streams , this module constructs an adaptive alignment and focusing space. Its detailed internal computational logic is as follows:
Figure 4.
Internal structure of the DMSF Block. Three heterogeneous features of Low, Mid and High Res are aligned via DySample upsampling, Conv alignment, and ADown downsampling in the Heterogeneous Alignment stage, then concatenated and processed by parallel mul.
- Heterogeneous Feature Alignment and Preprocessing
The module first performs unified alignment on the three feature streams, which have different receptive fields and spatial resolutions. For deep semantic features , the module replaces standard interpolation with a DySample dynamic alignment operator. This operator learns the local pixel sampling bias Δp and generates features aligned with the hidden layer through convolution projection with per-pixel offset prediction:
where denotes the bilinear sampling function that samples feature at positions offset by , and represents the learned per-pixel offset generated by the DySample operator.
Meanwhile, for shallow features , which contain rich spatial details but are accompanied by redundant noise, the module employs the ADown adaptive downsampling operator for spatial compression. By combining average pooling with learnable weights, this operator maximizes the preservation of edge responses for objects across scales while reducing the spatial dimensions to (H, W). Subsequently, the three feature streams are concatenated along the channel dimension to form a fused tensor .
- 2.
- Cross-scale Spatial Focus Flow
To extract target features from the fused multi-scale information, DMSF introduces a parallel multi-kernel spatial focus mechanism. This mechanism uses a set of depthwise separable convolution (DWConv) branches with different receptive fields to scan in parallel, capturing the full feature spectrum ranging from fine textures to local context. For each convolutional kernel k ∈ K, where K = {3, 5, 7, 9}, it not only extracts spatial information at specific frequencies but also aggregates with the original tensor via element-wise summation, defined by the formula:
This design mimics the “local scanning and focusing” process in the human visual system, where smaller kernel branches enhance the fine-grained spatial details, while larger kernel branches assist in localization by capturing environmental context, thereby improving the model’s ability to distinguish weak and small objects in complex backgrounds.
- 3.
- Nonlinear Refinement and Dimension Projection
Following the focusing stage, the module employs point-wise convolution (PWConv) to facilitate inter-channel information exchange, aiming to correct any unevenness in feature responses that may arise from the multi-kernel branches through nonlinear mapping. To ensure fidelity in feature propagation, the module uses a residual connection to sum the focused, enhanced signal with the original aligned feature . Finally, a 1 × 1 convolutional layer projects the features onto the target encoding dimension, yielding the output :
where σ denotes the GELU activation function.
This cascaded architecture—progressing from per-pixel learned offset alignment to multi-receptive-field parallel focusing, and finally to deep residual reconstruction—enables DMSF to effectively extract and enhance the multi-scale feature representation in UAV scenes, achieving a favorable balance between spatial fidelity and semantic depth in feature representation.
3.4. High-Frequency Selective Preservation (HSP) Downsampling Module
Standard strided convolution discards pixels at non-sampled locations, causing irreversible high-frequency loss that is critical for edge and texture preservation. While existing methods address spatial fidelity (SPDConv) or frequency extraction (DWT) separately, few couple both into a unified downsampling operation. HSP combines SPDConv and DWT to compensate for information loss in both domains simultaneously.
HSP establishes a parallel collaborative system combining spatial-to-depth rearrangement in the spatial domain with feature injection in the frequency domain, enabling cross-domain collaborative transmission of key spatial features. As shown in Figure 5, the HSP module structure is as follows:
Figure 5.
Architecture of the HSP (High-Frequency Selective Preservation) module. The input feature is processed through a spatial branch and a frequency branch. The dual-domain features are concatenated and fused via 1 × 1 convolution for downsampling with high-fr.
- Spatial Domain Preservation Path
To mitigate the irreversible loss of spatial information during downsampling, HSP adopts SPDConv [10] as its core contraction branch. This branch rearranges the input feature through spatial slicing operations, achieving dimensionality reduction without losing any original pixels. The resulting preserved feature retains the target’s topological characteristics, and the process is expressed as: .
- 3.
- Frequency Domain Injection Path
Concurrently, HSP employs a 2D-DWT operator based on Haar wavelet basis functions to perform a frequency-domain decomposition of the input feature, thereby compensating for high-frequency edges that are easily lost during downsampling. This path performs grouped convolution on the input features using a predefined set of low-pass and high-pass filters to extract high-frequency components with clear directional discriminability.
For input x, the process of capturing high-frequency features is defined as:
where represents a grouped convolution operation with a stride of 2. corresponds to gradient changes in the horizontal, vertical, and diagonal directions of the image, respectively, providing the model with the ability to capture weak edges.
- 4.
- Cross-domain Integration
At the end of the HSP module, the spatial pixel features from the SPD path and the directional high-frequency features from the frequency domain undergo deep concatenation along the channel dimension. Subsequently, a 1 × 1 convolutional layer performs linear cross-channel information integration, aiming to correct the differences in response intensity between the two heterogeneous feature streams and project them into the feature space of the next layer. The expression for the final output is:
This dual-track parallel design—where the SPD branch preserves pixel information and the DWT branch enhances edges—establishes the HSP module as a critical component of the DFEN, ensuring that key spatial information is effectively retained during the encoder’s scale transformations.
4. Experiments
In this paper, we conducted a series of comparative experiments using the VisDrone drone dataset [13] to evaluate the effectiveness of the proposed network.
4.1. Dataset
The VisDrone dataset [13] is a large-scale, publicly available drone dataset designed for aerial vision tasks. The data was collected using various drone devices across 14 different cities in China, capturing complex and diverse real-world scenes, varying weather conditions, and a range of lighting conditions. The dataset comprises a total of 10,209 static aerial images and defines 10 detection classes, specifically including pedestrians, people, bicycles, cars, vans, trucks, tricycles, awning-tricycles, buses, and motors. In terms of sample division, the dataset is strictly divided into three subsets: a training set, a validation set, and a test set. The training set contains 6471 images, the validation set contains 548 images, and the test set contains 1610 images. The VisDrone dataset contains a large number of very small targets smaller than 32 × 32 pixels. These targets are densely distributed with weak features against complex and variable backgrounds, closely aligning with the challenges of small-target detection in drone aerial photography scenarios. This enables effective and objective validation of the algorithm’s overall performance and robustness in small-target detection tasks.
The NWPU VHR-10 dataset [34] is a public dataset designed for remote sensing object detection tasks, released by Northwestern Polytechnical University. Derived from VHR optical remote sensing imagery, this dataset covers diverse scenarios such as urban areas, ports, airports, and complex terrain. It is characterized by a wide range of object scales, complex backgrounds, and dense object distribution. The dataset comprises a total of 800 remote sensing images, including 650 positive samples and 150 negative samples, and defines 10 target classes: airplanes (AP), ships (SH), storage tanks (ST), baseball fields (BD), tennis courts (TC), basketball courts (BC), athletic fields (GT), harbors (HB), bridges (BR), and vehicles (VH).
4.2. Experimental Details and Evaluation Metrics
4.2.1. Experimental Environment and Setup
All experiments were conducted on a high-performance server running Windows 11 (Microsoft Corporation, Redmond, WA, USA). The hardware configuration included an Intel Core i9 processor (Intel Corporation, Santa Clara, CA, USA), 64 GB of RAM, and an NVIDIA GeForce RTX 3090 Ti graphics card (24 GB VRAM; NVIDIA Corporation, Santa Clara, CA, USA). The software environment was based on Python v3.10 (https://www.python.org/, accessed on 1 July 2026) and the PyTorch v2.3.0 deep learning framework (https://pytorch.org/, accessed on 1 July 2026), with hardware acceleration provided by CUDA v12.8.
During the training phase, this study employed the AdamW optimizer [35], with the first-order momentum coefficient β1 set to 0.9, the second-order momentum coefficient β2 set to 0.999, and the weight decay set to 0.0001. The initial learning rate was set to 1 × 10−4, and the resolution of input images was uniformly adjusted to 640 × 640 pixels. Considering model complexity and GPU memory usage, the training batch size was set to 4, with a total of 300 epochs of training.
4.2.2. Evaluation Metrics
To comprehensively evaluate the detection algorithm’s overall performance in terms of classification accuracy, localization accuracy, and computational efficiency, this paper follows the MS COCO [36] evaluation framework and adopts the following evaluation metrics:
- Basic Classification and Recall Metrics
Precision measures the proportion of actual positive samples among those predicted as positive by the model; recall measures the proportion of actual positive samples successfully predicted by the model:
where , , and represent true positives, false positives, and false negatives, respectively.
- 2.
- Mean Average Precision (mAP) and Its Variants
Following the evaluation guidelines of MS COCO [36], this paper employs mean average precision at different Intersection over Union (IoU) thresholds for a comprehensive evaluation:
mAP@0.5: The average precision across all categories at an IoU threshold of 0.5, reflecting the model’s overall effectiveness in object detection.
mAP@0.5:0.95: The average across IoU thresholds ranging from 0.5 to 0.95 (in 0.05 increments, totaling 10 thresholds), comprehensively measuring the model’s detection quality under varying localization accuracy requirements.
Here, N is the total number of classes, and APn is the average precision of the nth class.
- 3.
- Multi-scale Object Evaluation
Given the wide range of object scales in remote sensing imagery, this paper adopts the multi-scale metrics from COCO [36], categorized by object area (Area) as follows:
APS (Small): Average precision for small objects, area < 322 pixels.
APM (Medium): Average precision for medium-sized objects, 322 < area < 962 pixels.
APL (Large): Average precision for large objects, area > 962 pixels.
- 4.
- Algorithm Efficiency Metrics
This paper uses the number of parameters (Params) and floating-point operations per second (FLOPs) to measure model complexity. For convolutional layers, FLOPs are approximated as follows:
where and are the dimensions of the output feature map, and are the number of input and output channels, respectively, and is the size of the convolution kernel. In the experimental analysis, the results are uniformly reported in GFLOPs (109 FLOPs).
4.3. Ablation Studies
4.3.1. Global Ablation Studies
To systematically verify the independent contributions and synergistic gains of the innovative modules proposed in this paper to detection performance, this section designs stepwise ablation experiments on the VisDrone validation set [13], using DFINE-n [6] as the baseline. Table 1 reports the accuracy metrics and computational overhead for each configuration.
Table 1.
Ablation experiments based on the DFINE-n baseline on the VisDrone2019 test set.
The baseline model [6] achieves a detection accuracy of 0.277 mAP@0.5 and 0.083 APS at a computational cost of 7.10 GFLOPs, providing a clear comparison benchmark for the evaluation of subsequent modules.
Independent gains of each module: When the HMC backbone network was inserted alone, mAP@0.5 increased from 0.277 to 0.309 (+3.2%), and APS for small targets increased from 0.083 to 0.095, validating that the multi-branch parallel “split–transform–aggregate” design can effectively capture multi-granularity features and enhance the representation capability for small targets. Using the DMSF encoder alone similarly improved mAP@0.5 to 0.309 (+3.2%), and APL reached 0.359 (+4.4%), indicating that the cross-scale alignment and multi-kernel focusing mechanisms of the Dynamic Multi-Scale Focusing module are particularly effective in enhancing the semantic representation of large targets. The standalone introduction of the HSP module, at a minimal computational cost of only 0.49 GFLOPs, improved mAP@0.5 from 0.277 to 0.289, while yielding positive gains for both large targets (APL 0.352, +3.7%) and medium targets (APM 0.238, +1.0%), preliminarily validating the effectiveness of the high-frequency selective retention strategy in compensating for the loss of spatial details during downsampling.
Inter-module synergy: After jointly deploying HMC and DMSF, mAP@0.5 further increased to 0.328 (+5.1% compared to the baseline), APS reached 0.101 (+1.8%), and APM improved to 0.273 (+4.5%). This indicates that the two are highly complementary in function—HMC provides high-quality multi-granularity initial features at the backbone level, while DMSF implements cross-scale dynamic fusion at the encoder level; their cascading expands the model’s perception range for multi-scale targets. It should be noted that APL in this configuration shows a slight decline compared to DMSF alone. This is primarily because HMC adopts a compact channel scheme that replaces HGNetv2’s high-dimensional representations in deeper layers, resulting in some compression of the semantic depth of large objects. While DMSF’s cross-scale fusion partially compensates for this loss, it has not yet fully restored it.
Performance of the complete model: Building on the previous results, we further integrated the HSP module (Experiment 6) to form the complete GHF-DETR architecture. At this point, mAP@0.5 reaches 0.331, mAP@0.5:0.95 reaches 0.186, and APL jumps from 0.341 to 0.366 (+2.5%), achieving the best overall accuracy among all ablation configurations with 15.4 GFLOPs and 7.59M parameters. The improvement in HSP for large targets indicates that the “spatial lossless + frequency-domain injection” design, which combines SPDConv [10] and Haar DWT [11], effectively preserves edge structure information during deep downsampling, thereby enhancing the model’s localization accuracy for large targets. It is worth noting that APS did not increase further after adding HSP (remaining at 0.101). This is primarily because HSP is deployed in the P4 to P5 downsampling paths, where it primarily acts to preserve details in mid-to-high-level semantics; to fully realize its benefits for small objects, it must be combined with high-resolution feature injection at shallower layers.
To further verify that the observed improvements stem from the designed modules rather than increased model capacity, we conducted a capacity-controlled ablation. We expanded the DFINE-n backbone and encoder channels to approximately 8.1M parameters—matching GHF-DETR’s scale—without introducing the HMC, DMSF, or HSP modules. As shown in Table 2, pure capacity expansion yields only a +1.3% mAP@0.5 improvement (from 27.7% to 29.0%), whereas GHF-DETR achieves +5.4% (33.1%) at comparable complexity. The modules contribute an additional +4.1% beyond what capacity alone provides, confirming that architectural design—not parameter scaling—is the primary source of the reported gains.
Table 2.
Capacity-controlled ablation on VisDrone2019 test set. “Expanded only” refers to a channel-expanded DFINE-n variant (~8.1M parameters) without the proposed HMC, DMSF, or HSP module.
In summary, the ablation results systematically confirm that the three innovative modules each have distinct and non-redundant functional roles: HMC is responsible for multi-granularity feature extraction, DMSF achieves cross-scale dynamic fusion, and HSP compensates for spatial detail degradation caused by deep downsampling. Together, these three modules form the efficient multi-level feature enhancement system of GHF-DETR.
4.3.2. Ablation of Heterogeneous Multipath and Gating Mechanisms
To decouple the respective contributions of the multi-branch parallel structure in HMC and the GSM gating mechanism, this section designed a three-level progressive ablation. The experimental results are shown in Table 3.
Table 3.
Ablation results for the HMC heterogeneous multipath structure and GSM gating mechanism.
Contribution of the Multi-branch Parallel Structure: After replacing HGNetv2 with a gating-free HMC block (i.e., HMC w/o GSM), mAP@0.5 increased from 27.7% to 30.9%, and APS increased from 0.83% to 0.95% (+0.12%), achieving an improvement across all metrics. This gain validates the effectiveness of HMC’s four-branch heterogeneous design in capturing multi-granularity small-object features: the three paths B1, B2, and B3 provide complementary transformations of channel compression, spatial context, and raw signal preservation, respectively. Even without introducing any gating, the heterogeneous parallel perception itself is sufficient to establish more discriminative features than a single path. However, the cost of multi-branch parallelism is considerable—computational complexity doubled from 7.1 GFLOPs to 14.7 GFLOPs, and the number of parameters expanded from 3.73 M to 7.00 M.
Efficiency gains from the GSM gating mechanism: After embedding GSM units in the B4 branch (HMC full), the model performs exactly on par with the ungated version on mAP@0.5 and mAP@0.5:0.95, while reducing the number of parameters by 15.9% and computational cost by 20.4%. The root cause of this efficiency gain lies in GSM’s linear gating design: ConvGLU’s gating branch employs unbounded linear projection, enabling the channel projection layer to maintain equivalent representational capacity at lower hidden dimensions, thereby cumulatively compressing parameter and computational redundancy across the sequential GSM layers in the B4 branch. Notably, the GSM version even outperforms the non-gated version slightly on medium- and large-scale targets, indicating that linear gating is particularly effective at modulating feature responses across larger receptive fields.
In summary, the performance improvement of HMC stems from two complementary mechanisms: the heterogeneous multi-path parallel architecture provides representational richness, while GSM linear gating restores computational efficiency. Together, they constitute a discriminative and efficient low-level feature extraction system.
4.3.3. Validation of the Dynamic Alignment Mechanism
DMSF natively integrates DySample as its default upsampling strategy, generating sampling offsets adaptively in a learnable manner. To validate the necessity of this design choice, we replaced it with traditional nearest-neighbor interpolation for ablation testing. As shown in Table 4, the DySample design achieves a 0.6% increase in mAP@0.5 and a 0.4% increase in mAP@0.5:0.95 with nearly negligible additional overhead, with the most notable gains observed for medium-sized targets, while accuracy for large targets remains unchanged. This is attributed to the fact that dynamic sampling offsets can adaptively recover spatial details and object edge information during feature fusion, whereas traditional fixed interpolation cannot perceive content differences at different locations. This ablation experiment quantitatively validates the irreplaceability of the dynamic upsampling design in DMSF—delivering consistent accuracy gains at minimal additional cost.
Table 4.
Results of the DMSF upsampling operator ablation experiments.
4.4. Comparative Experiments
In this paper, we conducted a comprehensive comparison of the proposed GHF-DETR with 17 mainstream detectors on the VisDrone2019 [13] test set. The experimental results are shown in Table 5.
Table 5.
Comparison with SOTA methods on the VisDrone2019 test set. The best result is highlighted in bold.
Comparison with Baseline Models: Compared to the baseline DFINE-n [6], GHF-DETR’s mAP@0.5 improved from 0.277 to 0.331 (+5.4%), and mAP@0.5:0.95 increased from 0.155 to 0.186 (+3.1%). With an inference cost of 15.4 GFLOPs, it achieved improvements across all accuracy metrics, validating the synergistic effectiveness of the three-tier feature enhancement system comprising the HMC multi-granularity backbone, the DMSF module, and the HSP high-frequency selective retention module.
Small-object detection performance: Addressing the challenges of detecting small objects in UAV imagery, which are characterized by a high proportion of small targets and weak features [12], GHF-DETR achieves an APS score of 0.101, representing a 2.17% improvement over the baseline (0.083) and ranking first among all 18 compared methods. Compared to mainstream lightweight models such as YOLOv8-S [40] (0.078), YOLOv10-S [44] (0.086), and YOLOv11-S [45] (0.080), GHF-DETR’s APS values are 2.95%, 1.74%, and 2.63% higher, respectively. In comparison with two-stage detectors, GHF-DETR achieves superior APS with less than 1/15 of the computational cost of Cascade R-CNN [38]. This result validates the effectiveness of the DMSF’s P3 layer explicit introduction strategy and the DySample [9] dynamic alignment mechanism in preserving fine spatial details of small objects.
Efficiency–Accuracy Trade-off: In terms of model complexity, GHF-DETR achieves 15.4 GFLOPs and 7.59M parameters, matching YOLOv8-M [40] exactly on the two core accuracy metrics—mAP@0.5 and mAP@0.5:0.95—while consuming only 19.5% of the latter’s computational cost. Compared to YOLO26-M [41], which also achieves 0.331 on mAP@0.5, GHF-DETR consumes only 22.7% of its FLOPs, demonstrating a clear efficiency advantage. Compared to the two-stage detectors Faster R-CNN + CIoU [51] and Cascade R-CNN [38], GHF-DETR outperforms them by 0.2% and 0.5%, respectively, on mAP@0.5, while avoiding the complex inference process associated with region proposal networks.
Performance on medium and large objects: On metrics for medium and large objects, GHF-DETR’s APM and APL are comparable to those of similar lightweight models such as YOLOv10-S [44] and YOLOv12-S [46], but it still lags behind medium-sized models such as YOLOv8-M [40] (APM 0.294, APL 0.417). Analysis suggests that this phenomenon primarily stems from the HMC backbone’s use of a compact channel scheme in its deeper layers, which imposes a certain capacity constraint on the localization of large objects requiring high-dimensional semantic representations. This can be improved in future work by introducing deeper feature interaction mechanisms with greater capacity.
To comprehensively evaluate the generalization capability of GHF-DETR, this paper further conducts experiments on the NWPU VHR-10 dataset [34] and compares it with 13 mainstream detectors; the results are shown in Table 6.
Table 6.
Comparison with SOTA methods on the NWPU VHR-10 dataset. The best result is highlighted in bold, and the second-best result is underlined. AP, SH, ST, BD, TC, BC, GT, HB, BR, and VH denote per-class categories as defined by the NWPU VHR-10 protocol (see Section 4.1).
From a per-class perspective, GHF-DETR achieves notable improvements for bridges (BR: 83.5%, +10.6% over the baseline), storage tanks (ST: 95.4%, +2.1%), and ships (SH: 86.6%, +1.8%). Among these, bridges and ships are target classes with a relatively small pixel proportion in the NWPU VHR-10 dataset; this improvement validates the effectiveness of the DMSF cross-scale focusing mechanism in enhancing features of visually challenging categories.
In summary, the experimental results on the NWPU VHR-10 dataset demonstrate that GHF-DETR possesses strong cross-domain generalization capabilities across different datasets in remote sensing scenarios, particularly maintaining the detection advantages validated in the VisDrone experiments for small-scale object categories.
5. Visual Analysis
5.1. Visual Comparison of Detection Results
To further qualitatively evaluate the detection capabilities of GHF-DETR, this section selects four typical drone aerial photography scenarios from the VisDrone2019 validation set and presents a side-by-side visual comparison of the detection results from GHF-DETR and the baseline model DFINE-n, as shown in Figure 6. The first column in the figure shows the ground truth (dashed boxes), while the second and third columns display the detection outputs of DFINE-n and GHF-DETR, respectively, at a confidence threshold of 0.5. The four rows correspond to four typical scenarios, listed from top to bottom as follows: motorcycle cluster scene (S1), pedestrian street scene (S2), multi-class dense mixed scene (S3), and high-resolution bicycle scene (S4).
Figure 6.
Qualitative detection comparison on VisDrone2019 val set.
S1—Motorcycle Cluster Scene: This scene contains 80 annotated objects, primarily consisting of 30 motorcycles and 20 cars, with small objects accounting for 54%. GHF-DETR detected 53 objects, while DFINE-n detected only 40. The most significant difference was observed in the motorcycle category: GHF-DETR successfully detected 16 motorcycles, whereas DFINE-n detected only 5, resulting in a miss rate as high as 83%. For densely parked groups of motorcycles, DFINE-n tends to merge multiple adjacent motorcycles into a single detection or ignore them entirely, whereas GHF-DETR, leveraging the multi-scale parallel depthwise separable convolutional focusing mechanism of the DMSF module, can effectively distinguish between adjacent similar objects. Furthermore, GHF-DETR also performs better on the “people” category, indicating its stronger ability to respond to small, non-rigid objects.
S2—Pedestrian Street Scene: This scene contains a total of 62 annotated objects, with “pedestrians” accounting for 34, making it the dominant category. GHF-DETR detected 42 objects, while DFINE-n detected only 24, marking the largest gap among the four scenes in this group. The core difference lies in pedestrian detection: GHF-DETR detected 25 pedestrians, whereas DFINE-n detected only 6, meaning DFINE-n missed 82% of the pedestrians. This significant difference is attributed to two design features of GHF-DETR: the HMC backbone network enhances the expressive power of low-level features through a four-branch split-transform-aggregate structure and GSM (Gated Selective Mixer), enabling the preservation of texture information for small-sized pedestrians during forward propagation; the Haar wavelet high-frequency injection mechanism in the HSP downsampling module supplements the feature maps with directional edge information, helping the detector capture pedestrian contour cues.
S3—Multi-class Dense Mixed Scene: This scene includes all 10 VisDrone categories, totaling 111 annotated objects, with small objects accounting for 75% of the total. It is the scene with the highest object density and category complexity in this group. GHF-DETR detected 48 objects, while DFINE-n detected 33, demonstrating superior performance across multiple categories including cars (24 vs. 20), motorcycles (6 vs. 2), and pedestrians (6 vs. 3). Notably, even in this highly challenging dense scene, GHF-DETR did not exhibit widespread duplicate detections or background false positives, validating the effectiveness of the point-wise convolution (PWConv) and residual connection design in the DMSF module for suppressing cross-channel redundancy.
S4—High-Resolution Bicycle Scene: This scene has a resolution of 1920 × 1080 and contains 71 annotated objects, with small objects accounting for only 27% of the total, while the majority of objects consist of medium- and large-sized pedestrians and bicycles. GHF-DETR detected 36 objects, while DFINE-n detected 23. For the bicycle class, GHF-DETR detected seven bicycles, whereas DFINE-n detected only four; for the pedestrian (people) class, GHF-DETR detected nine people, while DFINE-n detected only two. This scenario demonstrates that GHF-DETR also outperforms the baseline model in detecting medium-to-large targets, rather than sacrificing detection accuracy for large targets to improve performance for small targets. This highlights the comprehensive advantages of the HMC multi-branch heterogeneous receptive field design in multi-scale feature representation.
Combining the results from the four visualization sets, GHF-DETR consistently outperforms the DFINE-n baseline across different scene types, object scales, and class distributions. The primary failure modes of DFINE-n are manifested in a large number of missed detections in scenes with dense small objects, and insufficient response to non-rigid small objects such as pedestrians and motorcycles. GHF-DETR systematically addresses these issues through three innovations: low-level feature enhancement via the HMC backbone, cross-scale focusing by the DMSF encoder, and high-frequency detail preservation via HSP downsampling.
5.2. Visual Analysis via Heatmaps
To further validate the advantages of GHF-DETR from the perspective of model interpretability, this section uses Grad-CAM [53] to visually compare GHF-DETR with the baseline model DFINE-n. The experiment selects the same four typical VisDrone validation set images as in Section 5.1., covering four types of scenes: vehicles, dense pedestrians, multi-class mixtures, and bicycles. For the Grad-CAM target layer, we select the first ConvNormLayer_fuse layer of the encoder, which corresponds to high-resolution feature maps and is advantageous for capturing fine-grained spatial responses of small-sized objects.
Figure 7 presents the Grad-CAM heatmap comparison results across the four scenarios. In each row, from left to right, the images are the original image, the DFINE-n heatmap, and the GHF-DETR heatmap, respectively; red regions indicate areas of high response from the model. Overall, the heatmap responses of GHF-DETR exhibit a distinct focused distribution, with high-activation regions tightly clustered around the target objects and lower responses in the background areas, whereas DFINE-n’s heat distribution is relatively diffuse, with some small-target regions exhibiting response gaps or excessive diffusion into the background.
Figure 7.
Grad-CAM visualization comparison on VisDrone2019 val set. From top to bottom: (a) vehicles, (b) dense pedestrians, (c) multi-class mixtures, (d) bicycles.
Specifically, in the vehicle scene shown in Figure 7a, GHF-DETR generates a distinct heat response in the vehicle’s vicinity, with an average focal area of only 67 pixels, demonstrating precise target localization capabilities; in contrast, DFINE-n produces almost no effective heat activation in this scene. In the dense pedestrian scene shown in Figure 7b, GHF-DETR captured twice as many thermal hotspots as DFINE-n, and the average hotspot area was only 27 pixels, far smaller than DFINE-n’s 37 pixels. This indicates that GHF-DETR can cover more small targets with a more compact region of interest, rather than dispersing attention across the background. The multi-class mixed scene in Figure 7c offers the most striking contrast: DFINE-n’s heatmap regions have an average area of 83 pixels, with activations scattered across the background, while GHF-DETR’s average hotspot area is only 13 pixels, demonstrating precise perception of the boundaries of various object types. In the bicycle scene shown in Figure 7d, where object sizes are extremely small (some smaller than 10 × 10 pixels), GHF-DETR’s overall response intensity is 86.4, which is still higher than DFINE-n’s 84.6.
In summary, the Grad-CAM visualization analysis validates the perceptual advantages of GHF-DETR in small-object detection tasks from an interpretability perspective. These results corroborate the bounding box comparison analysis in Section 5.1 further supporting the effectiveness of the module design proposed in this paper.
6. Conclusions
This paper addresses key challenges in UAV aerial imagery—low pixel coverage of small objects, information loss from downsampling, and semantic discontinuity in cross-scale fusion—by proposing GHF-DETR, a Transformer-based efficient detector built on the DFINE-n framework.
At the backbone network level, this paper designs a Heterogeneous Multi-Path Convolutional Network (HMC). Centered on a four-branch parallel structure and a Gated Selective Mixer (GSM), it employs a collaborative mechanism combining PConv for efficient spatial modeling and linear gating for computation reduction. This approach achieves effective enhancement of weak target signals in complex backgrounds while reducing computational overhead. At the multi-scale feature fusion level, this paper proposes the Dynamic Multi-Scale Focusing (DMSF) module. By integrating the DySample dynamic alignment operator with parallel multi-kernel deep convolution, it achieves cross-scale alignment while mitigating spatial displacement and semantic decay during feature propagation. Regarding downsampling information compensation, this paper introduces the High-Frequency Selective Preservation (HSP) module, which deeply couples the full spatial fidelity of SPDConv with selective Discrete Wavelet Transform. This preserves critical spatial details in the downsampling chain and achieves an improvement in large-target localization accuracy at a negligible cost to small-target performance.
Systematic experiments on the VisDrone2019 dataset demonstrate that GHF-DETR achieves notably better performance than the baseline DFINE-n across all metrics, with mAP@0.5 and mAP@0.5:0.95 reaching 33.1% and 18.6%, respectively. The APS for small targets reaches 10.1%, representing a 2.17% improvement over the baseline and ranking first among 20 mainstream comparison methods. Meanwhile, generalization experiments on the NWPU VHR-10 dataset validate the method’s strong cross-domain generalization capabilities across different remote sensing scenarios. Ablation experiments systematically decouple the functional roles of the three modules, collectively forming an efficient multi-level feature enhancement paradigm.
Grad-CAM heatmap visualizations and detection result visualizations further corroborate the above conclusions from an interpretability perspective. GHF-DETR demonstrates more precise target focusing capabilities and a lower false negative rate in dense small-object scenarios, effectively mitigating the false negative issues observed in baseline models for pedestrians, motorcycles, and other objects.
Although GHF-DETR achieves consistent improvement over the baseline across all metrics, two limitations should be acknowledged. The three modules as an integrated whole deliver complementary and synergistic gains, validating the correctness of the bottleneck-driven design strategy; however, at the individual component level, contributions are uneven. HMC as a whole provides meaningful gains (with its internal GSM unit contributing computational efficiency rather than accuracy), DySample alignment contributes a modest 0.6% mAP@0.5, and HSP’s gains are concentrated on medium and large objects. While the three modules are collectively effective and complementary, individual component-level contributions leave room for further strengthening. Second, the final APS of 10.1%, though highest among compared methods, remains low in absolute terms, and robustness under complex UAV conditions (low illumination, occlusion, motion blur) has not yet been evaluated. These two open issues—the ceiling of small-object detection accuracy and cross-scenario generalization—warrant further investigation in future work.
Author Contributions
Conceptualization, L.H. and Q.H.; funding acquisition, L.H.; investigation, Q.H. and L.H.; methodology, Q.H. and L.H.; project administration, L.H. and Q.H.; software, Q.H.; writing—original draft, Q.H. and L.H.; writing—review and editing, L.H., Q.H., Z.L. and H.Y.; supervision, L.H. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the National Natural Science Foundation of China, grant numbers 62362040 and 61662033, and the Natural Science Foundation of Jiangxi Province, grant number 20242BAB25080.
Data Availability Statement
The VisDrone2019 dataset is publicly available at https://github.com/VisDrone/VisDrone-Dataset (accessed on 1 July 2026). The NWPU VHR-10 dataset is publicly available at https://gcheng-nwpu.github.io/#Datasets (accessed on 1 July 2026).
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1137–1149. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Feng, Y.; Huang, J.; Du, S.; Ying, S.; Yong, J.-H.; Li, Y.; Ding, G.; Ji, R.; Gao, Y. Hyper-YOLO: When Visual Object Detection Meets Hypergraph Computation. IEEE Trans. Pattern Anal. Mach. Intell. 2025, 47, 2388–2401. [Google Scholar] [CrossRef] [Scilit]
- Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.-Y.; Berg, A.C. SSD: Single Shot MultiBox Detector. In Proceedings of the European Conference on Computer Vision (ECCV), Amsterdam, The Netherlands, 11–14 October 2016; pp. 21–37. [Google Scholar] [CrossRef] [Scilit]
- Carion, N.; Massa, F.; Synnaeve, G.; Usunier, N.; Kirillov, A.; Zagoruyko, S. End-to-End Object Detection with Transformers. In Proceedings of the European Conference on Computer Vision (ECCV), Glasgow, UK, 23–28 August 2020; pp. 213–229. [Google Scholar] [CrossRef] [Scilit]
- Zhu, X.; Su, W.; Lu, L.; Li, B.; Wang, X.; Dai, J. Deformable DETR: Deformable Transformers for End-to-End Object Detection. In Proceedings of the International Conference on Learning Representations (ICLR), Virtual, 3–7 May 2021. [Google Scholar]
- Peng, Y.; Li, H.; Wu, P.; Zhang, Y.; Sun, X.; Wu, F. D-FINE: Redefine Regression Task of DETRs as Fine-Grained Distribution Refinement. In Proceedings of the International Conference on Learning Representations (ICLR), Singapore, 28 April–2 May 2025. [Google Scholar]
- Chen, J.; Kao, S.; He, H.; Zhuo, W.; Wen, S.; Lee, C.; Chan, S.-H.G. Run, Don’t Walk: Chasing Higher FLOPS for Faster Neural Networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada, 17–24 June 2023; pp. 12021–12031. [Google Scholar] [CrossRef] [Scilit]
- Dauphin, Y.; Fan, A.; Auli, M.; Grangier, D. Language Modeling with Gated Convolutional Networks. In Proceedings of the International Conference on Machine Learning (ICML), Sydney, Australia, 6–11 August 2017. [Google Scholar]
- Liu, W.; Lu, H.; Fu, H.; Cao, Z. Learning to Upsample by Learning to Sample. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Paris, France, 2–6 October 2023; pp. 6027–6037. [Google Scholar]
- Sunkara, R.; Luo, T. No More Strided Convolutions or Pooling: A New CNN Building Block for Low-Resolution Images and Small Objects. In Proceedings of the Joint European Conference on Machine Learning and Knowledge Discovery in Databases (ECML PKDD), Grenoble, France, 19–23 September 2022; pp. 443–459. [Google Scholar] [CrossRef] [Scilit]
- Li, Q.; Shen, L.; Guo, S.; Lai, Z. Wavelet Integrated CNNs for Noise-Robust Image Classification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020; pp. 7245–7254. [Google Scholar]
- Wu, X.; Li, W.; Hong, D.; Tao, R.; Du, Q. Deep Learning for unmanned aerial vehicle-Based Object Detection and Tracking: A Survey. IEEE Geosci. Remote Sens. Mag. 2021, 10, 91–124. [Google Scholar] [CrossRef] [Scilit]
- Du, D.; Zhu, P.; Wen, L.; Bian, X.; Lin, H.; Hu, Q.; Peng, T.; Zheng, J.; Wang, X.; Zhang, Y.; et al. VisDrone-DET2019: The Vision Meets Drone Object Detection in Image Challenge Results. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshop (ICCVW), Seoul, Republic of Korea, 27–28 October 2019; pp. 213–226. [Google Scholar]
- Lin, T.-Y.; Dollár, P.; Girshick, R.; He, K.; Hariharan, B.; Belongie, S. Feature Pyramid Networks for Object Detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 2117–2125. [Google Scholar]
- Liu, S.; Qi, L.; Qin, H.; Shi, J.; Jia, J. Path Aggregation Network for Instance Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–23 June 2018; pp. 8759–8768. [Google Scholar]
- Tan, M.; Pang, R.; Le, Q.V. EfficientDet: Scalable and Efficient Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020; pp. 10781–10790. [Google Scholar]
- Woo, S.; Park, J.; Lee, J.Y.; Kweon, I.S. CBAM: Convolutional Block Attention Module. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 3–19. [Google Scholar]
- Wang, X.; Girshick, R.; Gupta, A.; He, K. Non-Local Neural Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–23 June 2018; pp. 7794–7803. [Google Scholar]
- Zhang, H.; Zhang, H.; Liu, K.; Gan, Z.; Zhu, G.N. UAV-DETR: Efficient End-to-End Object Detection for unmanned aerial vehicle Imagery. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Hangzhou, China, 19–25 October 2025; pp. 15143–15149. [Google Scholar]
- Ye, T.; Qin, W.; Zhao, Z.; Gao, X.; Deng, X.; Ouyang, Y. Real-Time Object Detection Network in UAV-Vision Based on CNN and Transformer. IEEE Trans. Instrum. Meas. 2023, 72, 2505713. [Google Scholar] [CrossRef] [Scilit]
- Li, Y.; Li, Q.; Pan, J.; Zhou, Y.; Zhu, H.; Wei, H.; Liu, C. SOD-YOLO: Small-Object-Detection Algorithm Based on Improved YOLOv8 for UAV Images. Remote Sens. 2024, 16, 3057. [Google Scholar] [CrossRef] [Scilit]
- Yang, Z.; Guan, Q.; Yu, Z.; Xu, X.; Long, H.; Lian, S.; Tang, Y. MHAF-YOLO: Multi-Branch Heterogeneous Auxiliary Fusion YOLO for Accurate Object Detection. arXiv 2025, arXiv:2502.04656. [Google Scholar]
- Zhao, H.; Zhang, H.; Zhao, Y. YOLOv7-SEA: Object Detection of Maritime UAV Images Based on Improved YOLOv7. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision Workshops (WACVW), Waikoloa, HI, USA, 3–7 January 2023; pp. 233–238. [Google Scholar]
- Li, X.; Wang, W.; Wu, L.; Chen, S.; Hu, X.; Li, J.; Tang, J.; Yang, J. Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection. In Advances in Neural Information Processing Systems (NeurIPS), Virtual, 6–12 December 2020; Curran Associates, Inc.: Red Hook, NY, USA, 2020; Volume 33, pp. 21002–21012. [Google Scholar]
- Li, F.; Zhang, H.; Liu, S.; Guo, J.; Ni, L.M.; Zhang, L. DN-DETR: Accelerate DETR Training by Introducing Query DeNoising. IEEE Trans. Pattern Anal. Mach. Intell. 2024, 46, 2239–2251. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhang, H.; Li, F.; Liu, S.; Zhang, L.; Su, H.; Zhu, J.; Ni, L.M.; Shum, H.-Y. DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection. In Proceedings of the 11th International Conference on Learning Representations (ICLR), Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
- Zhao, Y.; Lv, W.; Xu, S.; Wei, J.; Wang, G.; Dang, Q.; Liu, Y.; Chen, J. DETRs Beat YOLOs on Real-Time Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024; pp. 16965–16974. [Google Scholar] [CrossRef] [Scilit]
- Hu, J.; Shen, L.; Sun, G. Squeeze-and-Excitation Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–22 June 2018; pp. 7132–7141. [Google Scholar]
- Wang, Q.; Wu, B.; Zhu, P.; Li, P.; Zuo, W.; Hu, Q. ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020; pp. 11534–11542. [Google Scholar]
- Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; Rabinovich, A. Going Deeper with Convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA, 7–12 June 2015; pp. 1–9. [Google Scholar]
- Li, R.; Xiao, C.; Yin, Q.; An, W.; Chen, N.; Ying, X.; Li, M.; Wang, Y. Dynamic High-Frequency Convolution for Infrared Small Target Detection. IEEE Trans. Circuits Syst. Video Technol. 2026, 36, 7676–7680. [Google Scholar] [CrossRef] [Scilit]
- Li, R.; An, W.; Xiao, C.; Li, B.; Wang, Y.; Li, M.; Guo, Y. Direction-Coded Temporal U-Shape Module for Multiframe Infrared Small Target Detection. IEEE Trans. Neural Netw. Learn. Syst. 2025, 36, 555–568. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, R.; An, W.; Wang, Y.; Ying, X.; Dai, Y.; Wang, L.; Li, M.; Guo, Y.; Liu, L. Probing Deep into Temporal Profile Makes the Infrared Small Target Detector Much Better. IEEE Trans. Pattern Anal. Mach. Intell. 2026, 1–18. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Cheng, G.; Zhou, P.; Han, J. Learning Rotation-Invariant Convolutional Neural Networks for Object Detection in VHR Optical Remote Sensing Images. IEEE Trans. Geosci. Remote Sens. 2016, 54, 7405–7415. [Google Scholar] [CrossRef] [Scilit]
- Loshchilov, I.; Hutter, F. Decoupled Weight Decay Regularization. arXiv 2017, arXiv:1711.05101. [Google Scholar]
- Lin, T.-Y.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Zitnick, C.L. Microsoft COCO: Common Objects in Context. In Proceedings of the European Conference on Computer Vision (ECCV), Zurich, Switzerland, 6–12 September 2014; pp. 740–755. [Google Scholar] [CrossRef] [Scilit]
- Li, X.; Wang, W.; Hu, X.; Li, J.; Tang, J.; Yang, J. Generalized Focal Loss V2: Learning Reliable Localization Quality Estimation for Dense Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 20–25 June 2021; pp. 11632–11641. [Google Scholar]
- Cai, Z.; Vasconcelos, N. Cascade R-CNN: Delving into High Quality Object Detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–23 June 2018; pp. 6154–6162. [Google Scholar]
- Lin, T.-Y.; Goyal, P.; Girshick, R.; He, K.; Dollár, P. Focal Loss for Dense Object Detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 2980–2988. [Google Scholar]
- Ultralytics YOLOv8. Available online: https://github.com/ultralytics/ultralytics (accessed on 18 May 2026).
- Sapkota, R.; Cheppally, R.H.; Sharda, A.; Karkee, M. YOLO26: Key Architectural Enhancements and Performance Benchmarking for Real-Time Object Detection. arXiv 2025, arXiv:2509.25164. [Google Scholar]
- Khanam, R.; Hussain, M. What Is YOLOv5: A Deep Look into the Internal Features of the Popular Object Detector. arXiv 2024, arXiv:2407.20892. [Google Scholar]
- Lin, X.; Peng, J.; Gan, Z.; Zhu, J.; Liu, J. YOLO-Master: MOE-Accelerated with Specialized Transformers for Enhanced Real-Time Detection. arXiv 2025, arXiv:2512.23273. [Google Scholar]
- Wang, A.; Chen, H.; Liu, L.; Chen, K.; Lin, Z.; Han, J.; Ding, G. YOLOv10: Real-Time End-to-End Object Detection. In Advances in Neural Information Processing Systems (NeurIPS), Vancouver, BC, Canada, 10–15 December 2024; Curran Associates, Inc.: Red Hook, NY, USA, 2024; Volume 37, pp. 107984–108011. [Google Scholar]
- Ultralytics YOLO11. Available online: https://github.com/ultralytics/ultralytics (accessed on 18 May 2026).
- Tian, Y.; Ye, Q.; Doermann, D. YOLOv12: Attention-Centric Real-Time Object Detectors. In Advances in Neural Information Processing Systems (NeurIPS), San Diego, CA, USA, 8–13 December 2025; Curran Associates, Inc.: Red Hook, NY, USA, 2025; Volume 38, pp. 78433–78457. [Google Scholar]
- Lei, M.; Li, S.; Wu, Y.; Hu, H.; Zhou, Y.; Zheng, X.; Gao, Y. YOLOv13: Real-Time Object Detection with Hypergraph-Enhanced Adaptive Visual Perception. arXiv 2025, arXiv:2506.17733. [Google Scholar]
- Lyu, C.; Zhang, W.; Huang, H.; Zhou, Y.; Wang, Y.; Liu, Y.; Zhang, S.; Chen, K. RTMDet: An Empirical Study of Designing Real-Time Object Detectors. arXiv 2022, arXiv:2212.07784. [Google Scholar]
- Ge, Z.; Liu, S.; Wang, F.; Li, Z.; Sun, J. YOLOX: Exceeding YOLO Series in 2021. arXiv 2021, arXiv:2107.08430. [Google Scholar]
- Huang, S.; Lu, Z.; Cun, X.; Yu, Y.; Zhou, X.; Shen, X. DEIM: DETR with Improved Matching for Fast Convergence. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 10–17 June 2025; pp. 15162–15171. [Google Scholar]
- Zheng, Z.; Wang, P.; Liu, W.; Li, J.; Ye, R.; Ren, D. Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression. In Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA, 7–12 February 2020; pp. 12993–13000. [Google Scholar] [CrossRef] [Scilit]
- Li, C.; Li, L.; Jiang, H.; Weng, K.; Geng, Y.; Li, L.; Ke, Z.; Li, Q.; Cheng, M.; Nie, W.; et al. YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications. arXiv 2022, arXiv:2209.02976. [Google Scholar]
- Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 618–626. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.






