Abstract
Unsupervised semantic segmentation aims to discover object- and view-invariant groupings within and across images without external supervision. A fundamental challenge in this domain is granularity ambiguity—the inherent hierarchy of visual concepts (e.g., parts vs. wholes). We present Hierarchical Segment Grouping (HSG), the first data-driven method for unsupervised hierarchical semantic segmentation. HSG leverages multiview cosegmentation to enforce spatial consistency and a novel Clustering Transformer to maintain semantic consistency across the grouping hierarchy. Our approach significantly outperforms existing unsupervised methods on five major benchmarks, demonstrating the power of embracing hierarchical structure in visual representations.
Introduction
Semantic segmentation typically relies on extensive human annotation, which is costly and difficult to scale. Unsupervised alternatives seek to discover natural groupings, but often struggle with the "one-size-fits-all" problem: should a group represent a 'face' or the 'person' it belongs to? Most existing methods treat this hierarchy as a nuisance to be avoided.
In contrast, HSG treats hierarchy as a fundamental property of the visual world. By modeling the transition between coarse and fine-grained features, the model learns representations that are consistent across all levels of granularity. This allows for the discovery of both fine-grained parts (like arms or torsos) and coarse-grained objects (like people or dining tables) in a predictable, data-driven manner.
Methodology: Hierarchical Segment Grouping (HSG)
HSG approaches segmentation as a pixel-wise feature learning problem. The framework consists of three primary pillars:
1. Multiview Cosegmentation
To ensure robustness against variations in pose, lighting, and scale, HSG employs multiview cosegmentation. By analyzing multiple augmented views of the same image, the model enforces spatial consistency—ensuring that the same semantic entity is grouped similarly regardless of the specific view.
2. Clustering Transformers
The core innovation of HSG is the Clustering Transformer. Unlike static clustering algorithms like K-Means, this learnable module uses a Transformer-based architecture to manage transitions between hierarchical levels. A Transformer encoder contextualizes features, while a decoder maps fine-grained cluster centroids to coarser ones, capturing statistical co-occurrences (e.g., heads and torsos frequently appearing together).
3. Pixel-Segment Contrastive Learning
The model is optimized using a contrastive objective that pulls pixel features toward their assigned segment's average feature while pushing them away from other segments. This "attract-and-repel" mechanism helps create distinct semantic boundaries in the feature space.
Results and Discussion
HSG was evaluated on diverse benchmarks, including Pascal VOC, MSCOCO, and Cityscapes, significantly outperforming previous state-of-the-art (SOTA) unsupervised methods.
- Performance Gains: On Pascal VOC 2012, HSG achieved a 41.9% mIoU, a substantial improvement over the previous SOTA, SegSort (11.7%).
- Urban Scene Understanding: In complex environments like Cityscapes, HSG outperformed baselines by nearly 8% mIoU, demonstrating its ability to handle crowded scenes with overlapping categories.
- Hierarchical Logic: Qualitative analysis shows that HSG successfully nests segments. For instance, it can identify a "dining table" at a coarse level and logically decompose it into "food" and "table" at a finer level, maintaining logical boundaries between the two.
Conclusion
Hierarchical Segment Grouping (HSG) demonstrates that embracing granularity ambiguity is key to robust unsupervised semantic segmentation. By combining multiview consistency with learnable hierarchical transitions via Transformers, HSG sets a new standard for discovering the "parts and wholes" of the visual world without human labels. Future work will focus on reducing dependency on initial edge detection methods (like OWT-UCM) and integrating language data to provide semantic labels for the discovered groups.
Summary updated