[Paper Review] MSDNet: Multi-Scale Decoder for Few-Shot Semantic Segmentation via Transformer-Guided Prototyping
MSDNet proposes a lightweight, transformer-guided few-shot semantic segmentation framework that integrates a multi-scale decoder, contextual mask generation, and a spatial transformer decoder to enhance relational understanding between support and query images. By leveraging intermediate encoder features and refining predictions across multiple resolutions, it achieves state-of-the-art performance with only 1.5 million parameters, attaining 70.4% FB-IoU on COCO-20$^{i}$ in 1-shot settings.
Few-shot Semantic Segmentation addresses the challenge of segmenting objects in query images with only a handful of annotated examples. However, many previous state-of-the-art methods either have to discard intricate local semantic features or suffer from high computational complexity. To address these challenges, we propose a new Few-shot Semantic Segmentation framework based on the Transformer architecture. Our approach introduces the spatial transformer decoder and the contextual mask generation module to improve the relational understanding between support and query images. Moreover, we introduce a multi scale decoder to refine the segmentation mask by incorporating features from different resolutions in a hierarchical manner. Additionally, our approach integrates global features from intermediate encoder stages to improve contextual understanding, while maintaining a lightweight structure to reduce complexity. This balance between performance and efficiency enables our method to achieve competitive results on benchmark datasets such as PASCAL-5^i and COCO-20^i in both 1-shot and 5-shot settings. Notably, our model with only 1.5 million parameters demonstrates competitive performance while overcoming limitations of existing methodologies. https://github.com/amirrezafateh/MSDNet
Motivation & Objective
- Address the limitations of prototype-based and pixel-wise few-shot segmentation methods, including loss of local semantic details and high computational complexity.
- Improve relational understanding between support and query images by modeling spatial and contextual relationships more effectively.
- Enhance segmentation accuracy through hierarchical multi-scale feature refinement while maintaining computational efficiency.
- Integrate global contextual features from intermediate encoder stages into the decoder to improve feature representation without increasing model complexity.
- Develop a lightweight architecture that achieves state-of-the-art performance with minimal parameters, suitable for low-data regimes.
Proposed method
- Proposes a Spatial Transformer Decoder (STD) that uses learnable query embeddings derived from support prototypes to model cross-image relationships in the query feature map.
- Introduces a Contextual Mask Generation (CMGM) module that generates attention masks to guide feature refinement using global and local context from support images.
- Employs a multi-scale decoder with residual blocks at different stages to progressively refine segmentation masks using features from multiple resolutions.
- Incorporates global features from intermediate encoder layers into the decoder to enrich contextual understanding and improve boundary localization.
- Uses a shared backbone with prototype-based feature abstraction, followed by element-wise fusion with decoder outputs for final segmentation prediction.
- Optimizes the architecture by tuning residual block count per stage, finding three blocks per stage yields optimal trade-off between performance and complexity.
Experimental results
Research questions
- RQ1How can we improve relational understanding between support and query images in few-shot semantic segmentation without increasing computational cost?
- RQ2What is the impact of integrating multi-scale feature refinement on segmentation accuracy in low-shot settings?
- RQ3Can a lightweight decoder architecture with hierarchical feature fusion outperform existing state-of-the-art methods while maintaining low parameter count?
- RQ4How does the use of intermediate encoder features in the decoder affect performance and generalization in few-shot segmentation?
- RQ5What is the optimal depth of the multi-scale decoder in terms of residual blocks per stage for balancing accuracy and efficiency?
Key findings
- The multi-scale decoder contributes most significantly to performance gains, increasing mIoU from 59.7% (baseline) to 70.4% on COCO-20$^{i}$ in 1-shot settings.
- The full model with all components achieves 70.4% FB-IoU on COCO-20$^{i}$ and 67.6% on PASCAL-5$^{i}$ in 1-shot, demonstrating state-of-the-art performance.
- Using three residual blocks per stage in the multi-scale decoder yields the best performance (70.4% FB-IoU), outperforming configurations with one, two, or four blocks.
- The model achieves competitive results with only 1.5 million parameters, demonstrating high efficiency despite strong performance.
- Ablation studies confirm that each component—CMGM, STD, and multi-scale decoder—contributes incrementally to performance improvement across all folds.
- Qualitative results show that the multi-scale decoder significantly improves boundary accuracy and reduces noise, especially on complex objects.
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.