Unsupervised Semantic Segmentation by Distilling Feature Correspondences

  • ,
  • Zhoutong Zhang ,
  • Bharath Hariharan ,
  • Noah Snavely ,
  • William T. Freeman

ICLR 2022 |

Unsupervised semantic segmentation aims to discover and localize semantically meaningful categories within image corpora without any form of annotation. To solve this task, algorithms must produce features for every pixel that are both semantically meaningful and compact enough to form distinct clusters. Unlike previous works which achieve this with a single end-to-end framework, we propose to separate feature learning from cluster compactification. Empirically, we show that current unsupervised feature learning frameworks already generate dense features whose correlations are semantically consistent. This observation motivates us to design STEGO (Self-supervised Transformer with Energy-based Graph Optimization), a novel framework that distills unsupervised features into high-quality discrete semantic labels. At the core of STEGO is a novel contrastive loss function that encourages features to form compact clusters while preserving their association pattern. STEGO yields a significant improvement over the prior state of the art, on both the CocoStuff (\(+14 mIoU\)) and Cityscapes (\(+9 mIoU\)) semantic segmentation challenges.