[Paper Review] FreeMask: Synthetic Images with Dense Annotations Make Stronger Segmentation Models
FreeMask proposes leveraging high-quality, densely annotated synthetic images generated from diffusion models to significantly enhance fully-supervised semantic segmentation. By filtering noisy regions and prioritizing hard-to-learn semantic masks during synthesis, the method achieves performance comparable to real-data training (e.g., 52.0 mIoU on ADE20K) and boosts real-data models via pre-training or joint training.
Semantic segmentation has witnessed tremendous progress due to the proposal of various advanced network architectures. However, they are extremely hungry for delicate annotations to train, and the acquisition is laborious and unaffordable. Therefore, we present FreeMask in this work, which resorts to synthetic images from generative models to ease the burden of both data collection and annotation procedures. Concretely, we first synthesize abundant training images conditioned on the semantic masks provided by realistic datasets. This yields extra well-aligned image-mask training pairs for semantic segmentation models. We surprisingly observe that, solely trained with synthetic images, we already achieve comparable performance with real ones (e.g., 48.3 vs. 48.5 mIoU on ADE20K, and 49.3 vs. 50.5 on COCO-Stuff). Then, we investigate the role of synthetic images by joint training with real images, or pre-training for real images. Meantime, we design a robust filtering principle to suppress incorrectly synthesized regions. In addition, we propose to inequally treat different semantic masks to prioritize those harder ones and sample more corresponding synthetic images for them. As a result, either jointly trained or pre-trained with our filtered and re-sampled synthesized images, segmentation models can be greatly enhanced, e.g., from 48.7 to 52.0 on ADE20K. Code is available at https://github.com/LiheYoung/FreeMask.
Motivation & Objective
- To reduce the reliance on costly, real-world dense annotations in semantic segmentation by leveraging synthetic data.
- To improve fully-supervised semantic segmentation performance using only synthetic, mask-conditioned images.
- To address domain shift and synthesis errors in synthetic data through self-adaptive filtering at the pixel and class level.
- To enhance model generalization by prioritizing synthesis of hard-to-learn semantic categories.
- To validate the effectiveness of synthetic data in both pre-training and joint training paradigms with real data.
Proposed method
- Condition synthetic image generation on real semantic masks using a pre-trained and fine-tuned FreestyleNet-based diffusion model to ensure domain alignment.
- Apply a self-adaptive pixel-level filtering strategy: mark and suppress regions with loss exceeding the class-average loss by a margin, computed using a real-image pre-trained model.
- Implement hardness-aware data synthesis by re-sampling more synthetic images for semantically harder masks, identified via class-wise loss distribution.
- Use the filtered and re-sampled synthetic images for either pre-training or joint training with real images, maintaining identical training protocols.
- Leverage MMSegmentation for implementation and train on 8× V100 GPUs with synchronized batch sampling and data augmentation.
- Pre-train the model on synthetic data and fine-tune with half the base learning rate, preserving full training schedule.
Experimental results
Research questions
- RQ1Can synthetic, densely-annotated images from diffusion models achieve performance comparable to real-data training in fully-supervised semantic segmentation?
- RQ2How can noisy or poorly synthesized regions in synthetic data be effectively filtered to prevent negative impact on training?
- RQ3Does prioritizing synthesis of hard-to-learn semantic categories lead to measurable improvements in segmentation accuracy?
- RQ4Can synthetic data pre-training or joint training with real data significantly boost the performance of fully-supervised segmentation models?
- RQ5What is the impact of domain shift and misalignment in synthetic image generation on downstream segmentation performance?
Key findings
- Synthetic images alone achieve 48.3 mIoU on ADE20K and 49.3 mIoU on COCO-Stuff, closely matching real-data baselines (48.5 and 50.5 mIoU respectively).
- Joint training with real and filtered synthetic data improves ADE20K mIoU from 48.7 to 52.0, demonstrating strong performance gains.
- The most improved classes on ADE20K include ship (+68.19 IoU), microwave (+48.72), and arcade machine (+45.85), indicating strong gains on rare or complex objects.
- The filtering mechanism effectively suppresses noisy regions, especially at boundaries and on rare or small objects, improving training stability and accuracy.
- Pre-training on filtered synthetic data followed by fine-tuning yields consistent performance gains, validating the method’s scalability and robustness.
- Synthesis of a single image takes ~5.8 seconds on a V100 GPU, but 24 GPUs can generate the full ADE20K and COCO-Stuff synthetic datasets in two days.
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.