OTA: Optimal Transport Assignment for Object Detection

Zheng Ge, Songtao Liu, Zeming Li, Osamu Yoshie, Jian Sun

Introduction

In object detection, "label assignment" is the critical process of determining which anchors or feature points should be treated as positive samples (representing an object) and which should be negative (representing background) during training. Traditional methods rely on static, hand-crafted rules like Intersection-over-Union (IoU) thresholds. While recent "dynamic" methods adapt based on model predictions, they often treat each ground-truth (GT) object independently. This local approach creates a significant blind spot: ambiguous anchors. When objects overlap, a single anchor might be a strong candidate for multiple objects. Resolving this with simplistic rules ignores global context and can lead to sub-optimal training gradients.

Methodology: Label Assignment as Optimal Transport

OTA redefines label assignment as a global optimization problem using Optimal Transport (OT) theory. This framework seeks the most efficient way to match "suppliers" (ground-truth objects) to "demanders" (anchors).

Overview of the OTA framework including the cost matrix and Sinkhorn-Knopp iteration.

The OT Formulation

  • Suppliers and Demanders: Each GT object acts as a supplier holding $k$ units of "positive labels." Each anchor is a demander requiring 1 unit. A special "background supplier" provides negative labels to satisfy the remaining demand.
  • Cost Matrix: The transportation cost between a GT object and an anchor is defined as the weighted sum of classification and regression losses. Low cost indicates the anchor is already well-suited to predict that specific object.
  • Global Optimization: The global minimum cost for the entire image is found using the Sinkhorn-Knopp Iteration, an efficient algorithm that runs on GPUs.
  • Dynamic $k$ Estimation: Instead of a fixed $k$, OTA estimates the number of positive samples per object by summing IoU values of the top-20 candidate anchors. This allows the model to naturally assign more labels to easier or larger objects.

Experimental Results

The authors evaluated OTA on MS COCO 2017 and the CrowdHuman dataset, focusing on scenarios where overlapping objects create high ambiguity.

Qualitative comparison showing OTA's superior handling of ambiguous regions compared to ATSS and PAA.

Performance Benchmarks

  • MS COCO: Using a standard FCOS detector, OTA achieved 40.7% mAP (1× schedule), surpassing other dynamic strategies like ATSS (39.4%) and PAA (40.1%).
  • Crowded Scenes: On CrowdHuman, OTA reached a 46.6% Missing Rate (MR), significantly outperforming Faster R-CNN and other one-stage detectors. This confirms its ability to resolve conflicts in highly overlapping scenarios.
  • Efficiency: OTA adds zero overhead to inference. During training, it only increases computation time by less than 20% due to the efficient Sinkhorn-Knopp solver.

Conclusion

OTA shifts the paradigm of label assignment from independent local decisions to a global optimization framework. By treating assignment as an Optimal Transport problem, it naturally resolves ambiguities in crowded scenes and improves overall detection accuracy. While slightly more complex to implement than traditional methods, its robustness and performance gains make it a powerful tool for modern object detection pipelines.

Summary updated

BibTeX
@inproceedings{ge2021ota,
  author = {Zheng Ge and Songtao Liu and Zeming Li and Osamu Yoshie and Jian Sun},
  title = {{OTA: Optimal Transport Assignment for Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00037},
}
Figure