arXiv:2609.06491cs.CVSep 2026

Manuscript Offprint

arXiv:2609.06491

Diffuse2Seg: Diffusion Models Can Segment Anything Without Supervision

Christoph Hümmer, Joachim Sicking, Fabian Hüger, Hanno Gottschalk

Abstract

Open-world entity segmentation aims to predict masks for arbitrary objects across domains and at multiple granularities, from parts to whole objects. In this setting, SAM sets a strong standard: trained on SA-1B, comprising 11M images and over 1B carefully annotated masks, it achieves remarkable zero-shot performance. Collecting such labels is expensive and time-consuming, however, which limits how far this recipe can scale. Text-to-image diffusion models offer a way around this. Their intermediate features transfer well across perception tasks, and since object structure emerges as the model denoises a noise sample into an image conditioned on a text prompt, that structure is already encoded in these representations. They can therefore be exploited for open-world entity segmentation without retraining or supervision. Building on this observation, we introduce Diffuse2Seg, which repurposes generative diffusion models for automatic mask generation by propagating a grid of point prompts through their self-attention representations in an edge-preserving manner. Diffuse2Seg produces multi-granular instance masks and outperforms prior state-of-the-art label generators by 4.3-7.1 p.p. in AR1000_{1000} across five domains. Training an instance segmentation model on these generated masks advances detector-free open-world segmentation by 7.4 and 7.7 p.p. on “things” and “stuff+things” datasets and surpasses the detector-based UnSAM on “stuff+things” by 2.1 p.p. in AR1000_{1000}. Finally, we show that a model trained on Diffuse2Seg labels provides a strong initialization for semi-supervised learning, outperforming its fully supervised counterpart with already 5k labeled images.

1 Introduction

Segmenting anything means partitioning an image into all of its coherent visual entities, countable “thing” objects such as persons and cars as well as amorphous “stuff” regions such as sky and road, and doing so without being restricted to a fixed set of class labels (Qi et al., 2022). Such a segmentation generalist enables computer vision systems to operate in the open world without retraining and is therefore highly relevant in domains that constantly need to adapt, such as robotics or medical imaging. SAM (Kirillov et al., 2023) brought this concept to life: a foundation model trained over multiple rounds on the large SA-1B dataset of class-agnostic, high-quality masks covering the full object hierarchy from part to object, with strong zero-shot capabilities. However, densely annotating such a dataset needed to train open-world entity segmentation foundation models is particularly challenging and time-consuming, limiting scalability. This raises the demand to generate multi-granularity entity labels including things, stuff and parts with no manual supervision at all.

Figure

Figure 1: Diffuse2Seg: Multi-granular pseudo-labels from diffusion-based self-attention. Our method produces smooth masks with dense coverage via diffusion self-attention, outperforming prior “things”-biased DINO-based state-of-the-art UnSAM in pseudo-label average recall (AR). Training models on our diffusion-based labels improve prior state-of-the-art performance, particularly on dense segmentation datasets covering both “stuff” and “things”.

One research direction tackling this issue lies in unsupervised instance mask generation from pre-trained foundation models, mainly using representations from self-supervised learning (SSL)-pretrained ViTs (Wang et al., 2023; Arica et al., 2024; Wang et al., 2024; Sick et al., 2025; Yang et al., 2025). Nevertheless, these SSL-based approaches are mostly designed for foreground instance segmentation, and only a few works explore truly dense entity annotation like SOHES (Cao et al., 2024) and UnSAM (Wang et al., 2024). In parallel, text-to-image diffusion models have emerged as universal representation learners (Gabeur et al., 2026; Wang et al., 2026b), as generative synthesis naturally forces the network to model global scene composition, contextual relationships, and fine-grained spatial layout. That means if a diffusion models generates sky or a car from an input prompt, these entities should be extractable from the internal representations. A large body of work has already shown that the features of these models can be leveraged for tasks like unsupervised semantic segmentation at different granularities (Tian et al., 2024; Couairon et al., 2024; Namekata et al., 2024; Kim et al., 2025; Zhang et al., 2026; Nakhli et al., 2026), interactive segmentation (Karmann & Urfalioglu, 2025; Karmann et al., 2025) or enhancing SSL-based instance segmentors (Jo et al., 2026).

Pursuing this path, we propose Diffuse2Seg, an unsupervised entity-segmentation method that repurposes pretrained diffusion models to generate class-agnostic multi-granular instance labels. Diffuse2Seg is the first method to do so without retraining the diffusion model. Our key observation is that we can exploit emerging capabilities of a generative diffusion model for class-agnostic multi-granular instance label generation: we apply non-linear p-Laplacian-based propagation to a grid of dense point prompts using an efficiently extracted self-attention matrix to obtain soft object masks. These are then merged into multiple granularity segmentation maps and instances are isolated. Finally, we aggregate and remove duplicates from the resulting mask candidates, producing instance masks at various granularities at the original image resolution. Moreover, we show that the resulting labels are a valuable supervision signal by distilling them into a lightweight segmentation model, which yields strong zero-shot generalization. In addition, we demonstrate that our unsupervised model can be leveraged for data-efficient semi-supervised learning through simple decoder-only fine-tuning when limited ground-truth data is available.

In summary, we make three contributions:

(i) Training-free multi-granularity instance segmentation We show that a frozen diffusion model can act as an automatic mask generator: by propagating a grid of point prompts through diffusion model self-attention, we recover dense instance masks at multiple granularities, entirely without supervision. Our generated labels surpass the previous unsupervised SOTA, UnSAM, by 4.3 - 7.1 p.p. in AR1000_{1000} across a diverse set of five domains.

(ii) State-of-the-art pseudo-label training We propose training a lightweight instance segmentation model solely on our diffusion-based pseudo-labels outperforming the strongest detector-free baseline, SOHES, by +7.7/+7.4/+10.0 p.p. AR on stuff+things/things/parts datasets, at half of the training image budget and using a much smaller backbone and improve the prior state-of-the-art technique UnSAM in 'stuff+things' by +2.1 p.p. in AR in a detector-augmented setting.

(iii) Semi-supervised Diffuse2Seg-Semi We apply a simple supervised fine-tuning to our unsupervised model and the prior state-of-the-art and compare them to a strong reference trained on 100k SA-1B ground-truth labels on our extensive zero-shot benchmark. Our fine-tuned semi-supervised model recovers 93.5 % of a fully supervised reference at only 100 fine-tuning images and even surpasses it by 1.4 p.p. at 10k fine-tuning images, maintaining a consistent advantage compared to the prior state-of-the-art UnSAM.

References (59)