Query-guided Prototype Evolution Network for Few-Shot Segmentation

Runmin Cong, Hang Xiong, Jinpeng Chen, Wei Zhang, Qingming Huang, Yao Zhao · DOI

Abstract

Few-Shot Segmentation (FSS) aims to segment novel object categories in query images using only a limited number of annotated support samples. Traditional FSS methods typically rely on static prototypes derived solely from support images, which often fail to account for the specific visual characteristics of the query image. This paper presents the Query-guided Prototype Evolution Network (QPENet), a framework that introduces a dynamic "support-query-support" evolution process. By generating query-aware pseudo-prototypes and refining them through dual evolution and global background cleansing, QPENet achieves state-of-the-art performance on standard benchmarks including PASCAL-$5^i$ and COCO-$20^i$.

Introduction

The core challenge of Few-Shot Segmentation (FSS) lies in generalizing from a few labeled examples to unseen categories. Most existing approaches utilize a prototype-based strategy, where feature vectors (prototypes) are extracted from support images to represent a class. However, these prototypes are often calculated via simple masked average pooling on the support features alone.

This "support-only" approach has two primary drawbacks. First, it ignores the query image's specific context; for instance, if a support image shows a complete object while the query shows only a partial view, a generic prototype may be suboptimal. Second, background distributions vary significantly between support and query images, making support-derived background prototypes unreliable. QPENet addresses these issues by evolving prototypes dynamically to match the query's requirements.

Methodology

QPENet introduces a multi-stage evolution process to transform static support features into query-attuned representations through three primary modules.

Pseudo-prototype Generation (PPG)

The PPG module initiates the evolution by performing a coarse segmentation of the query image using initial support features. This preliminary mask is used to extract a "pseudo-prototype" directly from the query's own feature map. This ensures that the initial representation of the target class is grounded in the actual appearance of the object within the query image.

Dual Prototype Evolution (DPE)

The DPE module performs a "reverse" segmentation step. The pseudo-prototype generated in the PPG stage is used to segment the original support image. This process allows the network to bifurcate support features into "Main" features (those most relevant to the query) and "Auxiliary" features. By focusing on the intersection of support and query characteristics, the model creates evolved prototypes that are highly specialized for the current task.

Global Background Cleansing (GBC)

To handle diverse backgrounds, QPENet moves away from image-specific support backgrounds. Instead, it utilizes a "Global Background Prototype" learned across the entire training set. The GBC module further refines this by removing components that overlap with the current query's foreground features, preventing the background model from accidentally suppressing the target object.

Feature Filtering and Activation (FFA)

In the final decoding stage, the FFA module replaces standard feature concatenation with cosine similarity-based activation maps. These maps highlight regions where query features align with the evolved prototypes, facilitating more precise boundary localization and mask prediction.

Experimental Results

Benchmarks and Performance

QPENet was evaluated on the PASCAL-$5^i$ and COCO-$20^i$ datasets using a ResNet-101 backbone. The model demonstrated significant improvements over previous state-of-the-art methods:

  • PASCAL-$5^i$: QPENet achieved a mean Intersection over Union (mIoU) of 66.0% in the 1-shot setting and 69.6% in the 5-shot setting.
  • COCO-$20^i$: On this more complex dataset, the model reached 41.4% (1-shot) and 47.7% (5-shot) mIoU.

Efficiency

Despite the iterative nature of the evolution modules, QPENet remains computationally efficient. The parameter count increased only marginally from a 32.7 MB baseline to 34.6 MB, suggesting that the performance gains are derived from architectural intelligence rather than simple parameter scaling.

Conclusion

QPENet demonstrates that prototypes in few-shot segmentation should not be static. By implementing a query-guided evolution loop, the network effectively "negotiates" the relationship between support and query features. This approach not only sets new performance benchmarks but also provides a robust framework for handling the inherent variability in few-shot learning tasks. Future work may explore the application of this query-guided philosophy to related domains such as few-shot object detection.

Summary updated

BibTeX
@article{cong2024query,
  author = {Runmin Cong and Hang Xiong and Jinpeng Chen and Wei Zhang and Qingming Huang and Yao Zhao},
  title = {{Query-guided Prototype Evolution Network for Few-Shot Segmentation}},
  journal = {IEEE Trans. Multimedia},
  year = {2024},
  doi = {10.1109/tmm.2024.3352921},
}
Figure