Multi-Scale Feature Enhancement and Knowledge Distillation for UAV Drone Object Detection

Unmanned aerial vehicle technology has matured rapidly over the past decade, and the UAV drone has evolved from a specialized remote-controlled platform into a general-purpose aerial sensing node that is deployed in public safety operations, disaster assessment, urban governance, traffic surveillance, and precision agriculture. What makes the UAV drone attractive is not only its mobility but also its ability to hover at low altitude, capture imagery from arbitrary viewpoints, and transmit data to a ground station within seconds. When a natural disaster such as an earthquake, a flood, a landslide, or a forest fire occurs, ground rescue teams often cannot reach the affected area immediately because of collapsed infrastructure and secondary hazards. A UAV drone, by contrast, can be launched within minutes, cover a large area, and provide continuous aerial imagery that supports command and rescue decisions.

From the perspective of computer vision, however, the imagery produced by a UAV drone is fundamentally different from imagery captured by ground-level cameras. Objects are extremely small in pixel terms, they are distributed densely, they frequently occlude one another, and the background contains highly textured structures such as roofs, vegetation, road markings, and shadows. At the same time, the onboard computational budget of a UAV drone is severely constrained by payload, battery capacity, and thermal limits, so a detection network with hundreds of millions of parameters cannot be deployed directly. In this work I address both problems simultaneously: I first build a high-accuracy teacher detector through multi-scale feature enhancement, and I then transfer its knowledge into an extremely lightweight student detector through a dedicated knowledge distillation framework tailored to the UAV drone scenario.

1. Background and Problem Formulation

Before presenting my method, I summarize the fundamental building blocks of convolutional neural networks and the two dominant paradigms of deep object detection, because my design choices follow directly from their limitations when applied to aerial imagery.

1.1 Convolutional Neural Networks

A convolutional neural network models grid-structured data by stacking local weighted operators, downsampling operators, nonlinear activations, and global aggregators. The convolution operation itself can be written as

$$Y_{i,j}=\sum_{m=0}^{k-1}\sum_{n=0}^{k-1}X(i+m,\;j+n)\cdot W(m,n)+b$$

where $X$ is the input feature map, $W$ is a learnable kernel of spatial extent $k\times k$, and $b$ is a bias term. Because the same kernel slides across all spatial positions, the number of free parameters is drastically smaller than in a fully connected formulation, and the translation equivariance of the operation is preserved. Pooling reduces spatial resolution and introduces a degree of translation invariance:

$$P_{i,j}=\frac{1}{|\Omega_{i,j}|}\sum_{(u,v)\in\Omega_{i,j}}X(u,v)$$

$$P_{i,j}=\max_{(u,v)\in\Omega_{i,j}}X(u,v)$$

Nonlinear activations are required to escape the linear regime. The classical sigmoid and the modern rectified linear unit are respectively

$$\sigma(x)=\frac{1}{1+e^{-x}}$$

$$\mathrm{ReLU}(x)=\max(0,x)$$

The rectified unit is preferred in deep backbones because its gradient does not vanish for positive inputs and its computation is trivial. Fully connected layers, finally, aggregate spatially resolved features into a global vector and perform the final mapping to class scores.

Table 1. Functional roles of the principal CNN components in a UAV drone detection backbone.
Component Operation Role in UAV drone detection Typical issue
Convolution Local weighted sum with weight sharing Extracts edges, textures, and semantics Fixed receptive field hurts scale variation
Pooling Average or maximum over local windows Reduces resolution and cost Destroys fine detail of small objects
Activation Pointwise nonlinearity Enables complex decision boundaries Saturation slows convergence
Fully connected Global dense projection Final classification or regression Large parameter count

1.2 Two-Stage and One-Stage Detectors

Deep detectors are conventionally divided into two families. Two-stage detectors such as R-CNN, Fast R-CNN, Faster R-CNN, and Mask R-CNN first generate region proposals and then classify and refine each proposal. One-stage detectors such as SSD and the YOLO family directly regress class scores and box coordinates from dense feature maps. For a UAV drone, the decisive criterion is latency, because the platform must react to a moving scene in real time while carrying a limited power source.

Table 2. Qualitative comparison of detection paradigms with respect to UAV drone constraints.
Paradigm Representative models Accuracy Latency Suitability for a UAV drone
Two-stage Faster R-CNN, Cascade R-CNN, Mask R-CNN High on large objects High Poor, the compute budget is exceeded
One-stage anchor-based SSD, YOLOv5, YOLOv8 Moderate Low Good, but weak on tiny objects
One-stage anchor-free end-to-end YOLOv10 and successors Moderate to high Very low Excellent if small-object recall is repaired

