Segmentation is All You Need

Yuxiang Wu, Zehua Cheng, Zhenghua Xu, Weiyang WangarXiv 2019

TL;DR

This paper introduces WSMA-Seg, the first anchor-free and NMS-free object detection model that leverages segmentation for improved robustness, especially in challenging "extreme case" scenarios like occlusion and poor lighting. By converting weak bounding box annotations into rich "multimodal annotations" and employing a novel multi-scale pooling segmentation backbone, WSMA-Seg achieves state-of-the-art performance while simplifying the detection pipeline.

What Problem Does This Paper Address?

Traditional deep learning object detectors heavily rely on region proposal mechanisms (like RPNs) to generate candidate bounding boxes, followed by Non-Maximum Suppression (NMS) to filter redundant detections. While effective in normal conditions, this pipeline struggles with "extreme cases" such as complex occlusions, poor illumination, or detecting very small objects. The core issues are:

  1. Noisy Annotations: Bounding box annotations in extreme cases often include significant background noise, making it harder for models to learn accurate object boundaries.
  2. NMS Brittleness: NMS requires careful threshold tuning, which is difficult to generalize across diverse and complex scenarios. A fixed threshold can either miss valid detections or keep too many false positives.

The authors aim to overcome these limitations by proposing a fundamentally different approach that avoids both anchor boxes and NMS.

Methods

The proposed WSMA-Seg approach operates in two phases: training and testing.

Training Phase: * Multimodal Annotations: The key innovation here is transforming standard, weakly supervised bounding box annotations into "multimodal annotations." These are pixel-level, segmentation-like masks with three channels: * Interior Mask: Marks pixels inside the bounding box. * Boundary Mask: Marks pixels on the boundary of the bounding box. * Boundary on Interior Mask: Marks pixels on the boundary that are also within the bounding box. These annotations are generated from inscribed ellipses within the bounding boxes, providing richer geometric information than simple boxes.

  • Segmentation Model Training: These multimodal annotations are used as labels to train an underlying segmentation model. This model learns to output "multimodal heatmaps" (one for each of the three channels).

Testing Phase: * Heatmap to Instance-Aware Segmentation: The trained segmentation model takes a test image and outputs the three heatmaps. These are then combined using a pixel-level logic operation ($I \oplus (B \wedge O)$) to create an "instance-aware segmentation map." * Contour Tracing: A novel "run-data-based (RDB) following algorithm" is employed to trace the contours of objects from the instance-aware segmentation map. This algorithm is designed to be more efficient than traditional scan-based methods, especially for images with many objects. * Bounding Box Generation: Finally, bounding boxes are generated as the circumscribed quadrilaterals of the traced object contours.

Underlying Segmentation Model (MSP-Seg): To ensure accurate segmentation, the authors propose a "Multi-Scale Pooling Segmentation" (MSP-Seg) model. This model is an enhancement of the Hourglass network, incorporating "multi-scale blocks" within its skip connections. These blocks use multiple pooling kernel sizes (1x1, 3x3, 5x5, 7x7) to capture features at various scales, leading to more robust feature representations and improved segmentation accuracy, particularly for small objects.

Datasets

The paper evaluates WSMA-Seg on three benchmark datasets:

  • Rebar Head: A dataset with challenging occlusion, small objects, and poor annotations.
  • WIDER Face: A large-scale face detection dataset known for its variability in scale, pose, and occlusion.
  • MS COCO (test-dev split): A comprehensive dataset for general object detection, used to evaluate performance across different object sizes and recall metrics.

Key Insights and Ideas

  • Segmentation as a Superior Representation: The core idea is that pixel-level segmentation information, even when derived from weak bounding box supervision, is inherently more robust and informative than bounding boxes alone, especially for complex scenes.
  • Eliminating NMS: By directly generating object contours from segmentation maps, the need for NMS is completely removed. This simplifies the pipeline and avoids the hyperparameter tuning challenges associated with NMS.
  • Multimodal Annotations for Instance Awareness: The three-channel multimodal annotation scheme is crucial for enabling instance-aware segmentation from weakly supervised bounding boxes, allowing for the separation of individual objects.
  • Multi-Scale Features for Robustness: The MSP-Seg backbone's ability to aggregate features from multiple scales is key to handling variations in object size and improving segmentation accuracy in challenging conditions.
  • Efficiency of RDB Contour Tracing: The proposed RDB algorithm offers a significant speedup and memory reduction for contour tracing compared to traditional methods, making the overall detection pipeline more practical.

