Abstract
Unsupervised Semantic Segmentation (USS) aims to categorize image pixels without human-annotated labels. While recent advancements in self-supervised Vision Transformers (ViTs) have provided a strong foundation, existing USS frameworks often suffer from static feature guidance and local spatial inconsistency. This paper introduces a novel framework that identifies and leverages "Hidden Positives" (HP)—semantically similar patches discovered both globally across mini-batches and locally within neighborhoods. By integrating task-specific feature refinement and attention-guided gradient propagation, the proposed method achieves state-of-the-art performance on major benchmarks, including COCO-stuff and Cityscapes.
1. Introduction
Semantic segmentation is a cornerstone of computer vision, yet its reliance on dense, pixel-level human labels remains a significant bottleneck. Unsupervised Semantic Segmentation (USS) seeks to alleviate this by automatically discovering semantic categories from raw imagery. Current state-of-the-art methods typically utilize pre-trained self-supervised backbones, such as DINO, to extract features. However, these methods face two primary challenges:
- Static Guidance: Reliance on fixed, pre-trained features that are not optimized for the specific downstream segmentation task.
- Local Inconsistency: A failure to enforce spatial smoothness, leading to fragmented or "noisy" segmentation masks where neighboring pixels of the same object are assigned different labels.
To address these issues, this work proposes a contrastive learning strategy that mines "Hidden Positives" to provide a richer training signal and ensure local cohesion.
2. Methodology
The core of the proposed framework is the identification of two types of Hidden Positives (HP) to guide the learning process.
2.1 Global Hidden Positives (GHP)
Traditional contrastive learning often relies on self-augmentation (comparing an image to a transformed version of itself). This framework extends this by searching the entire mini-batch for semantically similar patches. This process is divided into two stages:
- Task-Agnostic GHP: Initial similarities are identified using a fixed, pre-trained backbone.
- Task-Specific GHP: As training progresses, the model utilizes the segmentation head currently being optimized to find similarities. This allows the model to refine its understanding of object categories dynamically.
A critical component of GHP is the Symmetric Requirement. To reduce noise, a pair of patches is only considered a positive match if the similarity is mutual; if Patch A identifies Patch B as a positive but Patch B does not reciprocate, the pair is discarded.
2.2 Local Hidden Positives (LHP) and Gradient Propagation
To resolve local inconsistency, the model enforces spatial smoothness by examining the surroundings of an anchor patch.
- Attention-Guided Selection: Rather than assuming all adjacent patches belong to the same class, the model uses the ViT’s internal attention scores to identify which neighbors are truly semantically related.
- Gradient Propagation (GradProp): Instead of applying a standard loss function to each patch independently, the features of these local positives are mixed, and gradients are propagated back to all related patches. This encourages the model to produce smooth, cohesive segments that respect object boundaries.
3. Experimental Results
The model was evaluated on three diverse benchmarks: COCO-stuff (everyday scenes), Cityscapes (urban street scenes), and Potsdam-3 (satellite imagery).
3.1 Quantitative Performance
The proposed method, referred to as HP, consistently outperformed previous state-of-the-art methods like STEGO:
- COCO-stuff: Achieved 57.2% Accuracy and 24.6 mIoU, a significant improvement over STEGO’s 48.3% Accuracy.
- Cityscapes: Reached 90.9% Accuracy in linear probe evaluations and 79.5% in unsupervised clustering.
- Potsdam-3: Improved unsupervised accuracy to 82.4%, compared to the previous best of 77.0%.
3.2 Qualitative Analysis
Qualitatively, the masks produced by the HP framework are significantly cleaner than those of prior methods. The model demonstrates a superior ability to follow complex object boundaries, such as the intricate structures of bicycle wheels or human limbs, without the need for complex post-processing like Conditional Random Fields (CRF).
4. Discussion and Limitations
While the HP framework sets a new benchmark for USS, it introduces certain trade-offs. The process of mining positives across mini-batches and performing gradient propagation increases computational overhead compared to simpler contrastive methods. Furthermore, the performance remains tied to the quality of the initial self-supervised backbone (e.g., DINO); any inherent biases or "blind spots" in the pre-training may propagate to the segmentation results. Finally, the sensitivity of clustering-based evaluation to class granularity (e.g., defining a "person" versus individual body parts) suggests that future work should explore hierarchical unsupervised learning to better capture the natural structure of visual categories.
5. Conclusion
By moving beyond simple self-augmentation and leveraging both global and local hidden positives, this framework provides a robust solution to the challenges of static guidance and local inconsistency in unsupervised semantic segmentation. The results demonstrate that mining semantically related patches and utilizing internal attention mechanisms can significantly narrow the gap between unsupervised and supervised segmentation performance.
Summary updated