Semantic Segmentation by Semantic Proportions

Halil Ibrahim Aysel, Xiaohao Cai, Adam Prügel-Bennett · DOI

Abstract

Semantic segmentation typically requires expensive pixel-wise annotations, creating a bottleneck for large-scale computer vision tasks. This paper proposes a novel framework that utilizes "semantic proportions" (SP)—the percentage of each class present in an image—as a weak supervision signal. By training on these coarse image-level statistics, the proposed SPSS model achieves performance near fully supervised benchmarks while reducing annotation time by approximately 16x and storage requirements by 200x.

Introduction

Semantic segmentation—the task of assigning a category to every pixel in an image—is vital for autonomous driving and medical diagnosis. However, its primary challenge is the data. Annotating a single image can take several minutes of meticulous manual labor, especially in medical fields requiring expert knowledge. Furthermore, storing high-resolution masks for massive datasets creates a significant storage burden.

Comparison of the proposed SP-based supervision against traditional benchmark methods like point supervision and scribbles.

This paper asks: Can we train a model to segment an image if we only tell it "this image is 10% water and 90% land"? The authors introduce Semantic Proportions (SP) as a solution, providing a way to learn spatial information from global statistics.

Methodology

The authors propose two primary architectures to leverage semantic proportions:

SPSS (SP-based Semantic Segmentation)

The core SPSS model utilizes a standard CNN backbone (such as U-Net or FPN) to extract high-level feature maps. These maps are passed through a Global Average Pooling (GAP) layer to produce a vector of predicted class proportions.

The SPSS architecture: A CNN extracts features which are then processed by a Global Average Pooling (GAP) layer to predict class proportions for training against ground-truth SP.

The model is trained using a Mean Squared Error (MSE) loss between the predicted proportions and the ground-truth proportions. Surprisingly, to minimize this loss, the CNN is forced to learn feature maps that emerge as segmentation masks before the pooling layer. Because the GAP layer averages the entire spatial field, the network must correctly activate pixels in the feature map to sum up to the correct total proportion.

SPSS+ (The Booster)

SPSS+ is a "plug-and-play" module for scenarios where some ground-truth masks are available. It combines the proportion-based loss with standard Binary Cross-Entropy (BCE) mask loss. This dual-loss approach acts as a regularizer that improves the performance of standard models without adding architectural complexity.

Experimental Results

The methodology was validated across four diverse datasets: Aerial Dubai (satellite imagery), ISIC (skin lesions), Electron Microscopy (mitochondria), and LGG Brain MRI.

  • Competitive Performance: On the Aerial Dubai dataset, the full-supervision benchmark achieved a 71.3 Mean IoU. The SPSS model (using only proportions) reached 64.2, while the SPSS+ booster surpassed the benchmark at 71.6.
  • Medical Accuracy: In the Electron Microscopy task—notorious for small, imbalanced targets—SPSS+ achieved an IoU of 84.3, outperforming the standard benchmark (83.7).
  • Extreme Robustness: Sensitivity analysis showed that even with 50% Gaussian noise added to the proportion labels, the model maintained functional performance, suggesting it can handle "rough guesses" from human annotators.
  • Efficiency Gains: Human annotators could estimate proportions in ~20 seconds per image, compared to ~330 seconds for pixel-wise masks. Furthermore, SP annotations require only 0.02 kB per image, compared to 4 kB for compressed masks.

Conclusion

Training semantic segmentation models using only class proportions is not only feasible but highly efficient. By shifting from pixel-wise labeling to global statistical estimation, this approach offers a scalable path for computer vision in domains where expert annotation is scarce and expensive. Future work may explore combining SP with other weak labels or using Large Language Models to generate these proportions from text.

Summary updated

Abstract

Semantic segmentation is a critical task in computer vision that aims to identify and classify individual pixels in an image, with numerous applications for example autonomous driving and medical image analysis. However, semantic segmentation can be super challenging particularly due to the need for large amounts of annotated data. Annotating images is a time-consuming and costly process, often requiring expert knowledge and significant effort. In this paper, we propose a novel approach for semantic segmentation by eliminating the need of ground-truth segmentation maps. Instead, our approach requires only the rough information of individual semantic class proportions, shortened as semantic proportions. It greatly simplifies the data annotation process and thus will significantly reduce the annotation time and cost, making it more feasible for large-scale applications. Moreover, it opens up new possibilities for semantic segmentation tasks where obtaining the full ground-truth segmentation maps may not be feasible or practical. Extensive experimental results demonstrate that our approach can achieve comparable and sometimes even better performance against the benchmark method that relies on the ground-truth segmentation maps. Utilising semantic proportions suggested in this work offers a promising direction for future research in the field of semantic segmentation.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
SP sensitivity evaluation (Data labels: Aerial, Dubai)Proposed SP-trained model (Gaussian-noise sensitivity)Mean IoU45Training semantic proportions (SP) are degraded with Gaussian noise; 0% noise. The tabl…
Source quote
L161: 0 │ 45
SP sensitivity evaluation (Data labels: Aerial, Dubai)Proposed SP-trained model (Gaussian-noise sensitivity)Mean IoU41Training SP degraded with 10% Gaussian noise; the table lists Aerial and Dubai in its D…
Source quote
L163: 10 │ 41
SP sensitivity evaluation (Data labels: Aerial, Dubai)Proposed SP-trained model (Gaussian-noise sensitivity)Mean IoU26Training SP degraded with 50% Gaussian noise; the table lists Aerial and Dubai in its D…
Source quote
L168: 50 │ 26
SP sensitivity evaluation (Data labels: Aerial, Dubai)Proposed SP-trained model (clustering sensitivity)Mean IoU44Training SP degraded by assigning images in each K-means cluster the same randomly sele…
Source quote
L191: 100 │ 44
SP sensitivity evaluation (Data labels: Aerial, Dubai)Proposed SP-trained model (clustering sensitivity)Mean IoU27Training SP degraded by assigning images in each K-means cluster the same randomly sele…
Source quote
L196: 5 │ 27
BibTeX
@misc{aysel2023semantic,
  author = {Halil Ibrahim Aysel and Xiaohao Cai and Adam Prügel-Bennett},
  title = {{Semantic Segmentation by Semantic Proportions}},
  year = {2023},
  eprint = {2305.15608},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.15608},
}
Figure