GraphFPN: Graph Feature Pyramid Network for Object Detection

Gangming Zhao, Weifeng Ge, Yizhou Yu

Abstract

Standard Feature Pyramid Networks (FPNs) rely on rigid 2D grids and sequential information flow, which often ignores the intrinsic shapes of objects and creates communication bottlenecks between non-adjacent scales. This paper introduces GraphFPN, a graph-based feature pyramid network that adapts its topology to the specific content of an image using superpixel hierarchies. By enabling simultaneous, content-aware interactions across all scales, GraphFPN significantly enhances feature representation for object detection and semantic segmentation.

Introduction

In computer vision, detecting objects at varying scales is a fundamental challenge. Modern detectors typically use Feature Pyramid Networks (FPNs) to fuse high-level semantic information with low-level spatial details. However, traditional FPNs suffer from two primary drawbacks: a rigid topology that is agnostic to object boundaries, leading to background noise interference, and sequential bottlenecks where information must pass through intermediate layers to reach distant scales.

GraphFPN addresses these issues by replacing the fixed grid with a dynamic graph structure that follows the natural part-whole hierarchy of the image. This allows for direct "wormhole" communication between the finest and coarsest features, ensuring that context is preserved across the entire pyramid.

Methods

GraphFPN is designed to run in parallel with a standard CNN backbone, enriching the features before they reach the detection head. The process involves several key stages:

  1. Superpixel Hierarchy Construction: The image is partitioned into a hierarchy of superpixels using the COB algorithm. This creates a multi-scale representation where nodes correspond to semantically cohesive regions rather than arbitrary pixels.
  2. Dynamic Graph Construction: A graph is built with two types of edges: Contextual Edges for nodes at the same scale and Hierarchical Edges connecting parent and child nodes across different scales.
  3. Graph Neural Network Layers: Features from the backbone are mapped to these nodes. The GNN updates node features using a novel Local Channel Attention mechanism, which weights the importance of feature channels based on local spatial neighborhoods.
  4. Feature Fusion: The updated graph features are mapped back to a 2D grid and fused with the original FPN features for the final prediction.
Overview of the GraphFPN architecture, showing the parallel interaction between the standard Feature Pyramid Network and the proposed Graph Neural Network.

Key Results

GraphFPN demonstrates substantial improvements over existing multi-scale feature fusion methods. Evaluated on the MS-COCO 2017 dataset with a ResNet-101 backbone, GraphFPN achieved an Average Precision (AP) of 43.7%. This represents a +7.5% AP gain over the baseline FPN and outperforms advanced models like PANet (39.0%) and the Feature Pyramid Transformer (42.6%).

Qualitative analysis reveals that GraphFPN is particularly effective at identifying small or densely packed objects that traditional FPNs might miss, such as books on a shelf or keyboards in a complex indoor scene.

Qualitative comparison of object detection results across FPN, FPT, and GraphFPN. GraphFPN demonstrates superior performance in identifying small and occluded objects.

Beyond detection, the model showed strong performance in semantic segmentation on the Cityscapes dataset, improving the mIoU of a strong baseline from 86.0 to 88.4.

Discussion and Limitations

While GraphFPN offers superior accuracy, it introduces additional computational complexity. The model increases parameter counts and GFLOPs compared to standard FPNs. A significant bottleneck is the current CPU-based implementation of the superpixel generation (COB), which adds roughly 0.12 seconds of latency per image. Future work aims to implement this hierarchical segmentation directly in CUDA to enable real-time performance. Additionally, while the model excels at small and medium objects, there is room for improvement in detecting very large objects ($AP_L$) where it currently performs slightly behind transformer-based approaches.

Summary updated

BibTeX
@misc{zhao2021graphfpn,
  author = {Gangming Zhao and Weifeng Ge and Yizhou Yu},
  title = {{GraphFPN: Graph Feature Pyramid Network for Object Detection}},
  year = {2021},
  eprint = {2108.00580},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.00580},
}
Figure