Exploring Open-Vocabulary Semantic Segmentation without Human Labels

Jun Chen, Deyao Zhu, Guocheng Qian, Bernard Ghanem, Zhicheng Yan, Chenchen Zhu, Fanyi Xiao, Mohamed Elhoseiny, Sean Chang CulatanaarXiv 2023

Abstract

Semantic segmentation is a crucial task in computer vision that involves segmenting images into semantically meaningful regions at the pixel level. However, existing approaches often rely on expensive human annotations as supervision for model training, limiting their scalability to large, unlabeled datasets. To address this challenge, we present ZeroSeg, a novel method that leverages the existing pretrained vision-language (VL) model (e.g. CLIP) to train open-vocabulary zero-shot semantic segmentation models. Although VL models have acquired extensive knowledge of visual concepts, it is non-trivial to exploit this knowledge for semantic segmentation, as they are usually trained at an image level. ZeroSeg overcomes this by distilling the visual concepts learned by VL models into a set of segment tokens, each summarizing a localized region of the target image. We evaluate ZeroSeg on multiple popular segmentation benchmarks, including PASCAL VOC 2012, PASCAL Context, and COCO, in a zero-shot manner. Our approach achieves state-of-the-art performance when compared to other zero-shot segmentation methods under the same training data, while also performing competitively compared to strongly supervised methods.

Introduction

Semantic segmentation—the task of assigning a category label to every pixel in an image—is traditionally a "data hungry" field. High-quality models usually require massive datasets of images where humans have painstakingly traced the boundaries of every object. This process is expensive, slow, and limits models to a fixed set of categories (e.g., the 20 classes in PASCAL VOC).

Recent "open-vocabulary" models like CLIP have changed the game by learning from millions of image-text pairs found on the web. However, CLIP is trained at the image level; it knows what a "chameleon" looks like but doesn't naturally know which specific pixels belong to it. Bridging this gap from image-level understanding to pixel-level precision without falling back on expensive human annotations is the core challenge ZeroSeg tackles.

ZeroSeg framework overview showing multi-scale visual distillation from CLIP.

Methodology

ZeroSeg uses a "teacher-student" distillation approach. The "teacher" is a frozen, pretrained CLIP visual encoder, and the "student" is a Masked Autoencoder (MAE) architecture. The authors introduce three key technical innovations:

  1. Multi-scale Feature Extraction: Instead of just looking at the whole image, the input is divided into various grids (e.g., 2x2, 3x3). Each grid cell is resized and passed through CLIP. This forces the model to learn localized, object-centric features rather than just a single global summary.
  2. Segment Tokens: The model uses learnable "segment tokens" that act as prototypes for different regions in the image. These tokens learn to group semantically similar pixels together.
  3. Segment Matching Loss: To ensure these tokens actually correspond to real objects, the authors propose a matching loss. Each segment token is encouraged to align with its "nearest neighbor" in the multi-scale CLIP feature space. This prevents "mask leaking," where a single segment might accidentally span across two different objects.
Detailed architecture of ZeroSeg highlighting the segment matching loss and masked encoder.

Crucially, the student model only "sees" a fraction of the image patches (40%) during training, which significantly boosts computational efficiency.

Experimental Setup

  • Training: The model was primarily trained on ImageNet-1k (1.3 million images) without using any of the provided labels. For ablation studies, the researchers also utilized CC3M and COCO.
  • Evaluation: To test zero-shot performance, the authors evaluated on PASCAL VOC 2012, PASCAL Context, and COCO.
  • Qualitative Study: The Conceptual Caption validation set was used for human-subject studies to compare results against competing models.

Key Results and Insights

ZeroSeg achieved state-of-the-art zero-shot performance on PASCAL VOC 2012 with a 40.8 mIoU, outperforming other zero-shot methods and self-supervised models like DINO (39.1) and MoCo (34.3).

Key insights from the study include:

  • Text-Free Efficiency: Surprisingly, training on unlabeled images (ImageNet) yielded better segmentation results than training on image-caption pairs (CC3M). ImageNet's centered objects align better with standard segmentation benchmarks.
  • The "Zoom-In" Effect: Naively distilling CLIP’s global feature into a segmentation model fails. Explicitly forcing the model to look at sub-regions (multi-scale views) is necessary to capture concept-specific information.
  • Vocabulary Robustness: Because ZeroSeg doesn't rely on specific text during training, it is more robust to complex or compound words like "tandem bicycle" or "keyboard."
  • Efficiency Gains: ZeroSeg required only 84 V100 GPU hours to train, compared to 768 hours for GroupViT—a nearly 9x reduction in compute.
  • Human Preference: In a blind study, human workers preferred ZeroSeg’s segmentation masks over GroupViT’s 68% of the time, noting much cleaner object boundaries.

Limitations and Future Work

ZeroSeg relies entirely on CLIP as a teacher and likely inherits its social or data biases. Additionally, while standard MAE models work best by masking 75% of the image, ZeroSeg performs better at a 60% mask ratio, suggesting that pixel-level tasks require more context. Future work will focus on scaling to larger datasets and refining boundary precision in cluttered scenes.

Summary updated

BibTeX
@misc{chen2023exploring,
  author = {Jun Chen and Deyao Zhu and Guocheng Qian and Bernard Ghanem and Zhicheng Yan and Chenchen Zhu and Fanyi Xiao and Mohamed Elhoseiny and Sean Chang Culatana},
  title = {{Exploring Open-Vocabulary Semantic Segmentation without Human Labels}},
  year = {2023},
  eprint = {2306.00450},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.00450},
}
Figure