FreeSeg: Free Mask from Interpretable Contrastive Language-Image Pretraining for Semantic Segmentation

Yi Li, Huifeng Yao, Hualiang Wang, Xiaomeng Li · DOI

TL;DR

This paper introduces FreeSeg, a novel framework for semantic segmentation that leverages natural language supervision to generate masks without requiring any pixel-level annotations. By adapting interpretable contrastive language-image pretraining (ICLIP), FreeSeg achieves state-of-the-art performance with significantly reduced annotation costs.

What Problem Does This Paper Address?

Semantic segmentation, a crucial task in computer vision, traditionally relies on dense pixel-level annotations, which are expensive and time-consuming to acquire. While previous methods have explored weaker supervision signals (scribbles, boxes, image-level labels) or semi-supervised approaches, they still require some form of manual annotation. Furthermore, existing methods for open-vocabulary segmentation often struggle with unseen classes or require complex post-processing steps. This paper aims to bridge this gap by enabling semantic segmentation using only natural language supervision, effectively creating "free masks" from pre-trained models.

Methods

FreeSeg builds upon Interpretable Contrastive Language-Image Pretraining (ICLIP) to extract semantic information. The core contributions are:

  • Dense ICLIP for Segmentation: The authors adapt ICLIP to generate dense Image-Text Similarity Maps (ITSMs) suitable for segmentation. This involves increasing input resolution and addressing the issue of "partial activation" where the model focuses too intensely on highly discriminative regions, leading to incomplete segmentation.
  • Smoothed Min Pooling (SMP): To combat partial activation in dense ITSMs, FreeSeg introduces SMP. This novel pooling method combines smoothing (via average pooling) with global minimum pooling. Smoothing helps to mitigate peak activations, while min pooling further refines the features, leading to more robust and detailed ITSMs. SMP is used during training to learn better projections.
  • Partially Supervised Semantic Segmentation: After generating dense ITSMs, FreeSeg converts them into segmentation masks. This is achieved through a two-stage process:
  • Partial Label Strategy (PLS): Instead of using all predicted labels, PLS selects a subset of "credible" labels based on zero-shot scores. This helps to filter out noisy or irrelevant categories.
  • Partial Pixel Strategy: The initial segmentation masks generated by PLS are used as pseudo-masks to train a segmentation network (PSPNet). This stage further refines the masks by incorporating partial pixel supervision, preserving reliable signals and improving accuracy.

Datasets

  • Training: Google Conceptual Captions 3 million (GCC3M) dataset.
  • Evaluation: PASCAL VOC 2012 validation dataset and MS COCO 2017 validation dataset.

Key Insights and Ideas

  • Natural Language as a Free Annotation Source: The paper demonstrates that pre-trained vision-language models can be adapted to generate segmentation masks with minimal to no manual annotation, significantly reducing data acquisition costs.
  • The Challenge of "Partial Activation": Simply increasing the resolution of ITSMs from models like ICLIP leads to a problem where the model over-focuses on a few highly discriminative regions, leaving other parts of the object unsegmented.
  • Smoothed Min Pooling's Effectiveness: SMP is crucial for generating high-quality dense ITSMs. It effectively balances the need to focus on discriminative regions with the requirement to capture the entire object, avoiding both over-segmentation and under-segmentation.
  • Pseudo-Masks for Refinement: Using the initial, imperfect masks generated from ITSMs as pseudo-labels for a subsequent segmentation network is a powerful strategy for improving performance, especially when combined with partial supervision.

Key Results

  • State-of-the-Art Performance: FreeSeg achieves significant improvements over previous methods on PASCAL VOC 2012, with an mIoU of 50.27% for stage 1 and 65.68% for stage 2, outperforming GroupViT by 13.1% and 13.4% respectively.
  • Data Efficiency: FreeSeg trains on only 3 million image-text pairs (GCC3M), significantly less than many prior methods, yet achieves competitive or superior results.
  • Reduced Annotation Cost: The primary advantage is the elimination of pixel-level annotations, relying solely on natural language supervision.
  • Qualitative Improvements: Visualizations show that FreeSeg produces more detailed and complete segmentations, especially in stage 2, effectively addressing voids and noise present in earlier stages.

Limitations and Future Work

  • CLIP's Zero-Shot Multi-Label Limitations: The paper acknowledges that CLIP's zero-shot multi-label classification can be noisy, as text descriptions may not always fully capture all objects in an image. This can lead to missed categories, a problem that is universal in open-vocabulary segmentation.
  • Inherited ICLIP Limitations: FreeSeg inherits limitations from ICLIP, such as potentially worse performance on complex or specific categories.
  • Dataset Influence: The performance of FreeSeg can be influenced by the training dataset, as demonstrated by variations in results when comparing different datasets.
  • Future Work: The authors suggest further improvements are needed, particularly in addressing the inherent noise in natural language supervision and enhancing performance on challenging categories. The paper also hints at further analysis of min pooling in an appendix, suggesting potential for deeper exploration of its properties.

Summary updated

Abstract

Fully supervised semantic segmentation learns from dense masks, which requires heavy annotation cost for closed set. In this paper, we use natural language as supervision without any pixel-level annotation for open world segmentation. We call the proposed framework as FreeSeg, where the mask is freely available from raw feature map of pretraining model. Compared with zero-shot or openset segmentation, FreeSeg doesn't require any annotated masks, and it widely predicts categories beyond class-agnostic unsupervised segmentation. Specifically, FreeSeg obtains free mask from Image-Text Similarity Map (ITSM) of Interpretable Contrastive Language-Image Pretraining (ICLIP). And our core improvements are the smoothed min pooling for dense ICLIP, with the partial label and pixel strategies for segmentation. Furthermore, FreeSeg is very straight forward without complex design like grouping, clustering or retrieval. Besides the simplicity, the performances of FreeSeg surpass previous state-of-the-art at large margins, e.g. 13.4% higher at mIoU on VOC dataset in the same settings.
BibTeX
@misc{li2022freeseg,
  author = {Yi Li and Huifeng Yao and Hualiang Wang and Xiaomeng Li},
  title = {{FreeSeg: Free Mask from Interpretable Contrastive Language-Image Pretraining for Semantic Segmentation}},
  year = {2022},
  eprint = {2209.13558},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.13558},
}
Figure