Introduction
Semantic segmentation—the task of assigning a categorical label to every pixel in an image—is a cornerstone of computer vision, essential for applications ranging from autonomous driving to medical imaging. However, the performance of deep learning models in this domain is heavily dependent on large-scale, pixel-perfect annotated datasets. Creating such labels is prohibitively expensive and time-consuming. Semi-Supervised Semantic Segmentation (SSS) offers a solution by leveraging a small set of labeled data alongside a much larger pool of unlabeled images.
Despite its promise, SSS faces two primary challenges: the under-utilization of the rich information within unlabeled data and the "fixed threshold trap." The latter refers to the common practice of using a static confidence threshold to generate pseudo-labels, which often leads to models ignoring rare or difficult classes. This paper introduces the Dual-Level Siamese Structure Network (DSSN) to address these limitations through a multi-tier consistency framework and a dynamic, class-aware labeling strategy.
The DSSN Framework
1. Dual-Level Siamese Structure
The core of DSSN is a Siamese (twin) network architecture designed to enforce consistency across different levels of data representation. Unlike traditional methods that focus primarily on high-level feature consistency, DSSN operates at two distinct levels:
- Low-Level (Image Space) Consistency: The model processes two differently augmented versions of the same unlabeled image. By enforcing pixel-wise prediction consistency between these versions, the model learns to be robust against visual noise and geometric transformations.
- High-Level (Feature Space) Consistency: The framework applies feature-level perturbations, such as dropout, to the internal representations. Ensuring that the final outputs remain consistent despite these internal changes encourages the model to learn more generalized and robust feature embeddings.
By aligning "positive pairs" at both the input and feature levels, DSSN maximizes the information extracted from unlabeled data, leading to more stable and accurate segmentation boundaries.
2. Class-aware Pseudo-Label Generation (CPLG)
To overcome the bias inherent in fixed-threshold pseudo-labeling, the authors propose Class-aware Pseudo-Label Generation (CPLG). Standard SSS models typically only accept pseudo-labels where the prediction confidence exceeds a high fixed threshold (e.g., 0.95). This disproportionately favors "easy" classes (like sky or road) while excluding "hard" or rare classes (like bicycles or chairs), which may never reach such high confidence levels early in training.
CPLG introduces dynamic, class-specific thresholds. The threshold for each class is adjusted based on the maximum probability the model assigns to that specific category during training. If the model’s peak confidence for a "chair" is only 70%, the threshold for accepting chair pseudo-labels is lowered accordingly. This curriculum-like approach allows the model to begin learning from difficult classes much earlier, preventing the "rich get richer" phenomenon and improving performance on long-tailed distributions.
Experimental Results
The DSSN framework was evaluated on two industry-standard benchmark datasets: PASCAL VOC 2012 and Cityscapes.
PASCAL VOC 2012
On the PASCAL VOC 2012 dataset, DSSN demonstrated significant gains, particularly in scenarios with extreme label scarcity. With only 92 labeled images (representing 1/16 of the dataset), DSSN achieved a mean Intersection-over-Union (mIoU) of 75.24%. This represents a massive improvement over the supervised baseline (44.10%) and surpasses previous state-of-the-art methods like Unimatch.
Cityscapes
In the urban street scene context of the Cityscapes dataset, DSSN maintained its superior performance. Using a 1/8 partition (372 labeled images), the model reached 77.31% mIoU. Qualitative analysis further revealed that DSSN is significantly more effective at capturing fine-grained details and thin structures, such as chair legs or bicycle frames, which are often lost in models using fixed-threshold pseudo-labeling.
Discussion and Conclusion
The success of DSSN highlights two critical insights for semi-supervised learning. First, contrastive learning is highly effective when applied at multiple levels of the network hierarchy, not just the latent space. Second, fairness in pseudo-labeling is essential for balanced model growth. By lowering the entry barrier for difficult classes, CPLG ensures a more balanced gradient flow and prevents the model from collapsing into a few dominant categories.
While DSSN sets a new benchmark for SSS, it does come with increased computational overhead due to the dual-level augmentations and Siamese structure. Future work may focus on optimizing the memory footprint of such architectures or extending the dual-level consistency framework to temporal data in video segmentation. In conclusion, the Dual-Level Siamese Structure Network provides a robust and equitable framework for semi-supervised semantic segmentation, effectively bridging the gap between limited human supervision and the vast potential of unlabeled data.
Summary updated