[Paper Review] Few-Shot Segmentation with Global and Local Contrastive Learning
This paper proposes Query Guided Network (QG-Net), a few-shot segmentation method that independently extracts query image priors via global and local contrastive learning, decoupling query feature learning from support images. By training a prior extractor on unlabeled query images using joint global-local contrastive loss, the method generates informative prior region maps that enhance cross-attention with support features, achieving new state-of-the-art performance on PASCAL-5i and COCO datasets without additional bells and whistles.
In this work, we address the challenging task of few-shot segmentation. Previous few-shot segmentation methods mainly employ the information of support images as guidance for query image segmentation. Although some works propose to build cross-reference between support and query images, their extraction of query information still depends on the support images. We here propose to extract the information from the query itself independently to benefit the few-shot segmentation task. To this end, we first propose a prior extractor to learn the query information from the unlabeled images with our proposed global-local contrastive learning. Then, we extract a set of predetermined priors via this prior extractor. With the obtained priors, we generate the prior region maps for query images, which locate the objects, as guidance to perform cross interaction with support features. In such a way, the extraction of query information is detached from the support branch, overcoming the limitation by support, and could obtain more informative query clues to achieve better interaction. Without bells and whistles, the proposed approach achieves new state-of-the-art performance for the few-shot segmentation task on PASCAL-5$^{i}$ and COCO datasets.
Motivation & Objective
- To address the limitation in existing few-shot segmentation methods that rely solely on support image guidance and fail to exploit intrinsic query image clues.
- To improve few-shot segmentation generalization by decoupling query feature learning from support branch dependencies.
- To develop a self-supervised prior extractor that learns discriminative object-level representations from unlabeled query images.
- To enhance cross-attention between query and support features using independently learned prior region maps.
Proposed method
- A prior extractor is trained using a combination of global and local contrastive learning on unlabeled query images to learn predetermined object priors.
- Global contrastive loss minimizes feature distance between different augmentations of the same image to learn global representations.
- Local contrastive loss is applied to image patches generated via Slic to distinguish different objects within the same image, promoting local feature discrimination.
- The prior extractor generates prior region maps that highlight potential object locations in query images, independent of support images.
- These prior region maps are used to guide cross-attention with support features, improving interaction quality.
- The method is implemented with VGG16, ResNet50, and ResNet101 backbones, using image sizes of 321×321 and 473×473 for evaluation.
Experimental results
Research questions
- RQ1Can self-supervised contrastive learning extract more informative query priors than support-guided methods in few-shot segmentation?
- RQ2Does decoupling query feature learning from support images improve segmentation performance and generalization?
- RQ3How do global and local contrastive learning components contribute individually and jointly to prior representation quality?
- RQ4What patch generation method (e.g., Slic vs. Felzenszwalb) yields the most discriminative local features for prior learning?
- RQ5To what extent do prior region maps overlap with ground-truth object regions compared to guided region maps?
Key findings
- The proposed method achieves new state-of-the-art performance on the PASCAL-5i dataset, outperforming previous SOTA methods across all backbone and image size configurations.
- On the MS COCO dataset, QG-Net achieves 5.9% and 7.4% higher mIoU than PFENet in 1-shot and 5-shot settings, respectively, despite using a smaller 473×473 input size.
- Using Slic for patch generation yields better performance than Felzenszwalb’s method, with 1000 epochs of prior extractor training producing optimal results.
- The recall of prior region maps (Recall_p,gt) exceeds that of guided region maps (Recall_g,gt), indicating that prior maps cover more ground-truth object regions.
- Ablation studies confirm that combining global and local contrastive losses yields the best performance, demonstrating their complementary role in learning discriminative priors.
- Failure cases reveal limitations in distinguishing objects with similar appearance (e.g., person and teddy bear) and in detecting small objects, highlighting challenges in fine-grained and small-scale recognition.
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.