Sparsely Annotated Semantic Segmentation with Adaptive Gaussian Mixtures

Linshan Wu, Zhun Zhong, Leyuan Fang, Xingxin He, Qiang Liu, Jiayi Ma, Hao Chen

Abstract

Training semantic segmentation models typically requires expensive, pixel-perfect labels. This paper introduces AGMM (Adaptive Gaussian Mixture Model), a framework that achieves state-of-the-art performance using only sparse annotations such as single points or scribbles. By modeling class distributions as dynamic Gaussian mixtures in the feature space, the system reliably provides self-supervision for unlabeled pixels during training, bridging the gap between sparse and dense supervision.

Introduction: The Supervision Gap

Semantic segmentation—the task of assigning a category to every pixel in an image—is a cornerstone of computer vision. However, creating ground truth datasets is labor-intensive; for instance, labeling a single Cityscapes image can take over 90 minutes.

Sparsely Annotated Semantic Segmentation (SASS) attempts to mitigate this by training models on "cheap" labels like a few dots or a quick scribble. The primary challenge is the "supervision gap": how to accurately classify the vast majority of unlabeled pixels. Existing methods often rely on low-level image cues (like color boundaries) or noisy pseudo-labels generated in slow, multi-stage training processes. These approaches frequently fail to capture high-level semantic relationships between labeled and unlabeled regions.

Comparison of SASS frameworks and the AGMM approach.

Methodology: Adaptive Gaussian Mixture Models (AGMM)

The authors propose the AGMM framework, which adds a secondary "GMM branch" alongside the standard segmentation network to provide online supervision.

1. Adaptive Gaussian Mixtures

Instead of relying solely on labeled pixels for a standard loss function, AGMM uses them as "centroids" to build a probability distribution for each class in a high-dimensional feature space. The model calculates the mean ($\mu$) and variance ($\sigma$) of features for each class dynamically, based on the specific input image.

2. Online Supervision and Contrastive Learning

Unlike traditional methods that generate static pseudo-labels, AGMM is adaptive. It uses GMM predictions to supervise unlabeled pixels in real-time. To ensure the model distinguishes between similar classes (e.g., bus vs. car), the authors introduce a contrastive loss ($L_{con}$). This mathematically pushes the centroids of different Gaussian mixtures apart, forcing the model to learn sharper decision boundaries. Crucially, the GMM branch is discarded after training, maintaining standard inference speeds.

Key Insights: The Similarity Hypothesis

A core observation of this work is that if an unlabeled pixel is close to a labeled pixel in the feature space, the model's prediction is significantly more likely to be correct. AGMM explicitly exploits this by using labeled pixels to "anchor" the distributions of unlabeled ones. By calculating class variance ($\sigma$) per image rather than using a fixed global value, the model effectively handles objects under varying lighting conditions and perspectives.

Relation between labeled/unlabeled pixels and category-wise performance.

Experimental Results

AGMM established new state-of-the-art (SOTA) benchmarks across two industry-standard datasets:

  • PASCAL VOC 2012:
    • Point supervision: Achieved 69.6% mIoU, outperforming the previous best (TEL) by 4.7%.
  • Scribble supervision: Achieved 76.4% mIoU, nearly matching the performance of models trained on dense, expensive labels (~78%).
  • Cityscapes: In the 20-click setting, AGMM outperformed previous methods by a massive 5.8% mIoU, proving its effectiveness in complex, cluttered urban scenes.

Conclusion and Future Work

AGMM demonstrates that modeling class distributions as adaptive Gaussian mixtures can significantly improve the efficiency of sparsely supervised learning. While the method currently relies on labeled pixels being representative of their classes, it moves beyond the limitations of multi-stage training and low-level image affinity. Future research may explore integrating AGMM with image-level tags to further reduce the need for manual annotations.

Summary updated

BibTeX
@inproceedings{wu2023sparsely,
  author = {Linshan Wu and Zhun Zhong and Leyuan Fang and Xingxin He and Qiang Liu and Jiayi Ma and Hao Chen},
  title = {{Sparsely Annotated Semantic Segmentation with Adaptive Gaussian Mixtures}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.01483},
}
Figure