I therefore adopt an end-to-end one-stage detector as the backbone of my work. Its dual-assignment strategy removes the need for non-maximum suppression at inference time, which both lowers latency and eliminates a source of false negatives in crowded aerial scenes where many boxes overlap heavily.

2. Why a Naive Detector Fails on Aerial Imagery

The central difficulty is that a small object of interest may occupy fewer than twenty pixels along its longer side, whereas the deepest feature map has been downsampled by a factor of thirty-two. High-frequency evidence such as edges and textures is attenuated at each stride-two operation, and by the time the signal reaches the detection head the object has effectively dissolved into the background. Three failure modes follow directly.

The first failure mode is frequency loss. Standard convolutions behave as low-pass filters in the sense that their learned kernels statistically favor smooth, low-frequency structure. For aerial objects whose discriminative signature is precisely the high-frequency boundary, this bias is harmful.

The second failure mode is receptive field rigidity. A convolution kernel of fixed size responds to a fixed spatial extent, whereas in a single UAV drone frame the same semantic class may appear at scales that differ by a factor of twenty, depending on flight altitude and camera angle.

The third failure mode is background dominance. Because the foreground occupies a tiny fraction of the image, a global loss is numerically dominated by background positions. During distillation this effect becomes even more pronounced, since a naive feature-matching loss will spend most of its gradient budget on uninformative regions.

3. Multi-Scale Feature Enhancement

My enhanced detector keeps the overall topology of the baseline network and replaces three specific components. I describe each in turn, together with the equations that define it.

3.1 Wavelet Convolution Inside the Feature Extraction Block

The first modification concerns feature extraction. Two-dimensional discrete wavelet decomposition partitions an input feature map into four mutually exclusive sub-bands,

$$\{A_{ll},\,D_{lh},\,D_{hl},\,D_{hh}\}=\mathrm{DWT}(X_{l-1})$$

where $A_{ll}$ is the low-frequency approximation carrying global shape and semantic layout, while $D_{lh}$, $D_{hl}$, and $D_{hh}$ are horizontal, vertical, and diagonal high-frequency sub-bands that encode edges and oriented textures. Concatenating the four sub-bands along the channel dimension yields a frequency-domain representation

$$X^{f}_{l}=\mathrm{Concat}\big(A_{ll},\,D_{lh},\,D_{hl},\,D_{hh}\big)$$

A depthwise convolution then models each frequency component separately, and a learnable scaling function re-weights the sub-bands according to their importance,

$$\hat{X}^{f}_{l}=S_{l}\big(\mathrm{DWConv}(X^{f}_{l})\big)$$

The inverse transform maps the enhanced sub-bands back to the spatial domain at the original resolution,

$$X^{w}_{l}=\mathrm{IWT}\big(\hat{X}^{f}_{l}\big)$$

Because spatial and frequency modeling are complementary, the complete wavelet convolution is expressed as a residual combination,

$$F_{WT}=F_{spatial}(X_{l-1})+F_{wavelet}(X_{l-1})$$

I embed this operator inside the bottleneck of the feature extraction block, so the resulting module retains the lightweight character of the original block while gaining explicit access to high-frequency evidence. The practical consequence for a UAV drone is that the fine silhouette of a distant vehicle or a pedestrian remains numerically present in the feature map for several additional stages of the network.

Table 3. Components of the frequency-aware feature extraction module.
Stage Transform Dimension change Purpose
Decomposition 2D DWT into four sub-bands $H\times W\rightarrow \tfrac{H}{2}\times\tfrac{W}{2}$, channels $\times 4$ Separate low and high frequency evidence
Concatenation Channel-wise concat Channels $4C$ Unify sub-band representation
Depthwise convolution Per-channel filtering Unchanged Model each frequency band independently
Rescaling Learnable channel scaling Unchanged Suppress noise, amplify informative bands
Reconstruction Inverse DWT Back to $H\times W$ Restore spatial resolution
Fusion Residual addition Unchanged Merge spatial and spectral features

3.2 Variable Receptive Field with Channel and Spatial Attention

The second modification addresses receptive field rigidity and background interference. A depthwise convolution with kernel size $k$ expands the channel dimension so that each input channel produces $k^{2}$ local responses,

$$F_{0}=\phi\big(\mathrm{DWConv}_{k\times k}(X)\big),\qquad F_{0}\in\mathbb{R}^{C\times k^{2}\times H\times W}$$

A rearrangement operation then makes the implicit receptive field index explicit in the spatial layout,

