Introduction
Semantic segmentation is a cornerstone of computer vision, yet its progress is often hindered by the high cost of manual annotation. While foundation models like the Segment Anything Model (SAM) offer a potential solution through automated labeling, they frequently suffer from domain gaps when applied to specific datasets. ConformalSAM addresses this by integrating Conformal Prediction (CP) to filter unreliable automated labels, establishing a new state-of-the-art in semi-supervised semantic segmentation (SSSS).
The Challenge of Domain Gaps in Foundation Models
In SSSS, models are trained on a small set of labeled data and a large volume of unlabeled data. Foundation models, trained on billions of masks, seem ideal for generating "pseudo-labels" for the unlabeled portion. However, these models are often overconfident in their errors when encountering data outside their training distribution. Directly using these noisy predictions can degrade performance, making them less effective than traditional self-training methods.
The ConformalSAM Framework
ConformalSAM introduces a two-stage approach to bridge the gap between general-purpose foundation models and specific target domains.
Stage I: CP-Calibrated Inference
Instead of blindly accepting foundation model outputs, ConformalSAM uses a small labeled validation set to calibrate the model (specifically SEEM, a promptable variant of SAM). By calculating non-conformity scores—measuring how much the model's prediction deviates from the ground truth—the system determines a statistical threshold. This allows the framework to filter out pixels where the foundation model is likely to be incorrect. Additionally, Class-Conditional Filtering is employed to prevent the model from being biased toward the dominant background class.
Stage II: Self-Reliance Training
To avoid overfitting to the foundation model's inherent biases, ConformalSAM transitions from relying on external masks to a self-training regime. As the student model becomes more accurate, it begins to learn from its own predictions, ensuring long-term robustness and accuracy.
Experimental Results
The framework was rigorously tested on PASCAL VOC 2012, PASCAL VOC Augmented, and ADE20K. ConformalSAM demonstrated significant performance gains, particularly in low-data scenarios.
On the PASCAL VOC dataset with only 92 labels, ConformalSAM achieved an mIoU of 81.21%, a massive leap from the 50.65% achieved by a label-only baseline and a 5% improvement over the previous state-of-the-art, AllSpark. Similar success was seen on the complex ADE20K dataset, where it outperformed existing methods by over 10% in the most data-constrained settings.
Conclusion
ConformalSAM proves that foundation models can be highly effective "teachers" for specialized tasks if their uncertainty is properly managed. By using Conformal Prediction as a mathematically grounded filter, the framework allows for high-quality automated annotation that respects domain-specific nuances. While its performance is tied to the overlap between the foundation model's knowledge and the target task, it represents a major step forward in making high-quality semantic segmentation more accessible.
Summary updated