You Only Look One-Level Feature

Qiang Chen, Yingming Wang, Tong Yang, Xiangyu Zhang, Jian Cheng

Abstract

Modern object detection architectures rely heavily on Feature Pyramid Networks (FPNs) to detect objects across a wide range of scales. It has long been assumed that the success of FPNs is due to the fusion of multi-scale features. This paper, YOLOF (You Only Look One-level Feature), challenges this assumption. Through a series of controlled experiments, the authors demonstrate that the primary benefit of FPNs is not feature fusion, but rather the "divide-and-conquer" strategy of assigning different object scales to different levels. By leveraging a single-level feature map (C5) enhanced with a Dilated Encoder and Uniform Matching, YOLOF achieves 37.7 mAP on COCO—surpassing RetinaNet while running 2.5x faster.

The FPN Bottleneck

Feature Pyramid Networks have become a standard component in object detectors like RetinaNet and Mask R-CNN. They are designed to address the scale variation problem by providing a hierarchy of feature maps. However, FPNs introduce significant computational costs and memory overhead.

The authors investigate whether this complexity is truly necessary. They decouple the two main functions of an FPN: multi-scale feature fusion (combining semantic and structural information) and divide-and-conquer (distributing detection across multiple levels). Their analysis reveals that a model using only a single high-level feature map (SiMo) can achieve performance remarkably close to a full FPN (MiMo), provided it still outputs multiple levels for detection.

Comparison of input/output configurations showing that single-level input (SiMo) performs nearly as well as multi-level input (MiMo).

This finding suggests that the "fusion" aspect of FPNs is far less critical than previously thought, opening the door for much simpler and faster single-level detectors.

Methods: Bridging the Gap

To make a single-level detector competitive with multi-level ones, YOLOF introduces two key innovations to handle the limitations of using only the C5 feature map:

  1. Dilated Encoder: A single feature map has a fixed receptive field, which is typically too narrow to cover the full range of object scales in a dataset like COCO. The Dilated Encoder addresses this by using a series of residual blocks with varying dilation rates. This effectively expands the receptive field, allowing the single feature map to "see" objects of many different sizes, mimicking the multi-scale coverage of a pyramid.
  2. Uniform Matching: Moving from 100k anchors in an FPN to roughly 5k in a single-level map creates a training imbalance. Standard Max-IoU matching often ignores small objects because they have fewer potential anchor matches. Uniform Matching ensures that every ground-truth box is matched with its $k$ nearest anchors, regardless of size, ensuring balanced supervision across all object scales.

Key Results

YOLOF demonstrates that simplicity does not have to come at the cost of performance. On the MS COCO benchmark, YOLOF (with a ResNet-50 backbone) achieves 37.7 mAP, outperforming the standard RetinaNet baseline (35.9 mAP).

The most significant advantage is efficiency. By removing the complex FPN and reducing the number of anchors, YOLOF achieves a massive speedup. It runs at 32 FPS, compared to RetinaNet's 13 FPS, while significantly reducing the total GFLOPs.

Comparison of GFLOPs and FPS between RetinaNet variants and YOLOF, highlighting YOLOF's superior efficiency.

Furthermore, YOLOF shows strong scalability. When paired with a ResNeXt-101 backbone and multi-scale testing, it reaches 47.1 mAP, proving that the single-level approach is robust for high-performance applications.

Insights and Limitations

The success of YOLOF provides a provocative insight: the deepest feature map (C5) contains sufficient information for detecting objects of all sizes. The perceived need for multi-resolution fusion may be a byproduct of suboptimal anchor matching and receptive field management rather than a fundamental requirement of the detection task.

However, YOLOF does face challenges with small objects. Because it relies on the C5 feature map (which has a stride of 32), some fine-grained spatial detail is lost. While Uniform Matching helps, YOLOF's small-object accuracy ($AP_S$) still trails slightly behind state-of-the-art FPN-based models. Future work may explore efficient ways to re-introduce high-resolution details without re-introducing the full complexity of the feature pyramid.

Summary updated

BibTeX
@inproceedings{chen2021you,
  author = {Qiang Chen and Yingming Wang and Tong Yang and Xiangyu Zhang and Jian Cheng and Jian Sun},
  title = {{You Only Look One-Level Feature}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01284},
}
Figure