Associating Spatially-Consistent Grouping with Text-supervised Semantic Segmentation

Yabo Zhang, Zihao Wang, Jun Hao Liew, Jingjia Huang, Manyu Zhu, Jiashi Feng, Wangmeng ZuoarXiv 2023 · DOI

Introduction: The Annotation Bottleneck

Semantic segmentation is a fundamental computer vision task that involves assigning a category label to every pixel in an image. Traditionally, this requires exhaustive human-annotated, pixel-level labels, creating a significant "annotation bottleneck." To overcome this, researchers have explored text-supervised semantic segmentation, leveraging the abundance of image-caption pairs available online.

However, current state-of-the-art methods, such as GroupViT, often struggle with spatially inconsistent grouping. These models typically learn to group pixels based on global image-text matching, which lacks spatial sensitivity. This results in coarse, noisy regions where pixels from distinct objects are erroneously merged. This paper argues that the quality of initial grouping is the primary bottleneck in text-supervised segmentation and proposes a solution that decouples grouping from recognition.

Methodology: Decoupling Grouping and Recognition

The proposed framework addresses the grouping problem by utilizing a two-stage approach:

  1. Spatially-Consistent Grouping: Rather than learning grouping from sparse text, the authors employ self-supervised vision models (e.g., DINO). These models excel at grouping pixels based on inherent visual features like texture and similarity without requiring any labels. This process clusters the image into $M$ class-agnostic regions.
  2. Region-level Adaptation: To assign semantic labels to these regions, the framework adapts the CLIP model. Since CLIP is trained on global images, two specific modifications are introduced:
  3. One-way Noun-Region Contrastive Loss: Recognizing that captions are often sparse (mentioning only prominent objects), this loss matches each noun in a sentence only to its most similar visual region, effectively ignoring background regions not mentioned in the text.
  4. Context-aware Masking Strategy: To improve recognition accuracy, the model allows region tokens to attend to the entire image context. This "context-aware" approach helps the model identify parts (like a "hand") by looking at the surrounding context (the "arm").
Overview of the proposed framework, decoupling spatially-consistent grouping from CLIP-based recognition.

Key Insights: Grouping as the Primary Bottleneck

A critical finding of this research is that the upper bound of segmentation performance is strictly limited by the quality of the initial grouping. By assigning ground-truth labels to the regions generated by various models, the authors demonstrated that their grouping method achieves a 75.2% mIoU upper bound, significantly higher than GroupViT's 66.3%.

Comparison of grouping quality and segmentation results. The proposed method achieves a higher upper bound mIoU and more consistent regions compared to prior work.

Furthermore, the authors highlight the importance of handling the asymmetry between dense image data and sparse text. The "one-way" matching strategy prevents noisy gradients from background elements that are absent from the captions, leading to cleaner semantic assignments.

Results and Performance

The model was evaluated on standard benchmarks including Pascal VOC 2012, Pascal Context, and COCO in a zero-shot setting. The results show a substantial improvement over previous text-supervised models:

  • Pascal VOC: 59.2% mIoU (vs. 52.3% for GroupViT).
  • Pascal Context: 32.4% mIoU (vs. 22.4% for GroupViT).
  • COCO: 26.8% mIoU (vs. 24.3% for GroupViT).

Beyond accuracy, the context-aware masking strategy proved to be highly efficient, operating approximately six times faster than naive region-by-region processing.

Limitations and Future Directions

While the framework sets a new state-of-the-art, it faces challenges such as over-segmentation, where a single object (e.g., a person) is split into multiple parts (head, torso, legs). Although these parts are often correctly labeled, the resulting masks can be fragmented. Future research may focus on sophisticated merging strategies to produce more cohesive object masks. Additionally, as the underlying foundation models (DINO and CLIP) continue to evolve, the performance of this framework is expected to scale accordingly.

Summary updated

BibTeX
@misc{zhang2023associating,
  author = {Yabo Zhang and Zihao Wang and Jun Hao Liew and Jingjia Huang and Manyu Zhu and Jiashi Feng and Wangmeng Zuo},
  title = {{Associating Spatially-Consistent Grouping with Text-supervised Semantic Segmentation}},
  year = {2023},
  eprint = {2304.01114},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.01114},
}
Figure