Detecting tiny objects in aerial images: A normalized Wasserstein distance and a new benchmark

Chang Xu, Jinwang Wang, Wen Yang, Huai Yu, Lei Yu, Gui-Song XiaarXiv 2022 · DOI

Abstract

Tiny object detection (TOD) in aerial images is challenging since a tiny object only contains a few pixels. State-of-the-art object detectors do not provide satisfactory results on tiny objects due to the lack of supervision from discriminative features. Our key observation is that the Intersection over Union (IoU) metric and its extensions are very sensitive to the location deviation of the tiny objects, which drastically deteriorates the quality of label assignment when used in anchor-based detectors. To tackle this problem, we propose a new evaluation metric dubbed Normalized Wasserstein Distance (NWD) and a new RanKing-based Assigning (RKA) strategy for tiny object detection. The proposed NWD-RKA strategy can be easily embedded into all kinds of anchor-based detectors to replace the standard IoU threshold-based one, significantly improving label assignment and providing sufficient supervision information for network training. Tested on four datasets, NWD-RKA can consistently improve tiny object detection performance by a large margin. Besides, observing prominent noisy labels in the Tiny Object Detection in Aerial Images (AI-TOD) dataset, we are motivated to meticulously relabel it and release AI-TOD-v2 and its corresponding benchmark. In AI-TOD-v2, the missing annotation and location error problems are considerably mitigated, facilitating more reliable training and validation processes. Embedding NWD-RKA into DetectoRS, the detection performance achieves 4.3 AP points improvement over state-of-the-art competitors on AI-TOD-v2.

Introduction

In aerial imagery, "tiny" objects—such as vehicles, ships, or pedestrians viewed from high altitudes—often occupy less than 16×16 pixels. While modern object detectors have reached high levels of maturity for standard-sized objects, they struggle significantly with these tiny instances. The primary bottleneck is the lack of discriminative features and, more importantly, the failure of standard label assignment strategies during training. This paper identifies the "Tyranny of the Pixel," where the standard Intersection over Union (IoU) metric becomes an unreliable supervisor for objects at such small scales.

The Tyranny of the Pixel: IoU Sensitivity

The core issue with tiny object detection lies in how detectors assign "positive" or "negative" labels to anchor boxes. Most detectors rely on an IoU threshold (e.g., IoU > 0.5). However, for tiny objects, IoU is hypersensitive to even minor pixel shifts.

Sensitivity of IoU to location deviation for tiny vs. normal scale objects.

As illustrated in the figure above, a mere 3-pixel shift for a 5×8 pixel vehicle can cause the IoU to plummet from 0.54 to 0.14. In contrast, a similar relative shift for a large playground only moves the IoU from 0.97 to 0.91. This sensitivity leads to three critical problems:

  1. Label Imbalance: Tiny objects often fail to meet the IoU threshold, resulting in zero positive training samples.
  2. Scale Imbalance: Larger objects naturally overlap with more anchors, biasing the network toward larger scales.
  3. Lack of Gradient: When an anchor and a tiny object do not overlap, the IoU is exactly zero, providing no directional information for the optimizer to move the bounding box closer.

Proposed Methodology: NWD and RKA

To overcome the limitations of IoU, the authors propose a two-pronged strategy: Normalized Wasserstein Distance (NWD) and Ranking-based Assigning (RKA).

1. From Boxes to Gaussians (NWD)

Instead of treating bounding boxes as rigid rectangles, NWD models them as 2D Gaussian distributions. The center of the box represents the mean, while the width and height determine the variance. By calculating the 2nd-order Wasserstein distance between these Gaussians and applying an exponential nonlinear transformation, the authors create a similarity metric that ranges from 0 to 1.

Unlike IoU, NWD is smooth and continuous. It can measure similarity even when boxes have zero overlap, and it is far less sensitive to minor pixel deviations. Crucially, NWD-deviation curves for different scales overlap almost perfectly, making the metric scale-invariant.

2. Ranking-based Assigning (RKA)

Standard detectors use a hard IoU threshold to select positive samples. RKA replaces this with a ranking strategy. For every ground-truth object, RKA ranks all anchor candidates by their NWD score and selects the top-k anchors as positive samples. This ensures that every object, regardless of its size, receives exactly $k$ positive training samples, effectively solving the label imbalance problem.

AI-TOD-v2: A New Benchmark

Recognizing that existing datasets contained noisy labels that hindered tiny object research, the authors released AI-TOD-v2. They meticulously relabeled the original AI-TOD dataset, adding over 50,000 previously missed annotations and correcting location errors. With a mean object size of just 12.7 pixels, AI-TOD-v2 stands as the most challenging benchmark for tiny object detection to date.

Experimental Results

The NWD-RKA strategy was evaluated across four major aerial datasets: AI-TOD-v2, AI-TOD, VisDrone2019, and DOTA-v2.0. The results demonstrate a significant leap in performance:

  • SOTA Achievement: Embedding NWD-RKA into the DetectoRS framework achieved 24.7 AP on AI-TOD-v2, a 4.3-point improvement over previous state-of-the-art methods.
  • Baseline Boost: Adding the strategy to a standard Faster R-CNN increased its performance from 12.8 AP to 21.4 AP—a relative improvement of 67%.
  • Efficiency: Remarkably, NWD-RKA introduces zero additional computational cost during inference, as it only modifies the training supervision process.

Conclusion

By rethinking the fundamental metric used for label assignment, this research provides a robust solution for detecting tiny objects in aerial imagery. The transition from discrete pixel-based IoU to continuous distribution-based NWD, paired with the RKA strategy, ensures that tiny objects are no longer ignored during training. Coupled with the new AI-TOD-v2 benchmark, this work sets a new standard for high-precision aerial surveillance and remote sensing.

Summary updated

BibTeX
@misc{xu2022detecting,
  author = {Chang Xu and Jinwang Wang and Wen Yang and Huai Yu and Lei Yu and Gui-Song Xia},
  title = {{Detecting tiny objects in aerial images: A normalized Wasserstein distance and a new benchmark}},
  year = {2022},
  eprint = {2206.13996},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.13996},
}
Figure