Introduction
Weakly Supervised Semantic Segmentation (WSSS) aims to train segmentation models using only image-level labels, significantly reducing the cost of manual annotation. However, existing Vision Transformer (ViT) based methods often struggle with semantic ambiguity and feature over-smoothing. This paper introduces Prompt Categories Clustering (PCC), a framework that leverages the semantic knowledge of Large Language Models (LLMs) to group related categories, thereby enhancing the model's ability to learn shared features and produce precise segmentation masks.
Addressing the Limitations of WSSS
Current WSSS approaches face two primary hurdles:
- The "Equidistant" Assumption: Traditional models often treat all object classes as equally distinct. In reality, categories like "cat" and "dog" share significant semantic and visual features compared to "car." Ignoring these relationships leads to ambiguity during training.
- Feature Over-smoothing: The self-attention mechanism in ViTs acts as a low-pass filter, which can blur the boundaries between distinct object patches, making it difficult to achieve sharp segmentation.
The PCC Framework
The PCC framework introduces a hierarchical approach to category representation by integrating LLM-derived clusters into the visual learning pipeline.
1. Self-Refine Prompt for Clustering
The authors utilize GPT to automatically group dataset categories based on common characteristics (e.g., grouping "airplane" and "bus" under "Vehicle"). To ensure robustness, a "self-refine" loop is employed where the LLM iteratively reviews and adjusts the clusters until they reach a stable, semantically coherent state.
2. Category Cluster Tokens
These semantic clusters are mapped to learnable "cluster tokens" via a learnable matrix. These tokens are concatenated with standard ViT image patch tokens, providing the network with relational context. This "semantic anchor" helps the model recognize that a specific patch belongs to a broader category with shared features, mitigating the over-smoothing effect.
3. Refinement Pipeline
The concatenated tokens are processed through an HV-BiLSTM for further feature refinement and a patch classifier. The resulting pseudo-labels are then refined using a Conditional Random Field (CRF) before being used to train a final segmentation model, such as DeepLabv2.
Experimental Results
The PCC framework was evaluated on the PASCAL VOC 2012 benchmark. The method achieved a state-of-the-art (SOTA) pseudo-label quality of 74.8% mIoU, surpassing previous methods like SFC (73.7%) and USAGE (72.8%).
Ablation studies highlighted the impact of the cluster tokens: while adding a standard class token improved the baseline by 1.2%, the inclusion of cluster tokens yielded a 3.6% performance boost. This confirms that leveraging shared category information is crucial for improving segmentation accuracy in weakly supervised settings.
Conclusion
By bridging the gap between high-level semantic knowledge and low-level visual features, PCC offers a powerful solution for WSSS. The use of LLMs to provide hierarchical structure allows the model to overcome traditional limitations of ViTs, leading to more accurate and distinct object boundaries. Future research may explore scaling this approach to larger datasets with more complex category hierarchies.
Summary updated