End-to-End Object Detection With Fully Convolutional Network

Jianfeng Wang, Lin Song, Zeming Li, Hongbin Sun, Jian Sun, Nanning Zheng

Abstract

Traditional object detectors rely on hand-crafted Non-Maximum Suppression (NMS) to remove duplicate predictions, preventing true end-to-end optimization. This paper introduces a method to achieve end-to-end object detection using standard Fully Convolutional Networks (FCNs). By combining a dynamic "one-to-one" label assignment strategy (POTO) with a novel 3D Max Filtering (3DMF) module, the proposed approach matches the performance of state-of-the-art NMS-based detectors while significantly outperforming them in crowded environments.

Introduction: The NMS Bottleneck

Most modern object detectors, such as FCOS or RetinaNet, utilize a "one-to-many" training strategy where multiple candidate predictions are assigned to a single ground-truth object. While this encourages robust feature learning, it results in numerous duplicate boxes during inference. To address this, researchers typically employ Non-Maximum Suppression (NMS), a non-differentiable post-processing heuristic.

Comparison between traditional NMS-based detection and the proposed end-to-end FCN approach.

NMS presents several challenges: it prevents end-to-end optimization, is difficult to tune for crowded scenes where objects naturally overlap, and treats duplicate removal as an external step rather than a learned internal logic. While Transformer-based models like DETR offer end-to-end detection, they often suffer from long training times and poor performance on small objects. This research demonstrates that a simple, efficient FCN can achieve end-to-end detection without NMS.

Methodology

The authors propose three primary components to enable NMS-free detection within an FCN framework.

The overall architecture of the proposed end-to-end detector, featuring POTO label assignment, 3DMF, and auxiliary loss.

1. Prediction-aware One-To-One (POTO) Label Assignment

Unlike standard methods that assign multiple pixels to one object, POTO implements a dynamic one-to-one assignment. It evaluates the "matching quality" of candidates using a weighted geometric mean of classification confidence and regression (IoU) accuracy. This allows the network to autonomously select the best-performing prediction as the sole foreground sample.

2. 3D Max Filtering (3DMF)

Standard convolutions often struggle to distinguish overlapping objects due to translation invariance. 3DMF is a differentiable module that performs max-pooling-like operations across spatial dimensions and feature pyramid scales. This introduces a "local competition" mechanism that helps the network suppress duplicate activations across different levels of the Feature Pyramid Network (FPN) before they are converted into bounding boxes.

3. Auxiliary Loss

To overcome the "sparse" supervision challenge inherent in one-to-one assignment, the authors incorporate a standard "one-to-many" auxiliary loss during training. This branch provides a richer gradient signal to the backbone and is discarded during inference, ensuring the final model remains a pure, efficient FCN.

Experimental Results

The model, termed "DeFCN," was evaluated on MS COCO and the CrowdHuman dataset.

  • MS COCO: DeFCN matched the FCOS baseline with NMS, achieving approximately 41.1 mAP on ResNet-50. This confirms that NMS is not a prerequisite for high-performance object detection in FCNs.
  • CrowdHuman: In crowded scenarios, DeFCN significantly outperformed the baseline, achieving a 3.0% gain in $AP_{50}$ and a 6.0% improvement in mean Miss Rate (mMR). By avoiding hard IoU thresholds, the model is better equipped to distinguish between closely packed objects.
  • Efficiency: DeFCN follows standard training schedules (e.g., 180k iterations), making it significantly more practical than DETR, which often requires 500 epochs to converge.

Discussion and Insights

The core insight of this work is that the performance drop typically associated with removing NMS is a result of "one-to-many" training logic rather than architectural limitations. 3DMF effectively acts as an internal "soft NMS," while the auxiliary loss provides the best of both worlds: rich feature representation and clean, single-prediction output.

Limitations

Despite its successes, the model shows a slight performance gap on very small objects compared to highly tuned NMS-based systems. Additionally, the reliance on an auxiliary loss suggests that pure one-to-one feature learning remains a challenge for convolutional architectures. Future work may focus on further refining the dynamic matching quality parameters to improve robustness across all object scales.

Summary updated

BibTeX
@inproceedings{wang2021end,
  author = {Jianfeng Wang and Lin Song and Zeming Li and Hongbin Sun and Jian Sun and Nanning Zheng},
  title = {{End-to-End Object Detection With Fully Convolutional Network}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01559},
}
Figure