One-to-Few Label Assignment for End-to-End Dense Detection

Shuai Li, Minghan Li, Ruihuang Li, Chenhang He, Lei Zhang · DOI

Abstract

One-to-one (o2o) label assignment is a cornerstone of transformer-based end-to-end detection and has recently been adapted for fully convolutional detectors. However, o2o can impede feature learning efficiency due to the limited number of positive samples. This paper introduces One-to-Few (o2f) label assignment, a strategy designed for end-to-end dense detection. By defining a set of "soft anchors" that act as both positive and negative samples with dynamically adjusted weights, o2f balances representation learning in early training stages with duplicate prediction removal in later stages. Experiments on COCO and CrowdHuman datasets demonstrate that o2f achieves superior performance and efficiency compared to existing one-to-one matching methods.

Introduction

In object detection, label assignment determines which spatial anchors are responsible for predicting ground-truth objects. Historically, detectors used one-to-many (o2m) assignment, providing rich supervision but requiring a post-processing step called Non-Maximum Suppression (NMS) to remove duplicate predictions. While NMS is effective, it is computationally expensive and difficult to tune in crowded scenes.

To eliminate NMS, recent end-to-end detectors use one-to-one (o2o) assignment, where only a single anchor is labeled positive. However, o2o often suffers from poor training efficiency and "label conflicts," where nearly identical anchors are forced into opposite labels, confusing the model's feature learning process.

Methodology: One-to-Few (o2f) Strategy

The proposed One-to-Few (o2f) strategy bridges the gap between o2m and o2o by categorizing anchors into three types: Certain Positive, Ambiguous, and Negative. The core innovation lies in the treatment of Ambiguous Anchors—a small set of top-scoring anchors semantically similar to the positive anchor.

Comparison of label assignment strategies (o2o, o2f, o2m) across training stages, illustrating the dynamic soft labels for ambiguous anchors.

As illustrated above, these ambiguous anchors receive dynamic soft labels. During the early training stage, they are given higher positive weights to provide more supervision signals, aiding in robust representation learning. As training progresses, these weights are gradually decayed, forcing the anchors to contribute more to duplicate prediction removal. By the end of training, the model learns to naturally suppress secondary predictions, enabling NMS-free inference.

Architectural Integration

The o2f strategy is implemented on top of a standard fully convolutional detector (e.g., FCOS) with minimal architectural changes. The primary modification involves the addition of a few convolutional layers in the "centerness" branch to facilitate the one-to-few assignment logic.

The overall architecture of the detector, showing the integration of the one-to-few assignment within the classification and regression heads.

Experimental Results

The researchers evaluated o2f on two primary benchmarks: MS COCO and CrowdHuman.

  • MS COCO: o2f achieved 39.0 AP using a ResNet-50 backbone without NMS, outperforming the leading o2o method, POTO (37.6 AP).
  • CrowdHuman: In highly crowded environments where NMS typically fails, o2f outperformed NMS-based FCOS by 10 points in mAR (mean Average Recall).
  • Efficiency: The o2f head is computationally efficient, achieving 35.5 FPS on a Tesla V100 GPU, compared to DeFCN’s 33.0 FPS.
  • Generalization: When applied to instance segmentation via the CondInst framework, o2f boosted performance by 3.1 AP on the COCO validation set.

Conclusion

One-to-Few label assignment effectively manages the fundamental trade-off between representation learning and duplicate removal in end-to-end detection. By utilizing dynamic soft labels, it enables high-performance dense detection without the need for NMS. While the performance is sensitive to the weight decay schedule, o2f represents a significant advancement in simplifying and improving the robustness of object detection pipelines, particularly in crowded scenarios.

Summary updated

BibTeX
@inproceedings{li2023one,
  author = {Shuai Li and Minghan Li and Ruihuang Li and Chenhang He and Lei Zhang},
  title = {{One-to-Few Label Assignment for End-to-End Dense Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.00710},
}
Figure