Abstract
Standard Feature Pyramid Networks (FPNs) often rely on rigid heuristics for mapping object proposals to feature levels, typically ignoring crucial geometric information like aspect ratio. Furthermore, traditional detection heads lose spatial context after RoI pooling. This paper introduces GaFPN (Geometry-aware Feature Pyramid Network), a framework that integrates geometric priors directly into the feature extraction and prediction stages. By employing an adaptive Geometry-aware Mapping Module (GMM) and a Geometry-aware Predictor Head (GPH), GaFPN achieves consistent Average Precision (AP) gains of up to +2.0 on the MS COCO dataset across multiple baseline detectors.
Addressing the Limitations of Standard FPNs
Modern object detection heavily utilizes Feature Pyramid Networks (FPNs) to manage scale variation. However, the authors identify two critical shortcomings in conventional FPN implementations:
- Rigid Mapping Heuristics: Standard FPNs assign proposals to pyramid levels based solely on area. This approach neglects the aspect ratio. For instance, a tall, narrow object and a square object of the same area are mapped to the same level, despite having different visual characteristics. Moreover, selecting a single level discards potentially useful information from adjacent layers.
- Loss of Geometric Context: After RoI Align "crops" a feature map into a fixed-size grid (e.g., 7x7), the detector head loses information regarding the original scale, shape, and position of the bounding box. This loss of context hinders the model's ability to distinguish between semantically similar objects or perform precise regression.
Methodology: The GaFPN Framework
To overcome these issues, GaFPN introduces three primary components:
Geometry-aware Mapping Module (GMM)
Instead of a hard selection of a single pyramid level, the GMM utilizes a lightweight subnetwork to generate "fusion weights" for all levels. These weights are computed based on the proposal's geometric features, including normalized coordinates, width, height, aspect ratio, and area. The final feature representation is a weighted sum across the pyramid, ensuring adaptive multi-scale integration.
Geometry-aware Predictor Head (GPH)
The GPH re-introduces geometric context into the final classification and regression stages. It generates task-specific embeddings from geometric features, which are then multiplied with the RoI-aligned features. This allows the classifier to leverage shape as a discriminative cue and enables the regressor to refine coordinates more dynamically.
Feature Augmentation Pyramid (FAP)
Before mapping, the initial feature hierarchy is enhanced using a Feature Augmentation Pyramid. This layer, inspired by Atrous Spatial Pyramid Pooling (ASPP) and attention mechanisms, provides a more robust foundation for subsequent geometric-aware operations.
Experimental Results
The GaFPN was evaluated on the MS COCO dataset (2017 version). Training was conducted on the train-2017 set, with ablation studies on val-2017 and final comparisons on test-dev.
GaFPN demonstrated consistent improvements across several popular ResNet-50-FPN baselines:
- Faster R-CNN: +1.9 AP
- Cascade R-CNN: +2.0 AP
- Dynamic R-CNN: +1.7 AP
- Mask R-CNN: +1.6 AP (Detection) and +1.4 AP (Segmentation)
The module is "plug-and-play," providing gains even when added to already optimized FPN variants like PAFPN (+1.6 AP) and BiFPN (+2.0 AP).
Key Insights and Discussion
- Soft Selection vs. Hard Selection: Moving from rigid heuristics to learned, weighted fusion allows the network to optimize feature representations for any object shape, not just size.
- Geometry as a Discriminator: Geometric priors are particularly effective for classification. Knowing an object's natural aspect ratio helps the model distinguish between textures that might appear similar in a cropped 7x7 patch.
- Efficiency: The weight-generation subnetworks are extremely lightweight, adding minimal parameter overhead. However, the multi-level aggregation does introduce some inference latency (e.g., Faster R-CNN drops from 13.4 FPS to 10.8 FPS).
Conclusion
GaFPN successfully demonstrates that explicitly modeling geometric priors can significantly enhance object detection performance. While there is a slight trade-off in inference speed, the consistent AP gains across various architectures highlight the importance of geometric awareness in feature pyramids. Future work may explore extending this strategy to one-stage detectors and broader vision tasks like panoptic segmentation.
Summary updated