Learning Open-vocabulary Semantic Segmentation Models From Natural Language Supervision

Jilan Xu, Junlin Hou, Yuejie Zhang, Rui Feng, Yi Wang, Yu Qiao, Weidi Xie

Introduction

Semantic segmentation—the task of assigning a categorical label to every pixel in an image—has traditionally been a "closed-set" problem. Models are typically trained on a fixed set of categories (e.g., "car," "person," "tree") using labor-intensive, manually annotated pixel masks. This approach is not only expensive but also limits the model's utility; a model trained on 20 classes is fundamentally unable to recognize a 21st class without further supervised training.

Open-Vocabulary Semantic Segmentation (OVS) aims to overcome these limitations by leveraging the vast amount of image-text pairs available on the web. The goal is to develop models that can segment any object described in natural language. However, web-crawled captions are often "noisy" and "coarse." A caption might describe a scene generally without specifying which pixels correspond to which words. OVSegmentor addresses this challenge by using a transformer-based architecture that aligns visual groups with textual entities through innovative proxy tasks, achieving state-of-the-art performance with significantly less data.

The OVSegmentor Architecture

OVSegmentor bridges the gap between vague text and precise pixel-level masks through three primary mechanisms:

1. Slot-Attention Binding

Rather than treating pixels as independent units, OVSegmentor employs a slot-attention mechanism. This allows the model to cluster similar pixels into a set of learnable "group tokens." By doing so, the model effectively "discovers" object boundaries and regions in an unsupervised manner, identifying coherent visual structures before they are even linked to specific words.

2. Masked Entity Completion ($L_{entity}$)

To create a fine-grained mapping between visual clusters and language, the authors introduce a Masked Entity Completion task. Inspired by Masked Language Modeling (MLM) in models like BERT, this task involves masking specific object names within a caption (e.g., "A [MASK] sits on a [MASK]"). The model must then use its visual group tokens to predict the missing words. This forces the model to learn exactly which visual cluster represents which entity, creating a tight coupling between pixels and semantics.

3. Cross-Image Mask Consistency ($L_{mask}$)

To ensure the model learns robust representations, the authors enforce consistency across different images. If two separate images both contain the entity "cat," the model is encouraged to produce similar semantic masks for that entity in both contexts. This helps the model understand that the core features of an object remain consistent regardless of the background or lighting.

Data Strategy: Quality Over Quantity

A significant contribution of this research is the creation of the CC4M dataset. By filtering the massive Conceptual Captions 12M (CC12M) dataset, the authors retained only the 4.3 million pairs containing "informative entities"—physical objects like "car" or "dog"—while discarding abstract nouns like "perspective" or "view."

This focus on entities rather than all nouns significantly boosts training efficiency. OVSegmentor demonstrates that high-quality, entity-focused data is more valuable than raw scale; the model outperforms competitors trained on 134 million images while using only 4 million.

Experimental Results

OVSegmentor was evaluated on several zero-shot benchmarks, including PASCAL VOC 2012, PASCAL Context, and COCO Object. The results demonstrate a new high bar for the field:

  • State-of-the-Art Performance: On PASCAL VOC, OVSegmentor achieved 53.8 mIoU, significantly outperforming previous models like GroupViT.
  • Extreme Efficiency: The model achieved these results using only 3% of the data (4M vs. 134M images) required by previous state-of-the-art methods.
  • Generalization: The model successfully segmented "unseen" classes—objects not specifically targeted during the entity-filtering process—proving that it retains the broad knowledge of its underlying text encoder.

Limitations and Future Work

While OVSegmentor represents a major step forward, several challenges remain:

  • The "Person" Class: The model struggles with humans due to the extreme variance in poses, clothing, and contexts found in web data, which makes consistent clustering difficult.
  • Co-occurrence Confusion: In cases where two objects frequently appear together (e.g., a "keyboard" and a "monitor"), the model may struggle to distinguish their individual boundaries if the captions are consistently vague.
  • Background "Stuff": Classes like "grass," "sky," or "walls" are often ignored in captions, leading the model to prioritize "thing" classes (discrete objects) over "stuff" classes (background textures).

Future research will likely focus on improving the granularity of web-based supervision and developing better methods for handling high-variance categories and background elements.

Summary updated

BibTeX
@inproceedings{xu2023learning,
  author = {Jilan Xu and Junlin Hou and Yuejie Zhang and Rui Feng and Yi Wang and Yu Qiao and Weidi Xie},
  title = {{Learning Open-vocabulary Semantic Segmentation Models From Natural Language Supervision}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure