Abstract
Few-shot segmentation (FSS) remains a significant challenge in computer vision, primarily due to the high intra-class variation between support and query images. Traditional prototype-based methods often exhibit a learning bias toward support samples, leading to poor generalization. This paper introduces Sym-Net, a symmetrical framework that jointly learns prototypes from both support and query data. By integrating a parameter-free prior mask generation module, visual-text alignment, and multi-scale spatial correlations, Sym-Net bridges the appearance gap and achieves state-of-the-art performance on the PASCAL-5i and COCO-20i benchmarks.
Introduction
The objective of few-shot segmentation is to identify and segment objects in a "query" image based on a limited set of labeled "support" examples. While humans possess the innate ability to generalize from a single instance, AI models frequently struggle with variations in pose, lighting, and viewpoint. Most existing FSS frameworks rely on extracting a prototype from the support image to guide query segmentation. However, this unidirectional approach often fails when the query object differs significantly in appearance from the support example.
Addressing the Support-Query Gap
Existing methods typically treat the support image as the primary source of truth, using the query image only as a target for matching. This creates a fundamental learning bias. Sym-Net addresses this by treating support and query images as equal partners in the learning process. As shown in Figure 1, while traditional methods rely solely on a support prototype, Sym-Net generates a hybrid prototype that incorporates high-confidence cues from the query image itself.
Methodology
Sym-Net is composed of three primary modules designed to create a robust, unbiased representation of the target class:
1. Self-activation based Prior Mask generation (SPM)
To provide an initial localization of the query object without additional learnable parameters, the SPM module utilizes sliding windows and a self-activation kernel based on $L_2$-norms. This generates a "prior mask" that guides the network toward relevant regions in the query image early in the process.
2. Visual-text Alignment based Prototype Aggregation (APA)
The APA module serves as the core of the symmetrical approach. It utilizes text embeddings (e.g., "dog" or "car") as a semantic anchor. By aligning visual features from both the support and query branches with these stable text embeddings via a single-head attention mechanism, the model produces a "hybrid prototype" that is less susceptible to the specific noise or pose of the support sample.
3. Top-Down hyper-Correlation (TDC)
To recover spatial details lost during prototype compression, the TDC module computes multi-scale spatial correlations between support and query features across various stages of the backbone network. This ensures that fine-grained structural cues are preserved in the final prediction.
Experimental Results
The researchers evaluated Sym-Net on two standard datasets: PASCAL-5i and COCO-20i.
- PASCAL-5i: Sym-Net achieved a mean Intersection over Union (mIoU) of 69.66% in the 1-shot setting and 72.59% in the 5-shot setting, outperforming previous state-of-the-art models like MIANet.
- COCO-20i: On this more complex dataset, the model reached 49.97% (1-shot) and 54.43% (5-shot) mIoU.
Qualitative analysis indicates that Sym-Net is particularly effective at suppressing background noise and handling significant intra-class variations, thanks to its symmetrical learning strategy and the use of text as a semantic anchor.
Conclusion and Future Work
Sym-Net demonstrates that treating query and support images symmetrically can significantly improve few-shot segmentation performance. By anchoring visual features to text embeddings and utilizing parameter-free spatial priors, the model effectively bridges the gap between support and query appearances.
One remaining limitation is the model's performance on objects with highly complex shapes or fine edges, such as bicycle spokes. Future research will focus on integrating edge-aware mechanisms and more sophisticated attention modules to better capture these intricate details.
Summary updated