$$F_{1}=\mathrm{Rearrange}(F_{0})\in\mathbb{R}^{C\times H\times W\times k^{2}}$$

Channel importance is estimated with a squeeze-and-excitation style gate. Global average pooling compresses the spatial dimensions, and two lightweight projections produce a channel weight vector,

$$s=\sigma\Big(W_{2}\,\delta\big(W_{1}\,\mathrm{GAP}(F_{1})\big)\Big)$$

$$F_{2}=s\otimes F_{1}$$

A second attention stage operates spatially on the re-weighted tensor. Maximum and average descriptors are concatenated, convolved with a $3\times 3$ kernel, and squashed by a sigmoid to yield a receptive field attention map,

$$A_{r}=\sigma\Big(\mathrm{Conv}_{3\times3}\big([\mathrm{MaxPool}(F_{2});\mathrm{AvgPool}(F_{2})]\big)\Big)$$

$$F_{3}=A_{r}\otimes F_{2}$$

Finally a strided convolution projects the attended tensor back to the target channel count while performing spatial reduction,

$$F_{out}=\mathrm{Conv}^{stride}_{k\times k}(F_{3})$$

The combined effect is that the network can select, for each spatial location, which effective receptive region and which semantic channel deserve emphasis. In my experience with aerial frames of a UAV drone, this is precisely what is needed to separate a genuine object from a visually similar patch of roof tiles or asphalt texture.

Table 4. Sequential pipeline of the variable receptive field attention convolution.
Step Operation Output tensor Effect
1 Depthwise convolution, kernel $k$ $\mathbb{R}^{C\times k^{2}\times H\times W}$ Generate multi-scale candidates
2 Rearrange to spatial layout $\mathbb{R}^{C\times H\times W\times k^{2}}$ Expose receptive field as a tensor axis
3 Squeeze-and-excitation Same Reweight semantic channels
4 Max and average descriptors with $3\times3$ convolution $\mathbb{R}^{1\times H\times W\times k^{2}}$ Localize informative regions
5 Strided convolution projection $\mathbb{R}^{C’\times H’\times W’}$ Restore dimensionality and fuse

3.3 A Small-Object Oriented Feature Pyramid

The third modification concerns the neck. Adding an extra high-resolution prediction layer is the obvious remedy for small objects, but it increases parameter count, memory traffic, and post-processing cost, which is unacceptable on a UAV drone. I therefore keep the number of detection levels unchanged and instead enrich the highest-resolution pathway.

Given the fine-grained feature map $F_{P2}\in\mathbb{R}^{H\times W\times C}$, a space-to-depth rearrangement moves local spatial blocks into the channel dimension,

$$F_{P2}\;\longrightarrow\;\mathbb{R}^{\frac{H}{r}\times\frac{W}{r}\times Cr^{2}}$$

followed by a pointwise projection and nonlinearity,

$$\tilde{F}_{P2}=\phi\big(\mathrm{Conv}_{1\times1}(\mathrm{SPD}(F_{P2}))\big)$$

This operation is attractive because it trades spatial resolution for channel capacity without discarding any information, in contrast to strided convolution or pooling which permanently delete samples.

For fusion I adopt a cross-stage partial design combined with a multi-branch kernel aggregator. The input is split along channels,

$$F_{1},F_{2}=\mathrm{Split}(F)$$

where $F_{1}$ bypasses the block to preserve gradient flow and original information, while $F_{2}$ is processed by parallel branches operating at different scales,

$$F_{2}’=\sum_{j\in\{g,l,s\}}K_{j}(F_{2})$$

with $K_{g}$, $K_{l}$, and $K_{s}$ denoting the global, large, and small branches respectively. The final output concatenates the bypass and the processed branch,

$$F_{out}=\mathrm{Concat}\big(F_{1},\,F_{2}’\big)$$

Taken together, these three modifications compose a detector that I designate as the enhanced model. The design philosophy is consistent: instead of adding depth or width indiscriminately, each modification injects a specific inductive bias that aerial imagery demands, namely frequency sensitivity, adaptive receptive fields, and preserved high-resolution detail.

4. Experiments on the Enhanced Detector

4.1 Environment, Dataset, and Metrics

All experiments are conducted under identical software and hardware conditions to guarantee fair comparison. The training configuration is summarized below.

Table 5. Training configuration for the enhanced detector.
Category Item Value
Hardware GPU 24 GB accelerator
Software Operating system Ubuntu 20.04
Software Framework PyTorch 2.0.0, CUDA 11.8, Python 3.9
Training Input resolution $640\times640$
Training Batch size 8
Training Epochs 200
Training Initial learning rate 0.01
Training Optimizer SGD with momentum 0.937

