Introduction
Few-Shot Semantic Segmentation (FSS) is a challenging task that requires models to segment novel object categories using only a few annotated examples. Recent advancements have leveraged vision-language models like CLIP to provide textual priors. However, standard approaches often rely on a single generic prompt (e.g., "a photo of a dog"), which leads to two primary issues: semantic incompleteness and weak cross-modal interaction. Semantic incompleteness occurs when a single prompt only activates the most discriminative parts of an object, while weak interaction makes models susceptible to noise from support image backgrounds.
Methods: The MTGNet Framework
To address these limitations, the authors propose MTGNet, a dual-branch network that utilizes multiple text prompts to guide the segmentation process. The architecture consists of three core modules designed to exploit the richness of textual descriptions:
- Multi-Textual Prior Refinement (MTPR): This module moves beyond the single-prompt paradigm by processing a set of descriptive phrases. By computing the similarity between image features and multiple text embeddings, it generates a set of initial priors. The Threshold Similarity Propagation (TSP) mechanism then refines these maps, suppressing background noise while enhancing foreground regions to create a comprehensive global prior.
- Text Anchor Feature Fusion (TAFF): TAFF utilizes the multi-text embeddings as shared semantic anchors. It computes a text-to-image affinity to align support and query features in a common semantic space. This ensures that even with significant pose or appearance changes, the model can reliably associate corresponding object parts (e.g., identifying "wheels" on different car models).
- Foreground Confidence-Weighted Attention (FCWA): Recognizing that support masks may be noisy, FCWA computes a self-attention mechanism on the support foreground. It generates a refined query prior by weighting support features based on their internal consistency, effectively filtering out mislabeled background pixels before they can interfere with the query segmentation.
Key Insights: The Power of "Parts"
A central finding of this work is that describing an object's sub-components via text significantly expands the activation map. While a single prompt might only identify a person's face or torso, multi-text prompts (e.g., "head," "arm," "legs") ensure the model recognizes the entire silhouette. This transition from text as a simple label to text as a structural "bridge" allows the model to learn that disparate regions in support and query images are semantically identical because they align with the same textual anchor. This approach effectively handles the massive visual variations found in complex real-world categories.
Experimental Results
MTGNet was evaluated on the PASCAL-5i and COCO-20i benchmarks, setting a new state-of-the-art for CLIP-based FSS. On PASCAL-5i, the model achieved 76.8% mIoU in the 1-shot setting and 78.4% mIoU in the 5-shot setting. On the more complex COCO-20i dataset, it reached 57.4% mIoU (1-shot) and 61.0% mIoU (5-shot).
The benefit of multi-text guidance was most evident in complex classes. For the "person" category, moving from single-text to multi-text guidance resulted in a significant +9.73% mIoU improvement. Qualitative visualizations confirm that MTGNet produces much more complete masks for structurally complex objects like trains or people compared to previous methods.
Conclusion
MTGNet demonstrates that multi-text guidance can effectively overcome the limitations of single-prompt CLIP-based FSS. By using text as an active participant in feature alignment and refinement, the model achieves superior segmentation performance and robustness against noise. Future work may explore adaptive, context-aware prompt selection and more dynamic cross-modal reasoning to further enhance performance in open-world scenarios where categories are even more ambiguous.
Summary updated