Research map / Image generation / Text-to-image diffusion
SeeDiff: Off-the-Shelf Seeded Mask Generation from Diffusion Models
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes SeeDiff, which extracts masks from Stable Diffusion 2-base attention maps by seeded region expansion (cross-attention seeds, multi-scale self-attention expansion, background-mask refinement) without training or prompt tuning.
Problem
Generating pixel-level annotation masks for synthetic images from text-to-image diffusion models usually requires a pre-trained segmentation network, prompt tuning, or extra training, and cross-attention maps alone give coarse masks.
Approach
Treat cross-attention maps as seeds and expand them iteratively across resolutions using self-attention maps, like classical seeded segmentation, then refine the mask by subtracting a background mask obtained the same way from inverted seeds.
Key results
- On VOC 2012 val with Mask2Former Swin-B trained on 60k synthetic images, SeeDiff reaches 79.6 mIoU vs 70.6 for DiffuMask.
- Fine-tuning with 5k real images raises SeeDiff (Swin-B) to 88.8 mIoU vs 84.9 for DiffuMask fine-tuned.
- On Cityscapes (100k synthetic images, Swin-B), SeeDiff gets 74.3 Human and 89.8 Vehicle IoU vs 72.1 and 87.0 for DiffuMask.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add cross-attention guided region expansion to cross-attention aggregation (ablation) | SeeDiff · VOC 2012 val | mIoU (%): 68.8 -> 71.0 | Helped |
| add iterative region expansion (ablation) | SeeDiff · VOC 2012 val | mIoU (%): 71.0 -> 73.2 | Helped |
| add background expansion inversion (ablation) | SeeDiff · VOC 2012 val | mIoU (%): 73.2 -> 79.6 | Helped |
| use a 32-resolution instead of 16-resolution CA map (ablation) | SeeDiff · VOC 2012 val | mIoU (%): 65.9 -> 64.3 | Hurt |
| use a 64-resolution instead of 16-resolution CA map (ablation) | SeeDiff · VOC 2012 val | mIoU (%): 65.9 -> 58.2 | Hurt |
| replace CA mask generation with CA·SA multiplication (ablation) | SeeDiff · VOC 2012 val | mIoU (%): 68.8 -> 72.0 | Helped |
| replace CA·SA multiplication with iterative seeded expansion and background refinement (ablation) | SeeDiff · VOC 2012 val | mIoU (%): 72.0 -> 79.6 | Helped |
| train with SeeDiff-generated data instead of DiffuMask-generated data | Mask2Former Swin-B · VOC 2012 val, 60.0k synthetic | mIoU (%): 70.6 -> 79.6 | Helped |
| train with SeeDiff-generated data instead of DiffuMask-generated data | Mask2Former Swin-B · Cityscapes val, 100.0k synthetic | IoU (%): 72.1 -> 74.3 (Human); 87.0 -> 89.8 (Vehicle) | Helped |
Surprising findings
- Higher-resolution cross-attention maps lose objectness, so the 16x16 CA map works best as seeds (65.9 vs 64.3 and 58.2 mIoU for 32 and 64).
Limitations
- Relies on seeds from cross-attention, which can point to background near boundaries or be sparse for non-homogeneous objects.
- Background refinement assumes uniform backgrounds from simple text prompts.
- Evaluated mainly on VOC 2012 and two Cityscapes categories.
Experimental setup
Datasets: Pascal VOC 2012 Cityscapes
Benchmarks: Pascal VOC 2012 val Cityscapes val
Metrics: mIoU IoU
Baselines: DiffuMask Dataset Diffusion Mask2Former trained on real VOC data
Builds on: DiffuMask Dataset Diffusion Stable Diffusion
Closest papers by meaning
- Open-Vocabulary Attention Maps with Token Optimization for Semantic Segmentation in Diffusion Models (CVPR 2024 · similarity 0.88)
- Explore In-Context Segmentation via Latent Diffusion Models (AAAI 2025 · similarity 0.87)
- Prompting Diffusion Models for Zero-Shot Instance Segmentation (NeurIPS 2026 · similarity 0.87)
- $\mathbf{D^{3}S^{2}}$: Diffusion-Guided Dataset Distillation for Semantic Segmentation (NeurIPS 2026 · similarity 0.87)
- Seg4Diff: Unveiling Open-Vocabulary Semantic Segmentation in Text-to-Image Diffusion Transformers (NeurIPS 2025 · similarity 0.87)
- Segment Anyword: Mask Prompt Inversion for Open-Set Grounded Segmentation (ICML 2025 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