I evaluate on a large aerial benchmark that contains thousands of frames captured by a UAV drone over urban and rural scenes under varied illumination, together with a traffic-oriented aerial dataset used exclusively for generalization testing. The split is given below.

Table 6. Dataset partition used throughout the experiments.
Subset Images Share
Training 6471 75.0%
Validation 548 6.4%
Test 1610 18.6%
Total 8629 100%

The benchmark annotates ten categories, including pedestrian, people, bicycle, car, van, truck, tricycle, awning-tricycle, bus, and motorcycle, amounting to roughly 2.6 million annotated instances. The evaluation metrics are precision, recall, mean average precision at two intersection-over-union thresholds, parameter count, computational cost, and frames per second:

$$P=\frac{TP}{TP+FP},\qquad R=\frac{TP}{TP+FN}$$

$$AP=\int_{0}^{1}p(r)\,dr,\qquad mAP=\frac{1}{N}\sum_{i=1}^{N}AP_{i}$$

$$FPS=\frac{1}{t_{avg}}$$

Here $mAP@0.5$ uses a single intersection-over-union threshold of 0.5, whereas $mAP@0.5{:}0.95$ averages over thresholds from 0.5 to 0.95 in steps of 0.05 and is therefore a much stricter measure of localization quality.

4.2 Main Results

The enhanced model improves every headline metric relative to the baseline, as reported below.

Table 7. Overall detection performance before and after multi-scale feature enhancement.
Model P (%) R (%) mAP@0.5 (%) mAP@0.5:0.95 (%)
Baseline 48.6 38.6 39.3 23.3
Enhanced (this work) 54.6 41.6 43.6 26.0

Precision rises by 6.0 points and recall by 3.0 points, while the strict localization metric improves by 2.7 points. The simultaneous improvement of precision and recall is significant for a UAV drone application, because it indicates that the additional detections are genuine rather than the result of an aggressive confidence threshold.

4.3 Class-Level Analysis

Aggregate metrics can conceal which categories benefit. I therefore report class-wise results for both models.

Table 8. Class-wise results of the baseline model.
Category P (%) R (%) mAP@0.5 (%) mAP@0.5:0.95 (%)
pedestrian 53.1 39.5 43.0 19.6
people 52.8 31.5 34.7 14.0
bicycle 24.9 16.9 13.2 5.4
car 72.3 77.3 80.3 57.2
van 51.8 45.0 45.7 31.8
truck 46.3 32.1 34.2 21.8
tricycle 38.9 29.2 27.1 14.5
awning-tricycle 32.8 19.0 16.6 10.1
bus 62.6 48.7 53.1 38.6
motor 50.0 46.9 45.6 20.0
Table 9. Class-wise results of the enhanced model.
Category P (%) R (%) mAP@0.5 (%) mAP@0.5:0.95 (%)
pedestrian 60.6 41.9 47.7 22.6
people 58.5 32.5 37.9 15.6
bicycle 31.8 19.5 17.3 7.6
car 78.8 77.4 82.6 59.7
van 56.6 47.7 50.1 34.8
truck 54.2 38.5 41.2 25.9
tricycle 45.5 33.6 33.2 18.2
awning-tricycle 35.1 22.0 18.2 11.3
bus 69.9 54.0 58.8 41.2
motor 55.4 48.6 49.6 23.2

Large vehicles with substantial scale variation, such as trucks and buses, gain the most in absolute terms; the truck category improves by seven points at the 0.5 threshold, and the bus category by nearly six. These categories are frequently accompanied by cast shadows, rotation, and background texture confusion, so the gain indicates that explicit frequency modeling and adaptive receptive fields are effective remedies.

Categories that occupy very few pixels, such as bicycle and pedestrian, also improve substantially, with the bicycle category moving from 13.2 to 17.3 percent. This confirms that preserving the highest-resolution pathway rather than discarding it is the correct design decision for a UAV drone.

4.4 Comparison with Contemporary Detectors

I compare the enhanced model with representative two-stage and one-stage detectors under an identical protocol.

Table 10. Comparison with contemporary detectors on the aerial benchmark.
Model mAP@0.5 (%) mAP@0.5:0.95 (%) Params (M) GFLOPs
Two-stage detector A 29.5 15.2 41.5 206
Two-stage detector B 31.8 16.5 69.1 235
Lightweight one-stage A 36.2 19.2 7.2 16.5
Lightweight one-stage B 35.8 18.9 6.2 13.8
Mid-scale one-stage 40.5 24.1 11.2 28.6
Baseline 39.3 23.3 7.2 21.6
Enhanced (this work) 43.6 26.0 9.5 35.8

Two observations follow. First, two-stage detectors are far too expensive for a UAV drone: their parameter counts exceed forty million and their computational cost exceeds two hundred gigaflops, which is incompatible with an embedded flight controller. Their accuracy on this benchmark is also markedly lower, because proposal generation struggles when objects are only a handful of pixels wide.

Second, the extremely small one-stage models sacrifice too much representational capacity. They reduce parameters aggressively, but their receptive fields are insufficient and their resistance to clutter is weak, so their accuracy falls well short of what a UAV drone needs for geolocation-sensitive tasks. The enhanced model attains the best accuracy of all compared systems while remaining within a parameter budget that is still an order of magnitude smaller than the two-stage family.

4.5 Ablation Study

To isolate the contribution of each modification I progressively add components to the baseline.

Table 11. Progressive ablation of the three enhancement modules.
Configuration Frequency module Attention module Pyramid module P (%) R (%) mAP@0.5 (%)
Baseline — — — 48.6 38.6 39.3
+ Frequency Yes — — 51.4 40.2 41.8
+ Frequency + Attention Yes Yes — 53.2 41.1 42.9
Full model Yes Yes Yes 54.6 41.6 43.6

The frequency module contributes the largest single increment of 2.5 points, which supports my hypothesis that high-frequency attenuation is the dominant bottleneck for tiny aerial objects. The attention module adds 1.1 points by adapting the effective receptive field to each spatial position. The pyramid module adds a further 0.7 points by retaining high-resolution detail without introducing an additional prediction level. The cumulative gain of 4.3 points demonstrates that the three modules are complementary rather than redundant, since they act on frequency content, spatial attention, and multi-scale fusion respectively.

4.6 Cross-Dataset Generalization

A modification that only works on one dataset is of limited value. I therefore evaluate the enhanced model on a second aerial dataset that emphasizes vehicular traffic, dense queuing, severe occlusion, and perspective distortion.

Table 12. Cross-dataset generalization results.
Model P (%) R (%) mAP@0.5 (%) mAP@0.5:0.95 (%)
Baseline 49.4 37.7 38.6 23.2
Enhanced (this work) 51.4 41.3 42.6 25.5

Recall improves by 3.6 points, which directly reflects a reduction in missed detections within dense vehicle clusters. The strict localization metric improves by 2.3 points, indicating that the adaptive receptive field mechanism transfers well to a different flight altitude distribution. The overall gain of 4.0 points is comparable to the in-domain gain, which suggests that the improvements target general properties of aerial imagery of a UAV drone rather than dataset-specific artifacts.

4.7 Qualitative Behaviour

Visual inspection confirms the numerical findings. In long-range traffic scenes the baseline detector misses a number of small vehicles positioned between larger ones, whereas the enhanced model recovers most of them. In dim, low-contrast scenes where shadow and noise dominate, the baseline produces sparse detections, while the enhanced model preserves a much more complete set of boxes. Both behaviors are consistent with the expectation that frequency-domain modeling restores weak high-frequency evidence and that attention suppresses nuisance texture.

5. Lightweight Deployment Through Knowledge Distillation

The enhanced detector is accurate, but its computational cost is still too high for a small UAV drone. I therefore treat it as a teacher and design a dedicated distillation framework that transfers its knowledge to an extremely compact student of the same architectural family. Three mechanisms are proposed, each targeting a distinct deficiency of conventional distillation in aerial scenes.

5.1 Cross-Dimensional Multi-Scale Semantic Feature Reconstruction

Teacher and student share the same stage structure and therefore the same spatial resolution at every level,

$$H^{t}_{l}=H^{s}_{l},\qquad W^{t}_{l}=W^{s}_{l}$$

but their channel counts differ,

$$C^{t}_{l}\neq C^{s}_{l}$$

Direct feature alignment is therefore impossible. I resolve this by placing a pointwise projection on the student pathway that performs a channel-wise linear expansion without any spatial resampling. With kernel weights $W^{(l)}$ and bias $b^{(l)}$,

$$\hat{F}^{s}_{l}(i,j)=W^{(l)}\odot F^{s}_{l}(i,j)+b^{(l)}$$

and the projected tensor satisfies

$$\hat{F}^{s}_{l}\in\mathbb{R}^{H^{t}_{l}\times W^{t}_{l}\times C^{t}_{l}}$$

Because the kernel is of size $1\times1$, no spatial structure is altered and no interpolation is introduced. This matters greatly for a UAV drone: any downsampling in the alignment path would destroy exactly the high-resolution evidence that the teacher worked so hard to preserve. I apply this reconstruction at each pyramid level so that the student learns scale-specific semantics rather than a single averaged representation.

Table 13. Properties of the feature reconstruction module.
Property Conventional alignment Proposed reconstruction
Spatial resolution Often reduced by pooling Strictly preserved
Channel mismatch Ignored or crudely padded Learned $1\times1$ projection
Small-object detail Partially lost Fully retained
Multi-scale treatment Single level Per-level supervision

5.2 Dynamic Mask Focused Distillation

Conventional feature distillation applies a uniform mean squared error over all spatial positions,

$$L_{naive}=\frac{1}{HWC}\sum_{h,w,c}\big(\hat{F}^{s}(h,w,c)-F^{t}(h,w,c)\big)^{2}$$

In an aerial frame the foreground occupies only a small fraction of the grid, so most of the gradient budget is wasted on background. I therefore derive a spatial soft mask from the teacher activation magnitude. The channel-averaged absolute response is

$$R(h,w)=\frac{1}{C}\sum_{c=1}^{C}\big|F^{t}(h,w,c)\big|$$

and after min-max normalization,

$$M(h,w)=\frac{R(h,w)-\min R}{\max R-\min R+\epsilon}$$

the mask approaches one in regions of strong teacher response and approaches zero in uninformative background. The elementwise squared difference is

$$D(h,w)=\frac{1}{C}\sum_{c=1}^{C}\big(\hat{F}^{s}(h,w,c)-F^{t}(h,w,c)\big)^{2}$$

and the masked distillation loss becomes

$$L_{mask}=\frac{1}{HW}\sum_{h,w}M(h,w)\cdot D(h,w)$$

Because the mask is recalculated at every iteration from the current teacher response, it is dynamic rather than fixed, so the focus of the distillation shifts as training progresses. For a UAV drone, this mechanism acts as an implicit hard-example miner that concentrates the limited capacity of the student on the tiny fraction of the image that actually contains targets.

Table 14. Effect of spatial reweighting on the distillation gradient budget.
Region type Typical area share Uniform weighting Masked weighting
Foreground target 2–10% Low gradient share Dominant gradient share
Structured background 30–50% Large gradient share Suppressed
Flat background 40–60% Large gradient share Nearly zero

5.3 Adaptive Decoupled Distillation Loss

Because the detector uses a decoupled head, classification and regression should not share a single distillation objective. I design two distinct constraints.

For the classification branch, the teacher logits $z^{t}$ and student logits $z^{s}$ are softened with a temperature parameter,

$$p^{t}_{i}=\frac{\exp(z^{t}_{i}/T)}{\sum_{j}\exp(z^{t}_{j}/T)},\qquad p^{s}_{i}=\frac{\exp(z^{s}_{i}/T)}{\sum_{j}\exp(z^{s}_{j}/T)}$$

The divergence between the two distributions is penalized,

$$L_{cls}=T^{2}\cdot\frac{1}{N}\sum_{n=1}^{N}KL\big(p^{t}_{n}\,\|\,p^{s}_{n}\big)$$

The factor $T^{2}$ keeps the gradient magnitude stable when the temperature is raised. Raising the temperature above one amplifies the differences among non-dominant classes, which exposes the relational structure that the teacher has learned and that hard labels cannot express.

For the regression branch I exploit the fact that the localization head represents each box coordinate as a discrete probability distribution. Denoting the teacher and student distributions by $\beta^{t}$ and $\beta^{s}$, the regression distillation loss is

$$L_{reg}=\frac{1}{N}\sum_{n=1}^{N}KL\big(\beta^{t}_{n}\,\|\,\beta^{s}_{n}\big)$$

Aligning distributions rather than hard coordinates yields smoother and more continuous gradients, which is particularly beneficial when many small objects of the same class overlap, as is routinely the case for a UAV drone observing a crowded intersection.

The complete training objective combines the supervised detection loss with the three distillation terms,

$$L_{total}=L_{det}+\lambda_{feat}L_{mask}+\lambda_{cls}L_{cls}+\lambda_{reg}L_{reg}$$

where the weighting coefficients balance the contributions of feature-level and output-level knowledge.

Table 15. Summary of the three distillation mechanisms and their targets.
Mechanism Level Problem addressed Loss term
Feature reconstruction Neck feature maps Channel dimension mismatch Squared error after projection
Dynamic mask focusing Spatial positions Background gradient domination Masked squared error
Decoupled head loss Classification and regression outputs Task entanglement and hard-label limitation Temperature-scaled KL, distribution KL

