Introduction
Weakly Supervised Semantic Segmentation (WSSS) aims to train models for pixel-level labeling using only image-level tags, significantly reducing the cost of manual annotation. A common technique involves generating Class Activation Maps (CAMs), which identify discriminative regions used for classification. However, standard CAMs often fail to capture the full extent of an object. While recent methods leverage Vision-Language Models like CLIP through prompt tuning, they typically focus on optimizing the prompt's context (e.g., "A photo of..."). This paper introduces POLE (PrOmpt cLass lEarning), demonstrating that optimizing the class name itself is far more effective than tuning the surrounding context.
Methodology: PrOmpt cLass lEarning (POLE)
The POLE framework shifts the focus of prompt engineering from context tokens to the class token ([CLS]). The method follows a three-stage pipeline:
- Synonym Generation: Utilizing Large Language Models (LLMs) like ChatGPT, the system generates a diverse set of semantically related synonyms for each dataset category (e.g., "locomotive" or "railway" for "train").
- Image-Driven Selection: For a given input image, an initial CAM is generated to identify the object region. This region is cropped and compared against the synonym pool using CLIP. The synonym with the highest visual correlation is selected as the optimal class token for that specific instance.
- Learnable Adaptors: Lightweight Multi-Layer Perceptrons (MLPs) act as adaptors for image and text embeddings. Unlike static adaptors, these use learnable vectors to dynamically refine features based on the specific image-text pair.
Experimental Setup
The authors evaluated POLE on the PASCAL VOC 2012 benchmark, a standard for WSSS. The training set consists of 10,582 images with image-level labels, while evaluation is performed on validation (1,449 images) and test (1,456 images) sets. To determine the best source for synonyms, the researchers compared ChatGPT against the British National Corpus, Google News, and English Wikipedia, finding that LLM-generated synonyms provided the strongest performance.
Results and Discussion
The core finding of this research is the "Ground Truth Paradox": the official dataset label is frequently not the most effective word for CLIP-based segmentation. By allowing the model to dynamically select synonyms, POLE produces more complete and accurate activation maps. Analysis revealed that for many classes, the ground truth label was the optimal token in less than 50% of cases, highlighting the benefit of dynamic selection.
Quantitatively, POLE establishes a new state-of-the-art for WSSS using convolutional backbones. As shown in the performance table, POLE achieves a significant lead over previous methods in both initial CAM quality and refined pseudo-labels.
Key performance metrics include:
- Pseudo-label Quality: POLE reached 74.2% mIoU for refined CAMs, a 3.7% improvement over the previous best, CLIMS.
- Final Segmentation: When training a DeepLabV2 model, POLE achieved 71.5% mIoU on the validation set and 71.4% on the test set.
Conclusion
POLE demonstrates that in the context of CLIP-guided WSSS, the choice of class name is a critical yet overlooked hyperparameter. By moving beyond fixed ground truth labels and optimizing the class token through image-driven synonym selection, the method achieves superior segmentation performance with a simpler approach than continuous prompt tuning. Future work will explore scaling this strategy to larger datasets like MS COCO and integrating it with Vision Transformer architectures.
Summary updated