[Paper Review] Feature-Proxy Transformer for Few-Shot Segmentation
FPTrans revives the plain feature extractor plus linear classification head framework for few-shot segmentation by using on-the-fly proxies and a prompting-based interaction between query and support features, achieving state-of-the-art-like results without intricate decoders.
Few-shot segmentation (FSS) aims at performing semantic segmentation on novel classes given a few annotated support samples. With a rethink of recent advances, we find that the current FSS framework has deviated far from the supervised segmentation framework: Given the deep features, FSS methods typically use an intricate decoder to perform sophisticated pixel-wise matching, while the supervised segmentation methods use a simple linear classification head. Due to the intricacy of the decoder and its matching pipeline, it is not easy to follow such an FSS framework. This paper revives the straightforward framework of "feature extractor $+$ linear classification head" and proposes a novel Feature-Proxy Transformer (FPTrans) method, in which the "proxy" is the vector representing a semantic class in the linear classification head. FPTrans has two keypoints for learning discriminative features and representative proxies: 1) To better utilize the limited support samples, the feature extractor makes the query interact with the support features from the bottom to top layers using a novel prompting strategy. 2) FPTrans uses multiple local background proxies (instead of a single one) because the background is not homogeneous and may contain some novel foreground regions. These two keypoints are easily integrated into the vision transformer backbone with the prompting mechanism in the transformer. Given the learned features and proxies, FPTrans directly compares their cosine similarity for segmentation. Although the framework is straightforward, we show that FPTrans achieves competitive FSS accuracy on par with state-of-the-art decoder-based methods.
Motivation & Objective
- Motivate a simpler FSS framework aligned with supervised segmentation (feature extractor + linear head).
- Develop a prompting-based mechanism to enable effective query-support interaction with limited support samples.
- Introduce multiple local background proxies to improve generalization to novel classes.
Proposed method
- Use a vision transformer backbone with a novel prompting strategy to inject foreground and multiple local background prompts.
- Generate on-the-fly proxies (feature-based and prompt-based) from support images and masks for classification head.
- Synchronize prompt tokens across query and support to enable efficient cross-attention and interaction (prompt synchronization).
- Extract features and proxies through the transformer, then perform pixel-wise cosine similarity-based classification with a cross-entropy and pairwise loss.
- Train with a sum of two classification losses (feature-based and prompt-based proxies) and a pairwise foreground feature pull loss.
Experimental results
Research questions
- RQ1Can a plain feature extractor + linear head framework match decoder-based FSS methods with carefully designed proxies and prompting?
- RQ2Do multiple local background proxies improve generalization to novel classes in FSS?
- RQ3Does query-support interaction via prompting reduce interaction complexity while maintaining accuracy?
Key findings
- FPTrans achieves competitive FSS accuracy on par with state-of-the-art decoder-based methods across datasets and backbones.
- Using multiple local background proxies and query-support prompting yields consistent gains over a plain baseline, with ablations confirming their contributions.
- On PASCAL-5i and COCO-20i, FPTrans with ViT/DeiT backbones surpasses several strong baselines, and under domain shift scenarios shows notable improvements.
- Prompt synchronization reduces interaction complexity from O(N^2) to O(N) in cross-attention flow, while enabling effective feature and proxy learning.
- Training with both feature-based and prompt-based proxy classifications plus a pairwise foreground feature loss improves FSS performance, especially when few support samples are available.
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.