Key Results

  • State-of-the-Art Performance: WSMA-Seg consistently outperforms state-of-the-art anchor-based detectors on the Rebar Head, WIDER Face, and MS COCO datasets across various metrics (F1 Score, AP, AR).
  • Rebar Head: Achieved the best F1 Score (98.83%) with significantly fewer parameters and training epochs compared to Faster R-CNN and Cascade R-CNN.
  • WIDER Face: Reached high F1 scores (e.g., 94.70% Easy, 93.41% Medium, 87.23% Hard), outperforming twelve other state-of-the-art methods.
  • MS COCO: Demonstrated superior performance in challenging metrics like AP for small objects (APS) and overall AP, while maintaining competitive recall (AR). For instance, WSMA-Seg achieved an AP of 38.1, outperforming baselines like Faster R-CNN w/ TDM (36.8) and CornerNet511 (37.8).
  • Parameter Efficiency: WSMA-Seg is shown to be significantly more parameter-efficient than existing anchor-based methods.

Limitations and Future Work

  • Dependence on Segmentation Quality: The paper acknowledges that the performance of WSMA-Seg is directly tied to the accuracy of its underlying segmentation model (MSP-Seg).
  • Future Work: The authors suggest that the MSP-Seg model, being a highly accurate segmentation model, could be widely applied to various other segmentation tasks beyond object detection. The paper also implies that further improvements to the multimodal annotation generation or the RDB tracing algorithm could lead to even better results.

Summary updated

Abstract

Region proposal mechanisms are essential for existing deep learning approaches to object detection in images. Although they can generally achieve a good detection performance under normal circumstances, their recall in a scene with extreme cases is unacceptably low. This is mainly because bounding box annotations contain much environment noise information, and non-maximum suppression (NMS) is required to select target boxes. Therefore, in this paper, we propose the first anchor-free and NMS-free object detection model called weakly supervised multimodal annotation segmentation (WSMA-Seg), which utilizes segmentation models to achieve an accurate and robust object detection without NMS. In WSMA-Seg, multimodal annotations are proposed to achieve an instance-aware segmentation using weakly supervised bounding boxes; we also develop a run-data-based following algorithm to trace contours of objects. In addition, we propose a multi-scale pooling segmentation (MSP-Seg) as the underlying segmentation model of WSMA-Seg to achieve a more accurate segmentation and to enhance the detection accuracy of WSMA-Seg. Experimental results on multiple datasets show that the proposed WSMA-Seg approach outperforms the state-of-the-art detectors.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Rebar HeadWSMA-Seg (stack=2, base=40, depth=5)F1 Score98.83%Image Segmentation · split: test · base=40 · depth=5 · stack=2
Source quote
L326: WSMA-Seg(stack=2,base=40,depth=5) │ 5.8M │ 70 │ 98.83%
WIDER FACE · EasyWSMA-SegF1 score94.70Face Detection · difficulty=easy
Source quote
L337: The results show that our proposed WSMA-Seg outperforms the state-of-the-art baselines in all three categories, reaching 94.70, 93.41, and 87.23 in Easy, Medium, and Hard categories, respectively.
WIDER FACE · MediumWSMA-SegF1 score93.41Face Detection · difficulty=medium
Source quote
L337: The results show that our proposed WSMA-Seg outperforms the state-of-the-art baselines in all three categories, reaching 94.70, 93.41, and 87.23 in Easy, Medium, and Hard categories, respectively.
WIDER FACE · HardWSMA-SegF1 score87.23Face Detection · difficulty=hard
Source quote
L337: The results show that our proposed WSMA-Seg outperforms the state-of-the-art baselines in all three categories, reaching 94.70, 93.41, and 87.23 in Easy, Medium, and Hard categories, respectively.
COCO · MS COCO · test-devWSMA-Seg (MSP-Seg backbone)AP38.1Object Detection · split: test-dev · backbone=MSP-Seg
Source quote
L464: WSMA-Seg │ MSP-Seg │ 38.1 │ 58.2 │ 40.7 │ 22.5 │ 41.0 │ 51.9
COCO · MS COCO · test-dev, small objectsWSMA-Seg (MSP-Seg backbone)AP^s22.5Object Detection · split: test-dev · backbone=MSP-Seg · object-size=small (<32²)
Source quote
L464: WSMA-Seg │ MSP-Seg │ 38.1 │ 58.2 │ 40.7 │ 22.5 │ 41.0 │ 51.9
BibTeX
@misc{wu2019segmentation,
  author = {Yuxiang Wu and Zehua Cheng and Zhenghua Xu and Weiyang Wang},
  title = {{Segmentation is All You Need}},
  year = {2019},
  eprint = {1904.13300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.13300},
}
Figure