Abstract
Modern computer vision tasks rely heavily on contextual information to resolve ambiguities in object recognition and segmentation. While Feature Pyramid Networks (FPNs) provide a multi-scale representation, they often lack the ability to actively integrate features across different scales and spatial locations. We present the Feature Pyramid Transformer (FPT), a plug-and-play module that enables fully active feature interaction. By employing three specialized transformers—Self-Transformer, Grounding Transformer, and Rendering Transformer—FPT facilitates non-local interactions across the feature pyramid. Experimental results on MS-COCO, Cityscapes, and other benchmarks demonstrate significant performance gains in object detection and segmentation with manageable computational overhead.
Introduction
In visual recognition, context is essential. Identifying a small object, such as a computer mouse, often requires understanding its relationship with larger surrounding entities like a desk or keyboard. Traditional Convolutional Neural Networks (CNNs) and standard Feature Pyramids (FPNs) have limitations in capturing these relationships. CNNs rely on a fixed, local receptive field that grows passively with depth. FPNs typically combine scales through simple addition or concatenation, which fails to selectively integrate semantically relevant information across resolutions.
The Feature Pyramid Transformer (FPT) addresses these gaps by allowing every feature at every scale to actively "talk" to others based on semantic relevance, moving beyond local and passive interactions.
Methods
The FPT transforms a standard feature pyramid into a richer representation of the same dimensions using three distinct transformer modules:
- Self-Transformer (ST): Operates within a single scale to capture long-range spatial dependencies. It utilizes a "Mixture of Softmaxes" (MoS) for improved weight normalization in the visual domain.
- Grounding Transformer (GT): A top-down module that grounds high-level semantic concepts into low-level pixels. For these cross-scale interactions, the authors found that negative Euclidean distance serves as a more effective similarity measure than the standard dot product.
- Rendering Transformer (RT): A bottom-up module that enhances high-level features using low-level visual attributes via channel-wise attention.
For dense prediction tasks like semantic segmentation, a Locality-constrained GT (LGT) is introduced to restrict the attention search area, reducing noise from distant, irrelevant regions.
Experimental Results
FPT was evaluated across several benchmarks, showing consistent improvements over strong baselines:
- Object Detection & Instance Segmentation: On MS-COCO 2017, FPT achieved an 8.5% increase in box-AP and a 6.0% increase in mask-AP over the baseline.
- Semantic Segmentation: The module yielded a +1.6% mIoU improvement on Cityscapes and +2.0% mIoU on the LIP dataset.
- Efficiency: FPT outperforms other context-heavy modules like Non-local Networks (NL-Net) while maintaining a competitive balance between parameters and GFLOPs.
Conclusion
The Feature Pyramid Transformer provides a robust framework for active, scale-agnostic feature communication. By replacing passive summation with attention-based filtering, FPT ensures that only beneficial context is integrated across the pyramid. Future research may explore computational optimizations or automated architecture search to further refine the deployment of these transformer modules.
Summary updated