Abstract
Weakly Supervised Semantic Segmentation (WSSS) aims to produce pixel-level masks using only image-level labels. Current Vision Transformer (ViT) based approaches often suffer from semantic ambiguity between similar classes and the inherent over-smoothing effect of transformers. We propose the Prompt Categories Cluster (PCC) framework, which leverages Large Language Models (LLMs) to provide semantic hierarchical priors. By injecting cluster-level information via learnable tokens, PCC effectively differentiates between similar categories and preserves high-frequency spatial details. Our method achieves state-of-the-art performance on the PASCAL VOC 2012 benchmark with a pseudo-label mIoU of 74.8%.
Introduction
Weakly Supervised Semantic Segmentation (WSSS) is a critical task for reducing the high cost associated with pixel-level annotations. By utilizing only image-level labels, WSSS seeks to bridge the gap between coarse classification and fine-grained segmentation. However, two primary challenges persist: semantic ambiguity and ViT over-smoothing.
Semantic ambiguity arises because traditional models treat all class differences equally, failing to exploit shared features within broader categories (e.g., "cat" and "dog" both being "animals"). Furthermore, Vision Transformers (ViTs), while powerful for capturing global context, often act as low-pass filters. This over-smoothing effect blurs patch distinctiveness, making precise edge detection difficult.
Methodology
The PCC framework addresses these issues by incorporating LLM-derived semantic clusters into the vision pipeline. The process consists of several key components:
- Self-Refining LLM Clustering: We utilize GPT-4o to categorize object classes into semantically meaningful clusters (e.g., "Vehicles," "Animals"). A self-refining prompt loop ensures the stability and coherence of these clusters across multiple iterations.
- Cluster Token Injection: These clusters are mapped to learnable "cluster tokens." These tokens are concatenated with standard ViT patch tokens, providing the model with a semantic hierarchy that helps it recognize shared latent features within a cluster.
- Refinement and Classification: The augmented token set is processed through an HV-BiLSTM to refine spatial relationships. Patch-level predictions are then aggregated using Top-K pooling for image-level supervision via multi-label cross-entropy loss.
Experimental Results
The PCC framework was evaluated on the PASCAL VOC 2012 dataset, using 10,582 training images with image-level labels and 1,449 validation images.
Our method demonstrates superior performance in generating high-quality pseudo-labels. As shown in the table below, PCC achieves a mean Intersection over Union (mIoU) of 74.8%, outperforming recent state-of-the-art methods such as SFC and USAGE.
Ablation studies further confirm the efficacy of the cluster tokens, which provided a 3.6% mIoU improvement over the baseline ViT framework alone.
Discussion
The core insight of PCC is that class similarity should be treated as a feature rather than a source of error. By recognizing shared characteristics (like fur or wheels), the model gains a better understanding of the "essence" of a category cluster. This conceptual framework, provided by the LLM, acts as a semantic prior that guides the vision model in distinguishing object boundaries from the background more effectively. Additionally, the injection of cluster-specific information counteracts the over-smoothing tendency of ViTs, preserving the high-frequency details necessary for sharp segmentation masks.
Conclusion
The Prompt Categories Cluster (PCC) framework successfully bridges the semantic gap in WSSS by leveraging the common-sense knowledge of LLMs. While the method currently relies on external LLMs and a multi-stage training process, it sets a new benchmark for pseudo-label quality on PASCAL VOC. Future work will explore end-to-end training architectures and the scalability of this clustering approach to more diverse and complex datasets like MS COCO.
Summary updated