Similarity Distance-Based Label Assignment for Tiny Object Detection

Shuohao Shi, Qiang Fang, Tong Zhao, Xin Xu · DOI

Abstract

Detecting tiny objects (smaller than 16x16 pixels) remains a significant challenge in computer vision due to the limitations of the traditional Intersection over Union (IoU) metric. IoU is highly sensitive to minor spatial shifts at small scales, often leading to poor label assignment and suboptimal detector performance. This paper introduces Similarity Distance (SimD), a novel metric that replaces IoU by adaptively combining location and shape similarities. SimD eliminates the need for manual hyperparameter tuning through dataset-aware normalization and provides a continuous similarity score even for non-overlapping boxes. Experimental results on benchmarks like AI-TOD show that SimD significantly improves detection accuracy, particularly for "very tiny" objects, where it achieves a 4.1 AP boost over previous state-of-the-art methods.

Introduction

In aerial and drone-captured imagery, objects often appear as tiny clusters of pixels. Standard object detection frameworks rely on the Intersection over Union (IoU) metric to assign "anchor boxes" as positive or negative samples during training. However, for tiny objects, IoU becomes a bottleneck. A single-pixel shift can cause the IoU of a 4x4 pixel object to plummet, leading the model to ignore valid training samples. Furthermore, when anchors and ground truths do not overlap, IoU remains zero, providing no gradient for the model to learn from "near misses."

Comparison of detection results and different label assignment metrics: IoU, Centerness, and the proposed SimD.

While recent alternatives have attempted to model boxes as Gaussian distributions, they often require manually tuned hyperparameters that vary across datasets. To address these issues, we propose Similarity Distance (SimD), a metric designed to be scale-insensitive while maintaining high sensitivity to true object quality.

The SimD Metric

SimD is a comprehensive similarity measure that decomposes the relationship between an anchor and a ground truth (gt) box into two primary components: location similarity and shape similarity.

Dual Similarity Components

  1. Location Similarity ($sim_{location}$): This measures the Euclidean distance between the center points of the ground truth and the anchor box. By focusing on centers, the metric remains informative even when boxes have zero overlap.
  2. Shape Similarity ($sim_{shape}$): This measures the differences in width ($\Delta w$) and height ($\Delta h$) between the two boxes, ensuring that the assigned anchors closely match the aspect ratio and scale of the target object.

Adaptive Normalization and Scaling

The core innovation of SimD is its Adaptive Normalization. Instead of using fixed constants, the metric calculates normalization parameters based on the statistical distribution of the entire training dataset. This allows SimD to automatically adjust its sensitivity to the specific scales present in the data, whether it be satellite imagery or street-level drone footage. The combined distance is then mapped through an exponential function ($e^{-x}$) to produce a final score between 0 and 1, making it a seamless drop-in replacement for IoU in both training and post-processing (NMS).

The SimD workflow: combining location and shape similarity to produce a final score for label assignment (Positive, Ignore, or Negative).

Experimental Results

The effectiveness of SimD was evaluated across four major tiny object detection benchmarks: AI-TOD, AI-TODv2, SODA-D, and VisDrone2019.

On the AI-TOD dataset, which features objects with an average size of only 12.8 pixels, SimD achieved state-of-the-art results. Using a DetectoRS backbone, the method reached 26.6 AP, surpassing the previous best method (RFLA) by 1.8 points. Most notably, for "very tiny" objects (2-8 pixels), SimD improved accuracy by 4.1 AP points.

Ablation studies confirmed that the adaptive normalization is a critical component, providing a 3.5 AP boost over a baseline version of the metric. Furthermore, SimD proved its versatility by enabling standard detectors like Faster R-CNN—which typically fail completely on very tiny objects (0.0 AP)—to achieve a respectable 11.9 AP.

Conclusion

Similarity Distance (SimD) offers a robust and adaptive solution to the "Zero IoU" and scale-sensitivity problems in tiny object detection. By focusing on high-quality samples through dataset-aware normalization, it significantly reduces false positives while improving the recall of extremely small targets. Future work will explore making the assignment thresholds themselves dynamic to further enhance robustness across diverse object categories and scenes.

Summary updated

BibTeX
@misc{shi2024similarity,
  author = {Shuohao Shi and Qiang Fang and Tong Zhao and Xin Xu},
  title = {{Similarity Distance-Based Label Assignment for Tiny Object Detection}},
  year = {2024},
  eprint = {2407.02394},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.02394},
}
Figure