Abstract
Semantic segmentation is a critical yet labor-intensive task in computer vision, requiring dense pixel-level annotations. Cross-Consistency Training (CCT) addresses the high cost of labeling by leveraging unlabeled data through a novel semi-supervised learning framework. By enforcing consistency across various perturbations applied to the encoder's hidden representations, CCT significantly enhances model robustness and performance, particularly in low-data regimes, without adding inference-time overhead.
Introduction: The Challenge of Pixel-Level Labeling
Semantic segmentation requires assigning a class label to every pixel, a process that can be up to 60 times more time-consuming than image-level tagging. While Semi-Supervised Learning (SSL) offers a path to utilize unlabeled data, traditional SSL methods often rely on the "cluster assumption"—the idea that decision boundaries should reside in low-density regions. In the context of segmentation, class boundaries in raw pixel space are often high-density and distinct, making traditional input-level perturbations less effective.
The authors of CCT identify that the cluster assumption holds more strongly within the hidden representations extracted by an encoder. By shifting the focus of consistency training from the input pixels to these feature maps, CCT bridges the gap between labeled and unlabeled data more effectively.
Methodology: Cross-Consistency Training (CCT)
The CCT framework utilizes a shared encoder, a primary decoder, and a set of auxiliary decoders. The training process is divided into two main phases:
- Supervised Phase: Labeled images are processed through the encoder and the main decoder, optimized using a standard Cross-Entropy loss.
- Unsupervised Phase: Unlabeled images pass through the shared encoder to generate a feature map ($z$). Multiple perturbed versions of $z$ are then created and fed into separate auxiliary decoders.
Perturbation Strategies
The core of CCT lies in its diverse perturbation functions, which force the model to learn invariant features:
- Feature-based: Includes injecting noise (F-Noise) or dropping active regions (F-Drop) within the feature map.
- Prediction-based: Uses the main decoder's predictions to mask detected objects (Obj-Msk) or their context (Con-Msk), requiring the model to infer labels from incomplete information.
- Adversarial: Employs Intermediate Virtual Adversarial Training (I-VAT) to generate challenging noise patterns.
Importantly, these auxiliary decoders are discarded after training, ensuring that the final model maintains the same inference speed as a standard encoder-decoder architecture.
Experimental Results
The researchers evaluated CCT across several benchmarks, including PASCAL VOC 2012, Cityscapes, CamVid, and SUN RGB-D.
Performance in Low-Data Regimes
CCT demonstrates remarkable efficiency when labeled data is extremely scarce. On the CamVid dataset, using only 20 labeled images, CCT improved the baseline mIoU by 21 points. On PASCAL VOC, it achieved 73.2 mIoU with just 1.5k labeled images, outperforming previous state-of-the-art semi-supervised methods.
Key Insights
- Feature-Level Consistency: Enforcing consistency on hidden features is more effective for segmentation than input-level perturbations, as it aligns with the network's internal data organization.
- Robustness through Diversity: Combining multiple perturbation types (CCT-Full) yields the best results, as it forces the encoder to become invariant to various forms of noise and occlusion.
- Flexibility: The framework can incorporate weak labels (e.g., image-level tags) and supports domain adaptation by training on multiple datasets simultaneously.
Conclusion
Cross-Consistency Training provides a powerful and efficient framework for semi-supervised semantic segmentation. By focusing on hidden representation consistency and utilizing diverse perturbations, it achieves state-of-the-art results in data-constrained scenarios while remaining computationally efficient at inference time. Future work may extend this approach to other dense prediction tasks like depth estimation or optical flow.
Summary updated