DiffCut: Catalyzing Zero-Shot Semantic Segmentation with Diffusion Features and Recursive Normalized Cut
Paul Couairon, Mustafa Shukor, Jean-Emmanuel Haugeard, Matthieu Cord, Nicolas Thome
TL;DR
DiffCut introduces a zero-shot semantic segmentation method that leverages the final self-attention features of a diffusion model's UNet encoder to build a patch-level affinity. A recursive Normalized Cut on these diffusion features yields dense segmentation maps at a latent resolution, which are upsampled to high resolution through a concept-embedding assignment refined by PAMR. Across six benchmarks, DiffCut achieves state-of-the-art unsupervised performance, demonstrates strong semantic coherence of diffusion features, and offers an open-vocabulary extension via CLIP. The approach reduces reliance on labeled data and prompts, scales with content, and positions diffusion-based encoders as effective foundation models for downstream vision tasks, while noting domain-specific limitations and avenues for future enhancement.
Abstract
Foundation models have emerged as powerful tools across various domains including language, vision, and multimodal tasks. While prior works have addressed unsupervised image segmentation, they significantly lag behind supervised models. In this paper, we use a diffusion UNet encoder as a foundation vision encoder and introduce DiffCut, an unsupervised zero-shot segmentation method that solely harnesses the output features from the final self-attention block. Through extensive experimentation, we demonstrate that the utilization of these diffusion features in a graph based segmentation algorithm, significantly outperforms previous state-of-the-art methods on zero-shot segmentation. Specifically, we leverage a recursive Normalized Cut algorithm that softly regulates the granularity of detected objects and produces well-defined segmentation maps that precisely capture intricate image details. Our work highlights the remarkably accurate semantic knowledge embedded within diffusion UNet encoders that could then serve as foundation vision encoders for downstream tasks. Project page at https://diffcut-segmentation.github.io
