Question-Answer Cross Language Image Matching for Weakly Supervised Semantic Segmentation
Songhe Deng, Wei Zhuo, Jinheng Xie, Linlin Shen
TL;DR
Weakly supervised semantic segmentation often suffers from CAM under-activation of target objects and spurious background activation due to limited supervision. QA-CLIMS leverages vision-language pre-training by introducing Question-Answer Prompt Engineering (QAPE) to generate query-adaptive foreground and background text prompts, and a Region Image-Text Contrastive (RITC) network to align region images with open-vocabulary text. The method employs foreground and background contrastive losses, a foreground adaptive thresholding mechanism, and area regularization to produce high-quality CAMs, achieving state-of-the-art results on VOC 2012 and COCO 2014 after refinement. This approach provides a general, query-adaptive WSSS pipeline that exploits rich textual supervision from VLP models to improve object localization and segmentation performance in real-world datasets.
Abstract
Class Activation Map (CAM) has emerged as a popular tool for weakly supervised semantic segmentation (WSSS), allowing the localization of object regions in an image using only image-level labels. However, existing CAM methods suffer from under-activation of target object regions and false-activation of background regions due to the fact that a lack of detailed supervision can hinder the model's ability to understand the image as a whole. In this paper, we propose a novel Question-Answer Cross-Language-Image Matching framework for WSSS (QA-CLIMS), leveraging the vision-language foundation model to maximize the text-based understanding of images and guide the generation of activation maps. First, a series of carefully designed questions are posed to the VQA (Visual Question Answering) model with Question-Answer Prompt Engineering (QAPE) to generate a corpus of both foreground target objects and backgrounds that are adaptive to query images. We then employ contrastive learning in a Region Image Text Contrastive (RITC) network to compare the obtained foreground and background regions with the generated corpus. Our approach exploits the rich textual information from the open vocabulary as additional supervision, enabling the model to generate high-quality CAMs with a more complete object region and reduce false-activation of background regions. We conduct extensive analysis to validate the proposed method and show that our approach performs state-of-the-art on both PASCAL VOC 2012 and MS COCO datasets. Code is available at: https://github.com/CVI-SZU/QA-CLIMS
