Introduction
In the field of anchor-based object detection, the process of label assignment—determining which anchors are considered "positives" (objects) and which are "negatives" (background)—is critical for model performance. Traditional methods rely on a fixed Intersection over Union (IoU) threshold, typically 0.5. However, static thresholds fail to account for the diverse geometric properties of objects, such as extreme aspect ratios or varying scales.
While advanced techniques like Adaptive Training Sample Selection (ATSS) have introduced statistical thresholds based on anchor distributions, they remain tethered to static, pre-defined anchors. This creates a "quality gap" where high-quality predictions generated from mediocre anchors are ignored during training, preventing the model from prioritizing its best outputs.
Proposed Method: Dynamic ATSS
To bridge the gap between static priors and real-time model performance, this paper introduces Dynamic ATSS. The core innovation is the use of a Combined IoU (CIoU) metric to guide label assignment.
Combined IoU (CIoU)
The assignment strategy incorporates both the static anchor quality and the model's current predictive capability:
- Anchor IoU (AIoU): The overlap between static anchors and ground truth boxes.
- Predicted IoU (PIoU): The overlap between the model’s current predicted boxes and ground truth.
- Summation: The final metric is defined as $CIoU = PIoU + AIoU$.
Adaptive Thresholding and Soft Targets
Rather than using a global constant, Dynamic ATSS calculates adaptive thresholds by summing the means and standard deviations of both $AIoU$ and $PIoU$ across candidate samples. This allows the positive/negative boundary to evolve as the model improves its localization accuracy. Furthermore, the authors utilize "soft targets" via Quality Focal Loss (QFL) or Varifocal Loss (VFL), where the classification target is the predicted IoU, aligning classification scores more closely with localization quality.
Experimental Results
The method was rigorously evaluated on the MS COCO dataset (train2017 for training, val2017 and test-dev for benchmarking) using a ResNet-50 backbone.
Performance Gains
Dynamic ATSS demonstrated consistent improvements over baseline models:
- Baseline Improvement: Integrating CIoU into the standard ATSS framework increased Average Precision (AP) from 39.06 to 39.75.
- State-of-the-Art Synergy: When applied to Varifocal Net (VFNet), the method achieved 41.6 AP, outperforming the original VFNet (41.3 AP).
- Object Scale: The most significant gains were observed in large objects ($AP_l$), with an improvement of approximately 2%.
Efficiency
A key advantage of Dynamic ATSS is that the dynamic assignment logic is confined to the training phase. Consequently, there is zero additional computational overhead during inference, maintaining the original model's speed (e.g., 80ms per image on an NVIDIA Tesla P100).
Discussion and Key Insights
The researchers identified two critical factors for success:
- Predictions as a Guide: The model's own predictions are often a better indicator of potential positive samples than static anchors. By rewarding successful regressions, the model learns to prioritize high-quality outputs.
- The Stabilizing Role of Anchors: Relying solely on predictions ($PIoU$) during early training leads to a catastrophic drop in performance (AP falling to 29.39) because initial predictions are essentially noise. The static $AIoU$ acts as a necessary "prior" that stabilizes the learning process until predictions become reliable.
Conclusion and Future Work
Dynamic ATSS effectively reduces the discrepancy between classification and localization by incorporating real-time predictions into the label assignment process. While highly effective for medium and large objects, the authors noted that improvements for small objects ($AP_s$) were less pronounced. Future research will focus on refining dynamic thresholding for small-scale detection and exploring time-varying weights for the contribution of predictions versus anchors throughout the training cycle.
Summary updated