NamedMask: Distilling Segmenters from Complementary Foundation Models

Gyungin Shin, Weidi Xie, Samuel Albanie

Abstract

Semantic segmentation typically requires dense, pixel-level annotations that are prohibitively expensive to produce at scale. We present NamedMask, a novel framework that achieves high-quality semantic segmentation without using a single manual pixel-level label during training. By distilling the semantic "naming" expertise of CLIP and the "structural" geometric knowledge of DINO, NamedMask creates a robust segmenter that significantly outperforms previous annotation-free methods across multiple benchmarks, including PASCAL VOC2012 and ImageNet-S.

Introduction

Semantic segmentation—the task of assigning a category label to every pixel in an image—is a cornerstone of computer vision. However, the data bottleneck is severe: manually annotating a single image for segmentation can take over an hour. While foundation models have revolutionized the field, they possess distinct "blind spots." CLIP, trained on text-image pairs, is excellent at identifying what is in an image but struggles with precise object boundaries. Conversely, DINO, trained via self-supervision on vision only, excels at finding object structures and boundaries but lacks semantic category knowledge. NamedMask addresses the challenge of combining these two complementary strengths into a fully automated, annotation-free pipeline.

Methodology

The NamedMask pipeline operates in four distinct stages to bridge the gap between high-level semantics and low-level geometry:

  1. Dynamic Archive Construction: Given a list of target categories (e.g., "dog," "bus"), the system uses CLIP to retrieve the most relevant images from a massive, unlabeled pool (such as ImageNet or LAION-5B). This process creates category-specific "archives" that serve as the training foundation.
  2. Mask Generation: For every image in these archives, the system employs SelfMask (a category-agnostic tool derived from DINO) to generate a rough initial mask of the most salient or prominent object.
  3. Expert Refinement: A key innovation of this work is the training of "category-specific experts." These are simple binary segmenters trained on each archive to distinguish their specific category from the background. This stage effectively cleans up the noisy initial DINO masks, producing high-quality pseudo-labels.
  4. Final Distillation: A standard segmentation architecture (DeepLabv3+) is trained on the refined archives. To enable the model to handle complex scenes with multiple objects, the authors utilize Copy-Paste augmentation, digitally "pasting" objects from different category archives into single training images.
The three-stage pipeline of NamedMask: Dynamic dataset construction, Mask generation, and Expert refinement.

Experimental Results

The authors evaluated NamedMask on five major benchmarks, including PASCAL VOC2012, COCO, Cityscapes, and ImageNet-S. To build the training archives, they utilized unlabeled images from ImageNet1K and the massive LAION-5B dataset.

NamedMask sets a new state-of-the-art for the "SLOWP" (Segmentation Leveraging Only Weak Pretraining) category. On PASCAL VOC2012, the model achieved 59.2 mIoU, a substantial leap over the previous best of 34.2 (ReCo). On the challenging 300-category split of ImageNet-S, NamedMask achieved 32.8 mIoU, compared to just 8.5 for ReCo and 1.6 for MaskCLIP.

Qualitative results showing NamedMask's ability to segment various categories including sheep, buses, motorbikes, and dogs.

Key Insights

  • Complementarity: The core success of NamedMask lies in the synergy between CLIP (the semantic anchor) and DINO (the geometric precision tool).
  • Self-Correction: Category-specific experts learn the unique visual signatures of their classes, allowing them to ignore background clutter that often confuses general-purpose saliency detectors.
  • Scalability: Performance scales monotonically with the size of the retrieved image archive; more unlabeled data directly translates to higher segmentation accuracy.

Conclusion and Future Work

NamedMask demonstrates that high-quality semantic segmentation is possible without manual pixel-level labels by leveraging the latent knowledge in existing foundation models. While the current framework requires retraining to add new categories, future work may involve predicting embeddings in CLIP's shared space to allow for "open-vocabulary" segmentation. Additionally, addressing "saliency bias"—where the model groups co-occurring objects like a motorbike and its rider—remains an open challenge for fully unsupervised structural discovery.

Summary updated

BibTeX
@inproceedings{shin2022namedmask,
  author = {Gyungin Shin and Weidi Xie and Samuel Albanie},
  title = {{NamedMask: Distilling Segmenters from Complementary Foundation Models}},
  booktitle = {Workshops @ CVPR},
  year = {2022},
}
Figure