Abstract
Feature pyramids are a basic component in recognition systems for detecting objects at different scales. But recent deep learning object detectors have avoided pyramid representations, in part because they are compute and memory intensive. In this paper, we exploit the inherent multi-scale, pyramidal hierarchy of deep convolutional networks to construct feature pyramids with marginal extra cost. A top-down architecture with lateral connections is developed for building high-level semantic feature maps at all scales. This architecture, called a Feature Pyramid Network (FPN), shows significant improvement as a generic feature extractor in several applications. Using FPN in a basic Faster R-CNN system, our method achieves state-of-the-art single-model results on the COCO detection benchmark without bells and whistles, surpassing all existing single-model entries including those from the COCO 2016 challenge winners. In addition, our method can run at 5 FPS on a GPU and thus is a practical and accurate solution to multi-scale object detection.
Introduction: The Challenge of Scale
In computer vision, objects appear at vastly different scales. A tiny bird in the distance and a large car in the foreground both need to be detected accurately. Historically, researchers used image pyramids—running a model on multiple resized versions of the same image—to solve this. While effective, this is incredibly slow and memory-intensive.
Modern deep learning detectors shifted toward using a single-scale feature map from the end of a network. While fast, these high-level features often lack the spatial resolution needed to find small objects. Other approaches tried using the internal layers of a ConvNet as a pyramid, but early layers (which have high resolution) lack the "semantic" understanding found in deeper layers. The challenge was: how do we create a feature representation that is both high-resolution and semantically rich across all scales?
Methods: The FPN Architecture
The authors propose the Feature Pyramid Network (FPN), which leverages the inherent multi-scale hierarchy of deep convolutional networks to build feature pyramids with almost no extra computational cost. The architecture consists of three main components:
- Bottom-Up Pathway: This is the standard feedforward computation of a backbone network (like ResNet). It produces a hierarchy of feature maps where the spatial resolution decreases as you go deeper, but the semantic value increases.
- Top-Down Pathway: The network takes the semantically strong but spatially coarse features from the deepest layer and upsamples them (using nearest-neighbor interpolation) to higher resolutions.
- Lateral Connections: To help the top-down pathway recover precise spatial information, FPN uses lateral connections. It takes a feature map from the bottom-up pathway, passes it through a $1 \times 1$ convolution (to match channel dimensions), and adds it element-wise to the upsampled map.
Finally, a $3 \times 3$ convolution is applied to each merged map to reduce the "aliasing" effect of upsampling. Unlike previous methods that only predicted from the final "finest" map, FPN makes independent predictions at every level of the pyramid.
Key Insights
- Unlocking Internal Hierarchies: Deep ConvNets are already computing feature pyramids. FPN simply "unlocks" this internal hierarchy by connecting high-level concepts and low-level spatial details.
- Small Object Detection: By providing high-resolution maps that are semantically rich, FPN sees a massive jump in performance for small objects, improving Average Recall significantly over baselines.
- Scale Invariance via Assignment: Objects are assigned to different pyramid levels based on their size (e.g., small objects to high-res levels), mimicking traditional image pyramids within a single network pass.
- Efficiency: Because FPN reuses existing features, the overhead is marginal. The system runs at roughly 5-6 FPS on a GPU, making it a practical choice for real-world applications.
Key Results
The researchers primarily evaluated FPN on the COCO (Common Objects in Context) detection benchmark. Key findings include:
- State-of-the-Art Performance: Using FPN in a Faster R-CNN system achieved 36.2 AP on COCO with a ResNet-101 backbone, outperforming all existing single-model entries at the time.
- Robustness: FPN improved the COCO-style Average Precision (AP) by 2.3 points over a strong single-scale ResNet baseline.
- Versatility: FPN isn't just for detection; it also significantly improves Region Proposal Networks (RPN) and can be easily extended to Instance Segmentation.
Limitations and Future Work
While much faster than image pyramids, FPN still requires more memory than single-scale models because it must store multiple levels of feature maps. Additionally, the authors used relatively simple "heads" for classification and regression; more sophisticated sub-networks could likely drive accuracy even higher. Finally, the mapping of objects to pyramid levels is currently handled by a fixed formula; future work could explore learning this assignment dynamically.
Summary updated