6. Distillation Experiments

6.1 Configuration

The teacher weights are frozen throughout distillation. The temperature is set to three, and the overall distillation weight is 0.5. All other training hyperparameters match the earlier experiments.

Table 16. Distillation training configuration.
Category Item Value
Environment GPU 24 GB accelerator
Environment Framework PyTorch 2.0.0, CUDA 11.8
Training Input resolution $640\times640$
Training Batch size 8
Training Epochs 200
Training Optimizer SGD, momentum 0.937
Training Initial learning rate 0.01
Training Weight decay 0.0005
Distillation Temperature 3
Distillation Distillation weight 0.5
Distillation Supervised levels Logits and neck feature maps

6.2 Main Distillation Results

Table 17. Detector, teacher, and distilled student performance.
Role Strategy mAP@0.5 (%) Params (M) GFLOPs FPS
Student Supervised only 38.8 2.8 11.7 126
Teacher Enhanced, no distillation 43.6 9.5 35.8 91
Student Proposed distillation 41.5 2.8 11.7 126

The comparison reveals three important facts. First, the teacher is 3.4 times larger and 3.1 times more expensive than the student, and it runs 35 frames per second slower, which confirms that direct deployment on a UAV drone is impractical. Second, the proposed distillation raises the student from 38.8 to 41.5 percent without changing the parameter count, the computational cost, or the inference speed. Third, the distilled student is faster than the teacher while recovering a substantial fraction of the accuracy gap, which is precisely the operating point that a real UAV drone mission requires.

The accuracy gap between student and teacher closes from 4.8 points to 2.1 points, meaning that slightly more than half of the gap is recovered at zero additional inference cost. The convergence behavior is also informative: all models rise quickly during the first fifty epochs and then plateau, and the distilled student converges to a level that lies strictly between the unsupervised student and the teacher rather than oscillating around either.

6.3 Comparison with Established Distillation Methods

I compare against six widely used distillation strategies under identical conditions.

Table 18. Comparison of distillation strategies with the same teacher and student.
Strategy Knowledge source mAP@0.5 (%) Gain over student
Logit distillation Output logits only 39.8 +1.0
Feature fitting Intermediate features 40.1 +1.3
Attention transfer Attention maps 40.6 +1.8
Channel-wise distillation Channel semantics 40.8 +2.0
Foreground-focused distillation Foreground and background separation 41.0 +2.2
Masked generative distillation Masked feature generation 41.2 +2.4
Proposed framework Reconstructed features, masked focus, decoupled head 41.5 +2.7

Logit distillation performs worst because, in a scene dominated by background, the softened probability distributions are themselves dominated by the vast number of background proposals, so the transferred signal is diluted. Feature fitting and attention transfer improve on this by operating in the feature space, but they still treat all spatial positions equally. The detection-oriented methods that explicitly address channel semantics or foreground-background imbalance perform better and cluster around forty-one percent. My framework exceeds all of them, which supports the design premise that the three deficiencies, namely dimension mismatch, spatial imbalance, and task entanglement, must be addressed jointly rather than in isolation.

6.4 Ablation of the Distillation Framework

Table 19. Ablation of the three distillation mechanisms.
Configuration Feature reconstruction Dynamic masking Decoupled loss mAP@0.5 (%) Gain
Student baseline — — — 38.8 —
+ Reconstruction Yes — — 40.1 +1.3
+ Reconstruction + Masking Yes Yes — 40.5 +1.7
Full framework Yes Yes Yes 41.5 +2.7

Feature reconstruction provides the largest single contribution because it makes the alignment problem well posed in the first place; without a consistent channel space, the remaining losses cannot be defined meaningfully. Dynamic masking adds a smaller but consistent increment by redirecting gradient toward foreground regions. The decoupled head loss adds a full point, which is notable because it operates only at the output stage and yet delivers a gain comparable to the entire feature-level machinery. This demonstrates that classification and localization benefit from separate treatment, a conclusion that is broadly relevant to any small-object detector deployed on a UAV drone.

6.5 Qualitative Comparison After Distillation

Visual comparison of the student before and after distillation shows the expected pattern. The undistilled student already detects most large and mid-sized vehicles but misses a noticeable number of distant or partially occluded ones, and some of its boxes carry low confidence. After distillation, the number of recovered small objects increases markedly, especially in crowded parking areas and at intersections, and the box boundaries adhere more tightly to object extents. The distilled student also continues to detect targets in weakly illuminated regions where the undistilled student produced almost no response. Importantly, the teacher still retains a modest advantage in the most difficult clusters, which indicates that the distillation has not been overfit and that a residual gap remains as a target for future work.

