TL;DR
FCOS (Fully Convolutional One-Stage Object Detection) is a simple, anchor-free object detector that treats detection as a per-pixel prediction problem, much like semantic segmentation. By eliminating complex anchor box hyper-parameters and introducing a novel "center-ness" branch to filter low-quality detections, it achieves state-of-the-art performance while being significantly easier to implement and train.
What Problem Does This Paper Address?
For years, the "de facto" standard for object detection has relied on anchor boxes—pre-defined rectangles of various sizes and aspect ratios tiled across an image. While successful, anchors introduce several headaches:
- Hyper-parameter Sensitivity: Detection performance is highly sensitive to the chosen sizes and ratios of anchors, requiring careful heuristic tuning.
- Generalization Issues: Fixed anchors struggle with objects of extreme shapes and don't transfer well to new tasks with different object scales.
- Imbalance: To ensure high recall, thousands of anchors are placed, but only a tiny fraction overlap with real objects, creating a massive imbalance between positive and negative samples during training.
- Computational Complexity: Calculating Intersection-over-Union (IoU) for thousands of anchors is computationally expensive.
The authors ask: Can we solve object detection in a "neat" per-pixel fashion, similar to how Fully Convolutional Networks (FCNs) handle semantic segmentation?
Methods
FCOS moves away from anchors entirely. Instead of predicting offsets for a box, it predicts a 4D vector $(l, t, r, b)$ at every foreground pixel, representing the distances from that pixel to the left, top, right, and bottom boundaries of the bounding box.
Key components of the architecture include:
- Multi-level Prediction with FPN: To handle different object scales and resolve "ambiguity" (when a pixel falls into multiple overlapping ground-truth boxes), FCOS uses a Feature Pyramid Network (FPN). Different levels of the pyramid are responsible for different size ranges of objects.
- Center-ness Branch: This is the paper's most novel contribution. The authors observed that pixels far from an object's center often produce low-quality bounding box predictions. They added a single-layer branch that predicts a "center-ness" score (from 0 to 1) for each pixel. During testing, this score is multiplied by the classification score to down-weight and filter out these low-quality boxes.
- Shared Heads: The detection heads (classification, regression, and center-ness) are shared across all FPN levels, making the model parameter-efficient.
Datasets
The model was trained and evaluated on the MS-COCO (Common Objects in Context) benchmark, specifically using the trainval35k split for training and reporting main results on the test-dev split.
Key Insights and Ideas
- Anchor-free is viable: FCOS proves that the "anchor-based" paradigm isn't a requirement for high-performance detection. By treating every pixel inside a box as a positive sample, the model has more data to learn from.
- Center-ness is the "Secret Sauce": Without the center-ness branch, anchor-free detectors often lag behind. By providing a way to suppress "noisy" predictions from the edges of objects, FCOS achieves a cleaner set of final detections.
- Unified Vision Framework: By making detection look like segmentation, FCOS brings us closer to a unified framework for many instance-level tasks (like keypoint detection or instance segmentation), where ideas can be easily shared across sub-fields.
Key Results
- State-of-the-Art Performance: FCOS with a ResNeXt-64x4d-101 backbone achieved 44.7% AP on COCO, surpassing previous one-stage detectors like RetinaNet.
- Simplicity Wins: Even a "pure" version of FCOS (without extra bells and whistles) performs on par with RetinaNet while having 9x fewer output variables.
- Better RPN: When used as a Region Proposal Network (RPN) in two-stage detectors (like Faster R-CNN), FCOS significantly outperforms traditional anchor-based RPNs.
- Ablation Success: Table 3 shows that adding simple improvements like Group Normalization (GN) and "center sampling" (only treating the central portion of a box as positive) leads to steady gains in accuracy.
Limitations and Future Work
- Ambiguity: While FPN resolves most overlapping box issues, there is still a theoretical limit when two objects of the same category overlap significantly at the same scale level.
- Hyper-parameter Tuning: While FCOS removes anchor hyper-parameters, it introduces others (like the scale ranges for FPN levels), though the authors argue these are less sensitive.
- Future Extensions: The authors suggest that the FCOS framework is naturally suited for extension to other instance-level tasks like instance segmentation and key-point detection.
Summary updated