Prototype as query for few shot semantic segmentation
Open Access
- 10 July 2024
- journal article
- research article
- Published by Springer Nature in Complex & Intelligent Systems
- Vol. 10 (5) , 7265-7278
Abstract
Few-shot Semantic Segmentation (FSS) was proposed to segment unseen classes in a query image, referring to only a few annotated examples named support images. One of the characteristics of FSS is spatial inconsistency between query and support targets, e.g., texture or appearance. This greatly challenges the generalization ability of methods for FSS, which requires to effectively exploit the dependency of the query image and the support examples. Most existing methods abstracted support features into prototype vectors and implemented the interaction with query features using cosine similarity or feature concatenation. However, this simple interaction may not capture spatial details in query features. To address this limitation, some methods utilized pixel-level support information by computing pixel-level correlations between paired query and support features implemented with the attention mechanism of Transformer. Nevertheless, these approaches suffer from heavy computation due to dot-product attention between all pixels of support and query features. In this paper, we propose a novel framework, termed ProtoFormer, built upon the Transformer architecture, to fully capture spatial details in query features. ProtoFormer treats the abstracted prototype of the target class in support features as the Query and the query features as Key and Value embeddings, which are input to the Transformer decoder. This approach enables better capture of spatial details and focuses on the semantic features of the target class in the query image. The output of the Transformer-based module can be interpreted as semantic-aware dynamic kernels that filter the segmentation mask from the enriched query features. Extensive experiments conducted on PASCAL- $$5^{i}$$ and COCO- $$20^{i}$$ datasets demonstrate that ProtoFormer significantly outperforms the state-of-the-art methods in FSS.
Keywords
All Related Versions
This publication has 50 references indexed in Scilit:
- Self-support Few-Shot Semantic Segmentation2022
- Cost Aggregation with 4D Convolutional Swin Transformer for Few-Shot Segmentation2022
- Dense Cross-Query-and-Support Attention Weighted Mask Aggregation for Few-Shot Segmentation2022
- Few-Shot Semantic Segmentation with Democratic Attention Networks2020
- Prototype Mixture Models for Few-Shot Semantic Segmentation2020
- Part-Aware Prototype Network for Few-Shot Semantic Segmentation2020
- End-to-End Object Detection with Transformers2020
- Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation2018
- Microsoft COCO: Common Objects in Context2014
- Simultaneous Detection and Segmentation2014