7. Discussion

Several design principles emerge from the experimental evidence and deserve explicit statement because they generalize beyond the specific architectures used here.

The first principle is that frequency-domain modeling is not a marginal refinement but a core requirement for aerial small-object detection. The ablation shows that the frequency module alone recovers more than half of the total improvement, which is consistent with the physical observation that the discriminative signature of a small object is concentrated in its high-frequency boundary content. Any architecture that systematically attenuates high frequencies through successive strided operations will lose this evidence irreversibly.

The second principle is that resolution preservation should be preferred over resolution recovery. The pyramid module improves accuracy without adding a detection level, purely by rearranging rather than discarding spatial samples. The same logic applies to the feature reconstruction module in distillation, where a $1\times1$ projection is chosen specifically to avoid any spatial resampling. In both cases the design decision is driven by the same constraint: information that has been destroyed cannot be recovered by a subsequent upsampling operation.

The third principle is that the allocation of gradient budget is as important as the architecture itself. Both the attention module and the dynamic mask operate by reweighting, and both produce measurable gains. For a UAV drone, where the foreground is a vanishingly small fraction of the sensor field of view, any training objective that treats all positions equally is statistically inefficient.

The fourth principle is that task decoupling is valuable at the distillation stage. Classification benefits from relational knowledge encoded in softened distributions, while localization benefits from distributional alignment of box coordinates. Forcing both through a single loss term creates a compromise that serves neither optimally.

Table 20. Consolidated summary of all reported results.
Model stage mAP@0.5 (%) mAP@0.5:0.95 (%) Params (M) GFLOPs FPS
Baseline detector 39.3 23.3 7.2 21.6 —
Enhanced teacher 43.6 26.0 9.5 35.8 91
Compact student, supervised 38.8 — 2.8 11.7 126
Compact student, distilled 41.5 — 2.8 11.7 126

8. Conclusion

In this work I addressed the dual challenge that confronts object detection on a UAV drone: the visual difficulty of tiny, densely packed, clutter-embedded targets, and the computational difficulty of running a modern detector on a power-limited airborne platform. I approached the problem in two stages.

In the first stage I constructed a high-accuracy detector by introducing three targeted modifications. A wavelet-based convolution inside the feature extraction block restores high-frequency evidence that standard convolution suppresses. A variable receptive field module with channel and spatial attention adapts the effective filter extent to each location and suppresses nuisance texture. A small-object oriented pyramid preserves the highest-resolution pathway through space-to-depth rearrangement and multi-branch kernel aggregation rather than by adding an additional prediction level. The resulting detector improves the aggregate metric from 39.3 to 43.6 percent and improves the strict localization metric from 23.3 to 26.0 percent, with gains confirmed independently on a second aerial dataset.

In the second stage I compressed the detector through a distillation framework designed specifically for aerial scenes. A cross-dimensional reconstruction module aligns teacher and student feature spaces at identical spatial resolution, so no detail is lost during knowledge transfer. A dynamic mask derived from teacher activation magnitude redirects the gradient budget toward foreground regions. A decoupled head loss treats classification and localization separately, using temperature-scaled divergence for the former and distributional divergence for the latter. The distilled student reaches 41.5 percent while retaining a parameter count of 2.8 million, a computational cost of 11.7 gigaflops, and a throughput of 126 frames per second, which is faster than the teacher while closing more than half of the accuracy gap.

9. Future Work

Two directions appear most promising. The first is robustness under domain shift. A UAV drone operates across day and night, across seasons, and across weather conditions that include rain, snow, and fog, and each of these induces a distribution shift relative to the training data. Since acquiring and annotating new high-resolution aerial data for every new condition is prohibitively expensive, semi-supervised and unsupervised domain adaptation deserve serious attention, and I believe they can be integrated into the distillation framework presented here by treating the teacher as a source of pseudo-supervision for unlabeled target-domain frames.

The second direction is extreme compression for embedded deployment. Distillation reduces the accuracy gap but does not reduce the parameter count, so combining the proposed framework with structured pruning and low-precision quantization is a natural next step. Furthermore, in highly oblique views the objects of interest frequently overlap almost completely, and even a well-tuned single-stage detector struggles to separate them. Multi-modal fusion, for example combining visible-light imagery with infrared thermal imagery, may provide the additional discriminative signal required, and I intend to explore latent cross-modal association mechanisms that preserve the extremely low computational footprint that a UAV drone demands.

Scroll to Top