NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PRCL: Probabilistic Representation Contrastive Learning for Semi-Supervised Semantic Segmentation

Haoyu Xie, Changqi Wang, Jian Zhao, Yang Liu, Jun Dan, Chong Fu, Baigui Sun · DOI

Introduction

Semi-supervised semantic segmentation (S4) aims to train high-performing models using a limited set of labeled images and a larger pool of unlabeled data. The dominant paradigm in this field is self-training, where a model generates "pseudo-labels" for unlabeled pixels to guide its own learning. However, these pseudo-labels are inherently noisy. When integrated with contrastive learning—which seeks to cluster similar features and separate dissimilar ones—this noise leads to significant instability. Specifically, mislabeled pixels cause "prototype shift," where class centers fluctuate wildly, and "fragmentary negative distributions," where missing classes in mini-batches prevent the model from learning robust decision boundaries.

To address these challenges, the Probabilistic Representation Contrastive Learning (PRCL) framework rethinks the fundamental representation of pixels. Instead of treating pixels as fixed points in a latent space, PRCL models them as Gaussian distributions, introducing a layer of uncertainty that stabilizes the learning process and drastically improves efficiency.

The PRCL Framework

1. Probabilistic Representations (PR)

In traditional contrastive learning, each pixel is mapped to a single vector. PRCL instead maps pixels to a multivariate Gaussian distribution, predicting both a mean ($\mu$) and a variance ($\sigma^2$). This variance serves as a built-in uncertainty metric. When the model encounters ambiguous regions, such as object boundaries or noisy pseudo-labels, the predicted variance increases. This naturally downweights the pixel's influence during the contrastive loss calculation via a Mutual Likelihood Score (MLS), preventing unreliable data from corrupting the latent space.

2. Global Distribution Prototypes (GDP)

Rather than relying on mini-batch statistics to define class prototypes—which are prone to high variance—PRCL maintains Global Distribution Prototypes. Using a Bayesian estimation approach, the framework sequentially aggregates representations across the entire training timeline. This creates a stable, long-term "anchor" for each category that is resistant to the noise of any single training step, effectively solving the problem of prototype shift.

3. Virtual Negatives (VN)

Contrastive learning typically requires a large number of negative samples to be effective. Previous methods used "memory banks" to store thousands of old feature vectors, which is computationally expensive and memory-intensive. PRCL introduces Virtual Negatives, which are generated directly from the GDPs using a reparameterization trick. This ensures that every class is represented as a negative example in every training step without the need for massive external storage.

Experimental Results

Performance on Standard Benchmarks

PRCL was evaluated on the PASCAL VOC 2012 and Cityscapes datasets across various labeling rates. The results demonstrate a consistent improvement over previous state-of-the-art methods like U2PL and PSMT. For instance, on the PASCAL VOC dataset with only 92 labeled images, PRCL achieved a mean Intersection over Union (mIoU) of 70.23%, a significant jump from the baseline's 66.91%.

Efficiency and Speed

The introduction of Virtual Negatives provides a dramatic reduction in resource consumption. While traditional memory-bank approaches require approximately 2.63 GB of GPU memory, the VN strategy requires only 42 KB. Furthermore, by eliminating the complex enqueue/dequeue logic associated with memory banks, PRCL increases training speed by approximately 22%.

Qualitative Analysis

Visualization through t-SNE plots indicates that PRCL produces tighter and more distinct clusters in the latent space compared to deterministic models. This clustering is particularly effective at resolving ambiguities around object boundaries, where traditional models often struggle with feature overlap.

Discussion and Limitations

While PRCL offers significant advantages, it is not without its complexities. The framework is sensitive to the "virtual radius" ($\beta$) hyperparameter used for generating negatives; while $\beta=1.0$ was found to be optimal, performance can degrade if this value is poorly tuned. Additionally, the probability head responsible for predicting variance can be unstable during the initial stages of training, requiring a "soft freeze" strategy (a very low learning rate) to ensure convergence.

Conclusion

PRCL represents a shift in semi-supervised semantic segmentation by moving from deterministic to probabilistic representations. By accounting for uncertainty and stabilizing prototypes through global Bayesian aggregation, the framework achieves state-of-the-art accuracy while being significantly faster and more memory-efficient than its predecessors. These findings suggest that probabilistic modeling is a powerful tool for handling the noise and ambiguity inherent in semi-supervised learning tasks.

Summary updated

BibTeX
@article{xie2024prcl,
  author = {Haoyu Xie and Changqi Wang and Jian Zhao and Yang Liu and Jun Dan and Chong Fu and Baigui Sun},
  title = {{PRCL: Probabilistic Representation Contrastive Learning for Semi-Supervised Semantic Segmentation}},
  journal = {Int. J. Comput. Vis.},
  year = {2024},
  doi = {10.1007/s11263-024-02016-8},
}
Figure