[Paper Review] Feature Pyramid Transformer
This paper proposes Feature Pyramid Transformer (FPT), a novel self-attention-based module that enhances feature pyramids by explicitly modeling non-local, cross-scale interactions across spatial and scale dimensions. By integrating self-level, top-down, and bottom-up transformers, FPT improves object detection and semantic segmentation performance with minimal computational overhead, achieving state-of-the-art mIoU gains of 1.6–1.8% across multiple benchmarks.
Feature interactions across space and scales underpin modern visual recognition systems because they introduce beneficial visual contexts. Conventionally, spatial contexts are passively hidden in the CNN's increasing receptive fields or actively encoded by non-local convolution. Yet, the non-local spatial interactions are not across scales, and thus they fail to capture the non-local contexts of objects (or parts) residing in different scales. To this end, we propose a fully active feature interaction across both space and scales, called Feature Pyramid Transformer (FPT). It transforms any feature pyramid into another feature pyramid of the same size but with richer contexts, by using three specially designed transformers in self-level, top-down, and bottom-up interaction fashion. FPT serves as a generic visual backbone with fair computational overhead. We conduct extensive experiments in both instance-level (i.e., object detection and instance segmentation) and pixel-level segmentation tasks, using various backbones and head networks, and observe consistent improvement over all the baselines and the state-of-the-art methods.
Motivation & Objective
- To address the limitation of existing methods in capturing non-local, cross-scale visual contexts in feature pyramids.
- To design a generic, plug-and-play backbone that actively models spatial and scale-aware feature interactions beyond conventional CNNs.
- To improve performance in instance-level (object detection, instance segmentation) and pixel-level (semantic segmentation) tasks through richer contextual feature representation.
- To maintain computational efficiency while significantly boosting feature representation quality across diverse visual recognition tasks.
Proposed method
- Proposes a Feature Pyramid Transformer (FPT) that transforms an input feature pyramid into a richer, contextually enhanced feature pyramid of the same size.
- Introduces three specialized transformers: Self-Transformer (ST) for intra-level spatial interactions, Local-Global Transformer (LGT) for top-down scale-aware interactions, and Representation Transformer (RT) for bottom-up scale-aware interactions.
- Employs multi-head self-attention mechanisms with learnable queries, keys, and values to explicitly model long-range, non-local dependencies across space and scale.
- Maintains feature map resolution and size throughout the process, enabling seamless integration with existing detection and segmentation heads.
- Uses a lightweight design with controlled FLOPs and parameter increase (e.g., +0.44× params, +0.10× GFLOPs for LGT), ensuring fair computational overhead.
- Applies FPT as a generic module on top of various backbones (e.g., ResNet-101) and feature pyramid architectures (UFP, PPM, ASPP), demonstrating broad compatibility.
Experimental results
Research questions
- RQ1Can explicit, cross-scale feature interactions improve visual recognition beyond conventional CNN-based or non-local spatial-only methods?
- RQ2How can self-attention mechanisms be adapted to model non-local interactions not only across space but also across different feature pyramid levels?
- RQ3To what extent does FPT improve performance in both instance-level and pixel-level segmentation tasks compared to state-of-the-art methods?
- RQ4Can FPT maintain high efficiency while significantly enhancing feature representation quality across diverse benchmarks and backbone architectures?
Key findings
- FPT achieves state-of-the-art performance on Cityscapes, ADE20K, LIP, and PASCAL VOC 2012, with mIoU improvements of 1.6%, 1.2%, 1.7%, and 1.8% respectively over previous SOTA methods using the same ResNet-101 backbone.
- The ablation study shows that combining all three transformers (ST, LGT, RT) yields the best performance, achieving 2.6% higher validation mIoU than the UFP baseline on Cityscapes.
- The Self-Transformer (ST) alone improves validation mIoU by 1.6% over UFP, demonstrating the effectiveness of intra-level non-local interactions.
- FPT outperforms the state-of-the-art OCNet by 0.9%, 1.1%, 1.3%, and 0.8% mIoU on Cityscapes, ADE20K, LIP, and PASCAL VOC 2012, respectively.
- Qualitative results show FPT produces more precise boundary predictions and better segmentation for small and thin objects (e.g., guardrail, person’s leg) compared to baseline and OCNet.
- The model maintains a fair computational cost, increasing parameters by at most 0.44× and GFLOPs by at most 0.10× compared to the UFP baseline.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.