[Paper Review] DiffusionSeg: Adapting Diffusion Towards Unsupervised Object Discovery
DiffusionSeg proposes a novel synthesis-exploitation framework that adapts pre-trained diffusion models for unsupervised object discovery, using training-free AttentionCut to generate synthetic image-mask pairs and diffusion inversion to extract discriminative features. It achieves state-of-the-art performance on six benchmarks, demonstrating the superiority of diffusion-based pre-training for pixel-level tasks.
Learning from a large corpus of data, pre-trained models have achieved impressive progress nowadays. As popular generative pre-training, diffusion models capture both low-level visual knowledge and high-level semantic relations. In this paper, we propose to exploit such knowledgeable diffusion models for mainstream discriminative tasks, i.e., unsupervised object discovery: saliency segmentation and object localization. However, the challenges exist as there is one structural difference between generative and discriminative models, which limits the direct use. Besides, the lack of explicitly labeled data significantly limits performance in unsupervised settings. To tackle these issues, we introduce DiffusionSeg, one novel synthesis-exploitation framework containing two-stage strategies. To alleviate data insufficiency, we synthesize abundant images, and propose a novel training-free AttentionCut to obtain masks in the first synthesis stage. In the second exploitation stage, to bridge the structural gap, we use the inversion technique, to map the given image back to diffusion features. These features can be directly used by downstream architectures. Extensive experiments and ablation studies demonstrate the superiority of adapting diffusion for unsupervised object discovery.
Motivation & Objective
- To explore the potential of pre-trained diffusion models—typically used for generation—for discriminative, pixel-level tasks like unsupervised object discovery.
- To address the structural mismatch between generative diffusion models and discriminative downstream tasks such as saliency segmentation and object localization.
- To overcome the challenge of limited labeled data in unsupervised settings by synthesizing high-quality image-mask pairs.
- To bridge the gap between generative and discriminative architectures by enabling direct use of diffusion features through inversion.
- To demonstrate that diffusion-based pre-training can outperform discriminative pre-training (e.g., CLIP, DINO) for dense prediction tasks.
Proposed method
- Proposes a two-stage framework: synthesis (data generation) and exploitation (feature utilization).
- Introduces AttentionCut—a training-free method that generates masks by leveraging cross- and self-attention maps from the diffusion model during image synthesis.
- Uses text-to-image diffusion models with random noise and category labels to synthesize realistic images with precise masks.
- Employs diffusion inversion to map real images back to the latent diffusion feature space, enabling deterministic feature extraction.
- Uses the inverted diffusion features as universal representations for downstream segmentation via a lightweight decoder.
- Trains a single segment decoder on synthetic data to unify the use of diffusion pre-training across different tasks.
Experimental results
Research questions
- RQ1Can pre-trained diffusion models, which excel in generative tasks, be effectively adapted for unsupervised discriminative tasks like object discovery?
- RQ2How can the structural and distributional differences between generative diffusion models and discriminative object discovery models be bridged?
- RQ3To what extent can synthetic data generated via attention-based masking improve performance in low-resource, unsupervised settings?
- RQ4Does the implicit knowledge in diffusion features—especially when inverted—outperform explicitly pre-trained discriminative features (e.g., CLIP, DINO) for dense prediction?
- RQ5How robust is the method when the category prior (used in AttentionCut) is absent or corrupted?
Key findings
- DiffusionSeg achieves state-of-the-art performance on six standard benchmarks: ECSSD, DUTS, DUT-OMRON (segmentation), and VOC07, VOC12, COCO20K (detection).
- On ECSSD, the method achieves an accuracy of 92.4% and IoU of 71.0%, outperforming CLIP (92.0% accuracy, 72.8% IoU) and DINO (86.9% accuracy, 70.1% IoU).
- With synthetic data scaled to 50k samples, DiffusionSeg achieves 95.2% accuracy and 79.0% IoU on ECSSD, significantly outperforming baseline models.
- Ablation studies show that combining semantic and spatial coherence in AttentionCut yields the best performance (92.4% accuracy, 71.0% IoU on ECSSD), outperforming methods like K-means and DenseCRF.
- Diffusion features extracted via inversion show superior performance over discriminative features: on DUTS-TE, DiffusionSeg achieves 93.3% accuracy and 63.7% IoU, surpassing CLIP (92.4% accuracy, 56.3% IoU).
- The method remains robust even without CLIP-classifiable priors, with DiffusionSeg (w/o prior) achieving 92.9% accuracy and 62.8% IoU on DUT-OMRON, indicating strong generalization beyond label dependency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.