[Paper Review] Intermediate Prototype Mining Transformer for Few-Shot Semantic Segmentation
Introduces an Intermediate Prototype Mining Transformer (IPMT) that learns an intermediate prototype combining support determinism and query adaptivity, iteratively refining query features for improved few-shot semantic segmentation.
Few-shot semantic segmentation aims to segment the target objects in query under the condition of a few annotated support images. Most previous works strive to mine more effective category information from the support to match with the corresponding objects in query. However, they all ignored the category information gap between query and support images. If the objects in them show large intra-class diversity, forcibly migrating the category information from the support to the query is ineffective. To solve this problem, we are the first to introduce an intermediate prototype for mining both deterministic category information from the support and adaptive category knowledge from the query. Specifically, we design an Intermediate Prototype Mining Transformer (IPMT) to learn the prototype in an iterative way. In each IPMT layer, we propagate the object information in both support and query features to the prototype and then use it to activate the query feature map. By conducting this process iteratively, both the intermediate prototype and the query feature can be progressively improved. At last, the final query feature is used to yield precise segmentation prediction. Extensive experiments on both PASCAL-5i and COCO-20i datasets clearly verify the effectiveness of our IPMT and show that it outperforms previous state-of-the-art methods by a large margin. Code is available at https://github.com/LIUYUANWEI98/IPMT
Motivation & Objective
- Address the intra-class diversity between support and query in few-shot semantic segmentation (FSS).
- Propose an intermediate prototype to bridge the category information gap between support and query images.
- Develop an iterative IPMT framework to progressively refine the intermediate prototype and the query features for accurate segmentation.
- Demonstrate state-of-the-art performance on PASCAL-5i and COCO-20i benchmarks.
- Provide insights into how intermediate prototypes reduce intra-class distance between support and query prototypes.
Proposed method
- Define an Intermediate Prototype Mining Transformer (IPMT) with two steps per layer: Intermediate Prototype Mining (IPM) and Query Activation (QA).
- IPM learns an intermediate prototype G by applying masked cross-attention to both support and query features, guided by support masks and query predictions.
- QA activates the query feature map Fq using the learned prototype G via concatenation and an activation network, with optional deformable self-attention for context aggregation.
- Use a masked-attention mechanism to ensure the prototype updates focus on target regions, leveraging both the ground-truth support mask Ms and a query prediction mask Pq.
- Train with a Duplex Segmentation Loss (Ldsl) that supervises masks generated from G on both support and query images.
- Employ an iterative scheme with L IPMT layers to progressively refine G, Fq, and Pq (Gl, Fql, Pql) for improved final segmentation.
Experimental results
Research questions
- RQ1Can an intermediate prototype mitigate the information gap between support and query in FSS?
- RQ2Does iterative refinement of the intermediate prototype and query features yield improved segmentation performance?
- RQ3How does combining deterministic support information with adaptive query knowledge affect prototype quality and segmentation accuracy?
- RQ4What is the impact of DSL and QA components on overall performance in IPMT?
- RQ5How does IPMT perform on standard FSS benchmarks (PASCAL-5i and COCO-20i) compared to prior state-of-the-art methods?
Key findings
- IPMT outperforms state-of-the-art methods on PASCAL-5i and COCO-20i across 1-shot and 5-shot settings with ResNet backbones.
- The intermediate prototype G, derived from both support and query contexts, is closer to the query prototype than the support prototype, reducing intra-class diversity.
- Iterative IPMT layers progressively improve prototype quality and segmentation results, with five layers yielding notable gains.
- Duplex Segmentation Loss (DSL) and Query Activation (QA) contribute substantially to performance; removing them degrades results.
- Ablations show gains from using both support and query information in IPM and from iteration, validating the design choices.
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.