Question-Answer Cross Language Image Matching for Weakly Supervised Semantic Segmentation

Songhe Deng, Wei Zhuo, Jinheng Xie, Linlin Shen · DOI

Abstract

Weakly Supervised Semantic Segmentation (WSSS) aims to train segmentation models using only image-level labels, significantly reducing annotation costs. However, traditional Class Activation Maps (CAMs) often suffer from under-activation of objects and false activation of co-occurring background elements. We present QA-CLIMS (Question-Answer Cross-Language Image Matching), a novel framework that leverages Visual Question Answering (VQA) to generate image-specific text descriptions for both foreground objects and background contexts. By employing a Region Image-Text Contrastive (RITC) network, QA-CLIMS aligns visual regions with these tailored textual prompts, effectively suppressing background noise and improving object coverage. Our method achieves state-of-the-art performance on PASCAL VOC 2012 and MS COCO 2014 benchmarks, significantly outperforming existing weakly supervised methods.

Introduction

Semantic segmentation is a fundamental computer vision task that typically requires pixel-level annotations, which are labor-intensive to produce. WSSS offers a cost-effective alternative by utilizing image-level tags. The primary challenge in WSSS is the reliance on CAMs, which tend to focus on the most discriminative parts of an object (e.g., a bird's head) and often misidentify frequently co-occurring background elements (e.g., railroad tracks for a train) as part of the target class. While previous works attempted to use fixed background word lists to mitigate this, they fail to capture the vast diversity of real-world backgrounds. QA-CLIMS addresses this by "interviewing" images to understand their specific context.

Methodology

QA-CLIMS addresses the limitations of standard CAMs through a two-stage process that integrates large-scale vision-language knowledge into the segmentation pipeline.

1. Question-Answer Prompt Engineering (QAPE)

Instead of static lists, QAPE utilizes a VQA model (e.g., BLIP) to generate a custom corpus for every image. By asking targeted questions such as "What is around the [class]?" and "What is this [class] also called?", the system identifies specific background elements (e.g., "water," "dock") and foreground aliases (e.g., "rowboat").

2. Region Image-Text Contrastive (RITC) Network

This network leverages pre-trained Vision-Language Models like CLIP to refine the CAMs. It optimizes two primary contrastive losses:

  • Foreground Region Contrastive (FRC): Aligns object pixels with foreground aliases while distancing them from background text.
  • Background Region Contrastive (BRC): Ensures background pixels match the specific VQA-generated descriptions.

Additionally, a Foreground Adaptive Thresholding (FAT) module is introduced to dynamically adjust the foreground-background boundary based on model confidence, enhancing robustness against noise during training.

Overview of the QA-CLIMS architecture, illustrating the QAPE process and the RITC network.

Results and Discussion

The framework was evaluated on PASCAL VOC 2012 and MS COCO 2014. QA-CLIMS demonstrated a substantial improvement in initial CAM quality, reaching 67.3% mIoU on PASCAL VOC compared to 56.6% for the previous state-of-the-art, CLIMS. Final segmentation results reached 75.6% mIoU on PASCAL VOC and 43.2% mIoU on MS COCO.

Qualitative analysis reveals that QA-CLIMS is significantly more effective at capturing complete object shapes and distinguishing them from complex, co-occurring backgrounds. For instance, it can successfully separate a train from its platform or a boat from the surrounding water, where previous methods often failed due to contextual confusion.

Qualitative comparison of segmentation masks generated by CAM, CLIMS, and QA-CLIMS against ground truth.

Conclusion

QA-CLIMS demonstrates the power of integrating open-vocabulary knowledge from large-scale pre-trained models into specific downstream tasks. By treating backgrounds as specific entities rather than generic noise, the model achieves superior localization. While the system relies on the accuracy of the underlying VQA model, it represents a significant step forward in making weakly supervised learning a viable alternative to fully supervised segmentation.

Summary updated

BibTeX
@inproceedings{deng2023question,
  author = {Songhe Deng and Wei Zhuo and Jinheng Xie and Linlin Shen},
  title = {{Question-Answer Cross Language Image Matching for Weakly Supervised Semantic Segmentation}},
  booktitle = {ACM Multimedia},
  year = {2023},
  doi = {10.1145/3581783.3612148},
}
Figure