[Paper Review] Dataset Diffusion: Diffusion-based Synthetic Dataset Generation for Pixel-Level Semantic Segmentation
This paper proposes Dataset Diffusion, a novel framework that leverages Stable Diffusion's text-to-image generation and attention mechanisms to synthesize high-quality, pixel-level semantic segmentation datasets. By introducing class-prompt appending, class-prompt cross-attention, and self-attention exponentiation, the method generates precise segmentation masks from text prompts, achieving 64.8 mIoU on PASCAL VOC and 34.2 mIoU on COCO, outperforming prior work like DiffuMask.
Preparing training data for deep vision models is a labor-intensive task. To address this, generative models have emerged as an effective solution for generating synthetic data. While current generative models produce image-level category labels, we propose a novel method for generating pixel-level semantic segmentation labels using the text-to-image generative model Stable Diffusion (SD). By utilizing the text prompts, cross-attention, and self-attention of SD, we introduce three new techniques: class-prompt appending, class-prompt cross-attention, and self-attention exponentiation. These techniques enable us to generate segmentation maps corresponding to synthetic images. These maps serve as pseudo-labels for training semantic segmenters, eliminating the need for labor-intensive pixel-wise annotation. To account for the imperfections in our pseudo-labels, we incorporate uncertainty regions into the segmentation, allowing us to disregard loss from those regions. We conduct evaluations on two datasets, PASCAL VOC and MSCOCO, and our approach significantly outperforms concurrent work. Our benchmarks and code will be released at https://github.com/VinAIResearch/Dataset-Diffusion
Motivation & Objective
- To address the high cost and labor intensity of manual pixel-level annotation for semantic segmentation datasets.
- To generate realistic, diverse scenes with multiple objects using text-to-image diffusion models.
- To produce accurate, pseudo-label segmentation maps without relying on human-annotated masks.
- To improve segmentation quality through attention-based refinement and uncertainty-aware training.
- To establish standardized benchmarks (synth-VOC and synth-COCO) for evaluating synthetic dataset generation in semantic segmentation.
Proposed method
- Introduces class-prompt appending to guide the diffusion model to generate images containing multiple specified object classes.
- Employs class-prompt cross-attention to enhance attention localization on individual objects within the scene.
- Applies self-attention exponentiation to refine attention maps and improve segmentation mask quality.
- Aggregates cross-attention and self-attention maps at multiple feature scales to balance global structure and local detail.
- Uses a learnable thresholding mechanism with hyperparameters τ, α, and β to generate binary segmentation masks from attention maps.
- Applies uncertainty-aware loss and self-training with test-time augmentation to improve generalization on synthetic data.

Experimental results
Research questions
- RQ1Can text-to-image diffusion models like Stable Diffusion be effectively adapted to generate pixel-level semantic segmentation labels for complex, multi-object scenes?
- RQ2How do attention mechanisms (cross-attention and self-attention) contribute to the quality of generated segmentation masks?
- RQ3What is the impact of architectural components such as feature scale aggregation and mask refinement techniques on segmentation performance?
- RQ4To what extent can models trained on synthetic datasets generated by Dataset Diffusion generalize to real-world benchmarks?
- RQ5How does uncertainty-aware training improve robustness when using imperfect pseudo-labels from diffusion models?
Key findings
- Dataset Diffusion achieves a mean Intersection over Union (mIoU) of 64.8 on the PASCAL VOC benchmark, significantly outperforming DiffuMask, which achieves only 44.8 mIoU when using cross-attention alone.
- On the COCO benchmark, a DeepLabV3 model trained on the synthetic dataset achieves 34.2 mIoU, approaching the performance of models trained on fully supervised real data.
- Self-attention refinement alone boosts mIoU from 44.8 to 61.0, demonstrating its critical role in improving segmentation accuracy.
- The combination of uncertainty-aware loss, self-training, and test-time augmentation further increases mIoU to 64.3, showing incremental gains from each component.
- Optimal hyperparameters for mask generation are τ=4, α=0.5, and β=0.6, with performance dropping significantly when τ exceeds 4 due to over-smoothing of attention maps.
- Using feature scales of 16 and 32 for attention map aggregation yields the best results, while using only scale 8 or 64 leads to degraded performance due to loss of detail or overemphasis on fine textures.
![Figure 2: Three stages of Dataset Diffusion . In the first stage, the target classes are provided, and text prompts are generated using language models such as ChatGPT [ 48 ] . Real captions (for COCO) or image-based captions (for VOC) can also be used for prompt generation to ensure standard evalua](https://ar5iv.labs.arxiv.org/html/2309.14303/assets/x2.png)
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.