Abstract
We motivate and present the feature selective anchor-free (FSAF) module, a simple and effective building block for single-shot object detectors. It can be plugged into single-shot detectors with a feature pyramid structure. The FSAF module addresses two limitations brought up by conventional anchor-based detection: 1) heuristic-guided feature selection; and 2) overlap-based anchor sampling. The general concept of the FSAF module is online feature selection applied to the training of multi-level anchor-free branches. Specifically, an anchor-free branch is attached to each level of the feature pyramid, allowing box encoding and decoding in an anchor-free manner at an arbitrary level. During training, we dynamically assign each instance to the most suitable feature level. At the time of inference, the FSAF module can work independently or jointly with anchor-based branches. Experimental results on the COCO detection track show that our FSAF module performs better than anchor-based counterparts while being faster. When working jointly with anchor-based branches, the FSAF module robustly improves the baseline RetinaNet by a large margin under various settings while introducing nearly free inference overhead. The resulting best model achieves a state-of-the-art 44.6% mAP, outperforming all existing single-shot detectors on COCO.
Introduction: The Limitations of Anchor-Based Detection
Most modern object detectors utilize a Feature Pyramid Network (FPN) to handle objects across various scales. Traditionally, these systems rely on anchor boxes: pre-defined rectangles of fixed scales and aspect ratios. However, this approach introduces two significant bottlenecks:
- Heuristic-Guided Feature Selection: In standard anchor-based detectors, objects are assigned to specific pyramid levels based on hard-coded rules (e.g., box size). This is often suboptimal; for instance, two objects of nearly identical size (e.g., 50x50 vs 60x60 pixels) might be forced into different levels, ignoring their semantic content.
- Overlap-Based Sampling: Training involves matching objects to anchors based on Intersection-over-Union (IoU) overlap. This often forces the network to learn from "noisy" anchors that do not align well with the object's actual features.
The FSAF Module: Online Feature Selection
To overcome these limitations, we propose the Feature Selective Anchor-Free (FSAF) module. This module can be integrated into any single-shot detector with a feature pyramid, such as RetinaNet.
Architecture
The FSAF module adds two simple convolutional layers to each level of the feature pyramid: one for classification and one for regression. Crucially, these branches are anchor-free. Instead of matching to pre-defined boxes, they predict the distance to the box boundaries directly from each pixel location.
Online Feature Selection
The core innovation is the online feature selection strategy. During training, an object instance is processed through all levels of the feature pyramid simultaneously. The model calculates the loss for that object at every level. The level that yields the minimum loss is dynamically selected to update the network's weights for that specific instance. This allows the network to "vote" on which pyramid level provides the most discriminative features for a given object, regardless of its raw pixel dimensions.
Experimental Results
We evaluated the FSAF module on the COCO (Common Objects in Context) dataset, using the standard trainval35k set for training.
- State-of-the-Art Performance: When integrated with a RetinaNet using a ResNeXt-101 backbone, the system achieved 44.6% mAP, outperforming existing single-shot detectors at the time of publication.
- Efficiency: The FSAF module is computationally lightweight. Adding it to a standard RetinaNet (ResNet-50) improved performance by 1.5% mAP with "nearly free" inference overhead, adding only about 6ms to the total processing time.
- Robustness: FSAF excels at detecting challenging objects, such as very thin items (skis) or small objects in the distance, which are often missed by fixed-anchor systems.
Conclusion
The FSAF module demonstrates that letting the network dynamically select feature levels based on content rather than size significantly improves detection accuracy. By decoupling feature selection from rigid heuristics, FSAF provides a more robust and efficient framework for single-shot object detection. Future work may explore more sophisticated anchor-free architectures or extending this logic to tasks like instance segmentation.
Summary updated