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.
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 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