Image-Text Co-Decomposition for Text-Supervised Semantic Segmentation

Ji-Jia Wu, Andy Chia-Hao Chang, Chieh-Yu Chuang, Chun-Pei Chen, Yu-Lun Liu, Min-Hung Chen, Hou-Ning Hu, Yung-Yu Chuang, Yen-Yu Lin

Introduction

Semantic segmentation is a fundamental task in computer vision that involves assigning a semantic label to every pixel in an image. Traditionally, this requires dense, pixel-level manual annotations, which are prohibitively expensive and time-consuming to produce at scale. To circumvent this bottleneck, researchers have increasingly turned to text-supervised semantic segmentation. This approach leverages the vast availability of image-caption pairs found on the web, using natural language as a supervisory signal to learn visual concepts.

However, a significant "alignment discrepancy" exists in current text-supervised methods. Most existing models attempt to align a specific image region (e.g., a "car") with an entire, complex caption (e.g., "Red cars parked in front of a pub at night"). Because captions often contain multiple concepts and contextual noise, the resulting supervision is imprecise. At inference time, when the model is asked to segment a single category, it often struggles because it was trained on holistic, multi-concept descriptions rather than granular region-word pairs.

The CoDe Framework

To address this discrepancy, we present Image-Text Co-Decomposition (CoDe). This framework shifts the learning paradigm from broad image-text alignment to granular region-word alignment. By decomposing both the image and the text into corresponding segments during training, the model learns to associate specific visual features with specific linguistic concepts.

1. Image-Text Co-Decomposition

The core of the framework is a dual decomposition process. Given an image-caption pair, a noun selector identifies a "query" word from the caption. An image segmenter then isolates the corresponding visual region. Simultaneously, a novel text segmenter identifies the specific word segment (e.g., "Hot air balloon") rather than just the isolated noun (e.g., "balloon"). This ensures that the linguistic signal retains sufficient semantic context to guide the visual learner effectively.

2. Region-Word Alignment

Once the image and text are decomposed, the model employs contrastive learning (specifically the InfoNCE loss) to align the features of the identified image region with the features of the corresponding word segment. This granular alignment forces the model to learn the precise relationship between visual objects and their textual descriptions, directly mimicking the requirements of the semantic segmentation task at test time.

3. Highlighting Prompts for Domain Adaptation

A common challenge in segment-based learning is the "blank area" problem. When parts of an image or text are masked to focus on a specific region, the resulting input becomes "unnatural" to pre-trained vision-language models like CLIP, which were trained on full, unmasked data. This creates a domain shift that can degrade performance. CoDe introduces learnable highlighting prompts—universal representations that fill these masked areas. These prompts act as a bridge, allowing the model to extract cleaner, more relevant features from the segments of interest without drifting outside the pre-trained model's expected input distribution.

Experimental Results

Datasets and Evaluation

The CoDe framework was trained on the CC3M (Conceptual Captions 3M) and CC12M datasets. To evaluate its performance, we conducted zero-shot semantic segmentation tests across six major benchmarks, categorized by the presence of background classes:

  • With background classes: PASCAL VOC 2012, PASCAL Context, and COCO-Object.
  • Without background classes: COCO-Stuff, Cityscapes, and ADE20K.

Performance Metrics

CoDe established a new state-of-the-art for text-supervised semantic segmentation. It achieved an average mean Intersection-over-Union (mIoU) of 31.8 across all six datasets. This represents a relative improvement of 5.65% over the previous leading method, TCL (30.1 mIoU).

Qualitative analysis further demonstrates that CoDe produces significantly sharper object boundaries and exhibits higher robustness against misclassification compared to baseline models like SimSeg. Ablation studies confirmed the necessity of the co-decomposition module; removing it resulted in a performance drop from 31.8 to 29.8 mIoU, highlighting that granular alignment is the primary driver of the model's success.

Discussion and Limitations

While CoDe represents a significant step forward, certain challenges remain. The model is susceptible to the "co-occurrence trap," where objects that frequently appear together (e.g., a train and its tracks) may be segmented as a single unit because the text supervision rarely provides examples of one without the other. Additionally, the decomposition step increases computational overhead; training CoDe requires approximately 12 hours on four NVIDIA 2080Ti GPUs, a 50% increase over simpler baseline models.

Conclusion

Image-Text Co-Decomposition (CoDe) effectively bridges the gap between holistic text supervision and granular pixel-level tasks. By aligning word segments with image regions and utilizing highlighting prompts to mitigate domain shift, CoDe achieves superior zero-shot segmentation performance. Future work will focus on refining the model's ability to handle complex linguistic structures and disentangling frequently co-occurring visual concepts.

Summary updated

BibTeX
@inproceedings{wu2024image,
  author = {Ji-Jia Wu and Andy Chia-Hao Chang and Chieh-Yu Chuang and Chun-Pei Chen and Yu-Lun Liu and Min-Hung Chen and Hou-Ning Hu and Yung-Yu Chuang and Yen-Yu Lin},
  title = {{Image-Text Co-Decomposition for Text-Supervised Semantic Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure