DSLA: Dynamic smooth label assignment for efficient anchor-free object detection

Hu Su, Yonghao He, Rui Jiang, Jiabin Zhang, Wei Zou, Bin Fan · DOI

TL;DR

DSLA (Dynamic Smooth Label Assignment) addresses the fundamental misalignment between classification and localization quality in anchor-free object detectors. By replacing rigid binary labels with dynamic, continuous scores that couple centerness priors with real-time IoU predictions, DSLA simplifies detector architectures while significantly boosting accuracy on benchmarks like MS COCO.

What Problem Does This Paper Address?

Modern anchor-free detectors, such as FCOS, treat object detection as a dense per-pixel task: each pixel on a feature map predicts a category label (classification) and bounding box coordinates (regression). However, the authors identify two critical "inconsistencies" in this approach:

  1. Classification Inconsistency: Adjacent pixels often have nearly identical receptive fields but may be assigned completely different binary labels (e.g., one is "positive" inside a box, its neighbor is "negative" outside). This forces the network to produce wildly different outputs for similar inputs, leading to conflicting gradients and training instability.
  2. Quality Estimation Inconsistency: To rank boxes during inference (NMS), detectors often use a "centerness" branch. However, a pixel at the center of a box might be on the background (e.g., the space between a person's arm and torso), leading to a high centerness score but a poorly localized box. This causes NMS to erroneously suppress accurately localized boxes in favor of less accurate ones that happen to be more "centered."
Figure 2: Misalignment between centerness and localization. A more centered point (yellow) has a lower IoU than a less centered point (green), yet centerness would favor the yellow box.

Methods

The authors propose Dynamic Smooth Label Assignment (DSLA) to bridge these gaps through three main innovations:

  • Interval Relaxation: Instead of a hard cutoff for positive/negative samples and feature levels, they introduce an adjustment factor ($\kappa$) to create a linear, smooth transition for labels. This ensures that adjacent samples receive similar supervision.
  • Core Zone: To prevent small objects from being ignored due to low confidence, they define a "core zone" (a square the size of the feature map stride) at the center of every ground-truth box where the centerness score is fixed to 1.0.
  • Dynamic IoU Coupling: During training, the model calculates the actual Intersection-over-Union (IoU) between its predicted boxes and the ground truth. This dynamic IoU is multiplied by the smoothed centerness label to create the final supervision signal.

Crucially, this allows the classification branch to absorb the quality estimation task, eliminating the need for a separate centerness branch and simplifying the overall architecture.

Datasets

The method was evaluated exclusively on the MS COCO benchmark, using the standard 115k images for training and reporting results on the 5k validation and 20k test-dev sets. The authors used ResNet-50, ResNet-101, ResNeXt-101, and Swin-S as backbones to demonstrate the method's versatility.

Key Insights and Ideas

  • Soft Labels for Dense Prediction: Receptive fields of adjacent pixels overlap significantly. Using continuous labels in $[0, 1]$ rather than binary $\{0, 1\}$ respects the spatial correlation of the feature maps and reduces gradient conflict.
  • Centerness as a Prior, IoU as the Target: While IoU is the ultimate measure of quality, it is unstable and low in early training. DSLA uses centerness to stabilize the early stages and dynamically shifts toward IoU-based supervision as the model matures.
  • Architecture Efficiency: By supervising the classification branch with a quality-aware label, the separate centerness branch becomes redundant. This makes the model faster and ensures that the score used for NMS ranking is exactly what the model was trained to optimize.
Figure 1: Comparison of FCOS and DSLA. DSLA (bottom row) produces smoother label transitions and more consistent classification scores compared to the baseline (top row).

Key Results

DSLA consistently outperformed baselines across various anchor-free architectures:

  • FCOS Baseline: Improved mAP from 36.6% to 38.1% (+1.5%) on ResNet-50.
  • FCOSv2: On a ResNet-101 backbone, DSLA boosted performance from 41.5% to 44.1% mAP.
  • Small Object Detection: The "Core Zone" strategy led to noticeable gains in $AP_S$ (Average Precision for small objects), as it ensures center points of small objects maintain high confidence.
  • State-of-the-Art Comparison: When combined with Deformable Convolution (DCN) and a Swin-S backbone, DSLA reached 49.2% mAP, outperforming other one-stage detectors like GFL and ATSS.

Limitations and Future Work

  • Hyper-parameter Sensitivity: While the authors claim the model is relatively insensitive to the adjustment factor $\kappa$, it still introduces a new hyper-parameter that may require tuning for different datasets.
  • Early Training Vibrations: The paper notes that IoU scores are extremely low and volatile in early training, which could potentially destabilize the model if the centerness prior isn't strong enough.
  • Future Directions: The authors suggest extending this smooth label assignment logic to anchor-based detectors and exploring more complex ways to combine spatial priors (centerness) with localization quality (IoU).

Summary updated

BibTeX
@article{su2022dsla,
  author = {Hu Su and Yonghao He and Rui Jiang and Jiabin Zhang and Wei Zou and Bin Fan},
  title = {{DSLA: Dynamic smooth label assignment for efficient anchor-free object detection}},
  journal = {Pattern Recognition},
  year = {2022},
  doi = {10.1016/j.patcog.2022.108868},
}
Figure