YOLO-Tiny: A lightweight small object detection algorithm for UAV aerial imagery
- Publication
- IET Image Processing 2025Journal
Cite this paper · BibTeX
The citation identifies the linked source version. It cites the original paper and its authors.
@article{objectdetectionyolotiny2025,
title = {{YOLO-Tiny: A lightweight small object detection algorithm for UAV aerial imagery}},
author = {Fei Feng and Lu Yang and Quanxing Zhou and Weipeng Li},
year = {2025},
journal = {IET Image Processing},
url = {https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/ipr2.13314}
}
Drones have quietly flown into every crevice of our lives.
But for object detection algorithms, the challenges brought by these machines are truly troublesome.
Problem Definition
Drones have penetrated every gap in daily scenarios. From aerial inspection to disaster detection, the vast amount of imagery they generate poses new challenges to object detection algorithms.
For models, the "sky viewpoint" captured by drones comes with unfriendly conditions: targets are extremely small in the frame with varying scales, often disturbed or partially occluded by the background, further compressing the space for effective feature recognition. Meanwhile, deployment scenarios usually have severe resource constraints, making even accurate high-performance models hard to operate in practice.
Although mainstream object detection methods have matured in performance, especially the one-stage algorithms represented by the YOLO series, which have become the preferred choice for real-time applications due to their speed advantage, their original architectures still struggle to directly address the dual demands of high-altitude imaging and small object detection.
Previous improvements tried replacing convolution modules, adding pyramid structures, introducing attention mechanisms, or performing cross-layer fusion to enhance small object recognition; others focused on training stages such as data augmentation, anchor presets, and scale adjustments.
However, most methods still cannot solve a fundamental problem: achieving real-time, accurate, and stable recognition of tiny suspicious targets in the frame on low-computation terminal devices is not just a matter of "compressing the model."
This paper addresses this issue by proposing a lightweight small object detection architecture designed for UAV aerial tasks, based on YOLOv5s.
Solution
Reviewing YOLOv5
With a 640×640 input, YOLOv5’s backbone produces five feature-map sizes (P1 to P5): 320×320, 160×160, 80×80, 40×40, and 20×20. Its detection head uses P3–P5 for multi-scale predictions.
The standard YOLOv5 detection structure performs multi-scale fusion from P3 (80×80) to P5 (20×20), mainly targeting objects larger than 8×8 pixels.
However, for drones, this size threshold is clearly too high.
Statistics from the VisDrone2019 dataset provide key observations:
- Figure (a) shows severe class imbalance in object numbers,
- Figure (b) shows that overlapping annotation boxes are mostly small,
- Figure (c) shows denser box centers in the lower-middle part of the frame,
- Figure (d) shows box widths and heights concentrated at small sizes.
The paper's prose reverses the descriptions of panels (c) and (d); the plotted axes establish the ordering above.
In other words, this is a "highly small-object-biased aerial detection task," and YOLOv5’s current design has a structural bias under this condition: its prediction layers focus mainly on P3–P5, which is the least friendly for extremely small targets.
Previous research tried adding a P2 detection head (160×160 feature map) to YOLOv5 to capture finer signals. While detection improved, parameters and computation rose accordingly, making it too costly for resource-limited devices.
Another group of researchers took a different path: removing the P5 layer and focusing on medium and small objects. But this simplification only yielded limited accuracy gains and failed to break through the bottleneck.
In this paper, the authors continue this line of structural adjustment by further removing the P4 layer, compressing the original triple detection structure into a dual-layer architecture with only P2 and P3, concentrating firepower on earlier, higher-resolution feature maps.
But this also brings another risk:
In the paper’s Table 2, P4 + P5 account for 92.1% of the parameters listed for YOLOv5s backbone stages P1–P5.
Removing them greatly reduces parameters, and detection capability may drop accordingly. The 92.1% is not the reduction for the complete detector.
To avoid this "over-lightweight" problem, the authors adopt a compensation strategy:
- While retaining P2 and P3, moderately increase the model’s depth and width
to maintain acceptable feature extraction and fusion capacity.
After practical trade-offs, the authors chose a depth of 0.67 and width of 0.75 configuration as a compromise between parameter count and computational cost. This choice keeps sufficient model expressiveness while controlling GFLOPs within resource limits, laying a foundation for subsequent module lightweighting.
The paper’s Figure 1 shows how P2/P3 prediction, LW_C3, LW_Downsample, and AMSFF fit together:
Module Lightweighting
In model design, there is a clear tension among parameter count, computational cost (GFLOPs), and representational capacity. This tension is especially intense for edge devices like drones, where we want strong expressiveness but cannot afford too many parameters.
After the structural adjustments, one pruned and rescaled variant has about 1.3M parameters, down from YOLOv5s’s 7.0M. That change combines pruning with depth and width adjustments; it cannot be credited to removing two heads alone.
To compensate for this loss, the authors moderately increased depth and width, slightly raising parameters and restoring representational power. Table 3 reports GFLOPs rising from 16.0 to 24.5, about 53.1%. Expanding depth and width both to 1.00 reaches 53.4 GFLOPs in that table, a much higher cost.
To resolve this contradiction, the authors introduced a highly efficient architectural unit:
- Dynamic Convolution.
One of the core feature extraction modules in YOLOv5 is the C3 structure, containing many residual paths and stacked convolutions.
The authors replaced all of it with a newly designed LW_C3, featuring the key change:
- LW_C3: replaces every 3×3 standard convolution in residual branches with a 3×3 dynamic convolution, retaining depth but reducing static computational burden.
- LW_Downsample: after its fusion branch, a final stride-2 3×3 dynamic convolution downsamples the feature map. Figure 5 still shows CBS blocks earlier in the module.
The paper uses a dynamic perceptron to explain the input-conditioned weighting idea behind dynamic convolution:
For each input , dynamically select the best weighted combination from a set of basis functions.
Illustrated below:
Mathematically, it can be written as:
where
subject to
Here, is an attention weight for the -th basis function in the paper’s analogy. In the convolution module, the corresponding weights mix convolution kernels for the input.
Essentially, rather than learning a fixed set of weights, the model learns a "selection" mechanism to decide which feature extraction strategy to emphasize based on input content.
To implement this selection mechanism, the authors used a common SE technique to generate attention weights, with the following steps:
- Global Average Pooling to compress spatial information,
- The attention branch applies global pooling, ReLU, and Sigmoid to produce kernel weights. Equation (3) assumes the dynamic-perceptron weights sum to one, but Figure 7 shows only a Sigmoid at the branch output and does not explain how the convolution weights would meet that condition,
- The weights are applied to k predefined convolution kernels, performing weighted dynamic convolution.
For input channels , output channels , kernel size , and kernels, the paper gives this cost for aggregating the convolution-kernel weights:
Compared to standard convolution’s
These count different operations: kernel aggregation versus applying a standard convolution over positions. The dynamic layer must still convolve the feature map after aggregation, so subtracting these expressions would not establish a per-layer FLOP saving.
By introducing dynamic convolution, the model achieves increased parameters while controlling GFLOPs within an acceptable local range.
More importantly, this design makes the kernel weights depend on the input. Figure 7 pools globally to generate those weights, so spatial positions in the same feature map share the aggregated kernel; it does not choose a separate kernel at every point.
Adaptive Multi-Scale Fusion
In object detection, multi-scale feature fusion is a fundamental technique to enhance model recognition capability. Shallow layers excel at preserving texture and positional information, while deeper layers focus on semantic abstraction and object judgment.
In theory, fusing both should combine "seeing clearly" and "understanding." However, this fusion is not trivial: scale differences cause semantic gaps, and simple concatenation or weighting often only "stacks" rather than "integrates."
To address this fusion failure, the authors proposed the AMSFF (Adaptive Multi-Scale Spatial Feature Fusion) module.
Refer to the architecture below:
The AMSFF operation logic, taking neck features L2 (shallower) and L3 (deeper) as an example:
- Scale Alignment: L2 is downsampled to match L3’s spatial resolution.
- Channel Adjustment: a 1×1 convolution aligns L2’s channel number with L3’s for element-wise operations.
- Initial Fusion: concatenation of adjusted L2 and L3 forms the base fusion tensor.
- Weight Learning: a 1×1 convolution computes two spatially adaptive weight maps and for the two feature layers. A Softmax ensures the weights sum to 1 and lie in [0,1].
- Weighted Fusion: weighted summation is computed by
where denotes the feature vector from layer scaled to layer at position , and is the fused feature map.
- Semantic Expansion: AMSFF applies two parallel 3×3 dynamic convolutions with dilation rates 1 and 2, then concatenates their outputs.
- Integrated Output: a 1×1 CBS layer packages and outputs the fused structure for subsequent detection heads.
Compared to previous fusion methods (FPN, PAN, BiFPN), AMSFF differs not only by adding attention but by treating fusion as a form of dynamic relationship construction.
Experimental Setup
The study uses the VisDrone2019 dataset, released by Tianjin University’s Machine Learning and Data Mining Lab.
This dataset contains images captured by drones under various weather and lighting conditions, covering diverse scenes such as cities, suburbs, parking lots, and roads, making it ideal for testing small object and complex background recognition.
VisDrone2019 includes ten object categories and a total of 10,209 images, divided as:
- Training set: 6,471 images
- Validation set: 548 images
- Test set: 3,190 images
Dataset characteristics:
- High scene diversity: includes static poses and motion tracking,
- Small object sizes: the annotated box widths and heights concentrate at smaller sizes in Figure 3,
- Obvious occlusion and lighting changes: challenging model generalization.
Below are sample images and annotations from four different scenes:
The experiments follow the standard YOLO training procedure, with environment settings and hyperparameters listed below:
Discussion
Comparative Experiments on Network Architecture Adjustments
To evaluate the impact of different detection heads on small object recognition, this study designed six architectural variants and conducted comparative experiments under identical training conditions. The specific structural changes are shown in the above table, with corresponding performance results below:
Table 5 reverses the width/depth labels for 0.67 and 0.75 in its header. The method section and Table 3 specify depth 0.67, width 0.75.
Key observations from the experiments include:
-
Adding the P2 Detection Head
Adding a P2 layer (resolution 160×160) to the original YOLOv5s architecture significantly improved performance on the VisDrone2019 dataset:
- [email protected] improved by 5.5 percentage points (32.6→38.1)
- [email protected]:0.95 improved by 4.1 percentage points (17.4→21.5)
This indicates that the model gains higher-resolution feature correspondence ability and can attend to tiny targets earlier. Although parameter count and GFLOPs slightly increased, the overall cost remained acceptable.
-
Removing the P5 Detection Head
Another experiment retained the new P2 head but removed P5 (20×20) to reduce parameters and computation related to large objects:
- Relative to the P2-added variant, [email protected] increased 0.5 percentage points (38.1→38.6)
- [email protected]:0.95 decreased 0.1 percentage points (21.5→21.4)
Parameters fell from 7.2M to 2.0M. The two mAP measures moved in opposite directions.
-
Simultaneous Removal of P4 and P5 with Model Depth and Width Enlargement
The final version removed both P5 and P4, increasing model depth from 0.33 to 0.67 and width from 0.5 to 0.75 to compensate for reduced representational power caused by aggressive pruning.
This version produced the most significant results:
- [email protected] increased 8.3 percentage points over YOLOv5s (32.6→40.9)
- [email protected]:0.95 increased 5.3 percentage points (17.4→22.7)
But Table 6 also shows that removing P4 before increasing width and depth lowers [email protected] from 38.6 to 33.0. The final gain comes from pruning together with the wider and deeper model; it does not show that P4 contributes nothing on its own.
For this aerial small-object task, the P2/P3 heads plus adequate model capacity work better with fewer parameters. The table does not isolate every change in that combination.
Ablation Study
To verify the separate and combined contributions of network restructuring, LW_C3, LW_Downsample, and AMSFF, the authors conducted an ablation study on VisDrone2019.
The specific optimization combinations are shown above, and performance results are summarized below:
In Table 8, each single-module row starts from the restructured YOLOv5_improve variant, while full YOLO-Tiny uses all three modules. Read the following differences against that baseline:
-
Structural Optimization
- [email protected] +8.3 percentage points over YOLOv5s
- [email protected]:0.95 +5.3 percentage points
- Parameters reduced by 81.4% compared to original YOLOv5s
- GFLOPs increased by about 53.1% (16.0→24.5)
Pruning the P4 and P5 prediction paths moves detection toward P2 and P3. The 92.1% figure refers to the backbone stages listed in Table 2, not a whole-model parameter reduction.
To avoid degradation due to insufficient parameters, the authors simultaneously increased network depth (0.33→0.67) and width (0.5→0.75), preserving certain abstraction capability.
-
Module Lightweighting
-
LW_C3:
- [email protected] +2.2 percentage points against YOLOv5_improve
- [email protected]:0.95 +1.9 percentage points
- GFLOPs reduced by 48.2%
-
LW_Downsample:
- [email protected] +3.9 percentage points against YOLOv5_improve
- [email protected]:0.95 +3.0 percentage points
- GFLOPs reduced by 11.0%
Each of these separate module variants has about 38.5% more parameters than YOLOv5_improve, yet fewer GFLOPs. They are parallel ablations, so their reductions cannot be multiplied as sequential steps.
-
-
AMSFF
- [email protected] +3.4 percentage points against YOLOv5_improve
- [email protected]:0.95 +2.6 percentage points
AMSFF learns spatially adaptive weights to combine shallow and deep features. This row supports an mAP gain, but it does not separately measure the proposed "dialogue imbalance" or prove what each scale contributes.
Full YOLO-Tiny combines the modules and reaches 47.4% [email protected], 27.7% [email protected]:0.95, 3.3M parameters, and 13.4 GFLOPs. Against YOLOv5s, those are gains of 14.8/10.3 percentage points with 52.9% fewer parameters and 16.3% fewer GFLOPs.
Comparison with Other YOLO Models
The YOLO series has long been synonymous with object detection, widely recognized for end-to-end, ultra-fast inference. From YOLOv3’s multi-scale prediction and Darknet-53 backbone to YOLOv8’s introduction of gradient flow into feature branches and YOLOv10’s removal of Non-Maximum Suppression (NMS), each generation pursues accuracy and efficiency improvements.
Here, the authors compare with smaller versions of mainstream YOLO models. The results show YOLO-Tiny delivers impressive accuracy despite dramatically reduced parameters and computation.
For [email protected], it surpasses YOLOv3-Tiny, YOLOv6s, YOLOv8s, and YOLOv10s by 23.7, 10.8, 8.3, and 9.1 percentage points respectively; [email protected]:0.95 gains are 14.4, 5.8, 4.2, and 4.9 points. Against these four rows, it uses about 59%–80% fewer parameters and 30%–70% fewer GFLOPs. Table 9 reports no same-device inference latency or FPS; UAV speed requires direct measurement.
Visualization
From left to right: original image, YOLOv5s result, and YOLO-Tiny result. Several circled tiny targets have more detections in the right-hand output, but these selected images do not provide dataset-wide false-positive or missed-detection counts.
Conclusion
Facing extremely small targets in UAV aerial imagery under limited terminal computation, YOLO-Tiny’s structural adjustments and module designs offer a practical technical approach.
Previous lightweight architectures often force explicit trade-offs between speed and accuracy. In VisDrone-like scenarios, small object features are easily diluted by multiple downsampling layers, causing detection accuracy stagnation.
This work prunes large-object detection layers P5 and P4, refocusing the network on smaller scales P3 and P2, while employing dynamic convolution and AMSFF modules for signal compression and feature fusion. This aims to improve small object recognition without increasing computational burden.
Experimental results confirm this strategy yields significant mAP gains on VisDrone2019 while maintaining advantages in parameters and GFLOPs, demonstrating targeted design for small object structures.
However, the paper reports no measured inference latency or FPS on a UAV, and its DIOR results are qualitative examples. Its actual deployment speed and generalizability still need direct tests.