A Training-free Synthetic Data Selection Method for Semantic Segmentation

Hao Tang, Siyue Yu, Jian Pang, Bingfeng Zhang

Abstract

Training semantic segmentation models on massive synthetic datasets often encounters a "quality ceiling" due to noisy images and misaligned labels from generative models. This paper introduces Synthetic Data Selection (SDS), a training-free method leveraging CLIP to prune low-quality synthetic samples. By reducing dataset size while improving model performance, SDS demonstrates that data quality is more critical than quantity in synthetic training pipelines.

Introduction

Semantic segmentation requires dense, pixel-level annotations, which are costly to produce manually. While generative models like Stable Diffusion offer a potential solution by creating large-scale synthetic datasets, they often introduce "hallucinations"—images that do not match the prompt or segmentation masks that are misaligned with generated objects. Training on such "noisy" data degrades model accuracy. The challenge lies in identifying high-fidelity samples without human intervention.

The SDS Framework

The proposed SDS method is a two-stage, training-free pipeline designed to filter synthetic data using the pre-trained knowledge of CLIP.

Overview of the Synthetic Data Selection (SDS) pipeline, showing the reduction of a 40K synthetic dataset to a high-quality 26K subset.

Perturbation-based CLIP Similarity (PCS)

To evaluate image quality, SDS goes beyond standard text-to-image similarity. It employs a "structural integrity" test by shuffling image patches (patch-mixing).

The PCS module uses patch-mixing at multiple scales and orders to ensure the generative model has produced a well-structured object.

A high-quality image should lose its semantic similarity to the text prompt when its structure is destroyed. If the similarity remains high after shuffling, it indicates that CLIP is responding to textures or background noise rather than a coherent object structure. SDS selects images that exhibit a significant drop in similarity after perturbation, ensuring the training data contains well-structured objects.

Class-balance Annotation Similarity Filter (ASF)

To verify the accuracy of segmentation masks, SDS generates "reference" masks using Class Activation Maps (CAMs) from CLIP. The synthetic mask is compared to this reference using mean Intersection over Union (mIoU). To prevent bias toward "easy" classes (e.g., sky), the filter selects the top-performing percentage within each class and object-count group, ensuring a balanced final dataset.

Experimental Results

The method was evaluated on PASCAL VOC 2012 and MS COCO 2017 benchmarks using various segmenter architectures like DeepLabV3 and Mask2Former.

  • PASCAL VOC: SDS reduced the synthetic pool from 40k to 26k samples. Despite the 35% reduction in data, the segmenter's performance improved from 59.6% to 62.5% mIoU.
  • MS COCO: On this more complex dataset, SDS improved mIoU from 30.3% to 33.4% while pruning the dataset from 80k to 50k samples.

Conclusion

SDS highlights a shift in AI research from data collection to data curation. By removing the bottom tier of synthetic samples, researchers can achieve higher accuracy with less computational overhead during training. While limited by the inherent biases of the CLIP model used for filtering, SDS provides a robust, plug-and-play solution for improving the utility of synthetic data in computer vision tasks.

Summary updated

BibTeX
@inproceedings{tang2025training,
  author = {Hao Tang and Siyue Yu and Jian Pang and Bingfeng Zhang},
  title = {{A Training-free Synthetic Data Selection Method for Semantic Segmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i7.32777},
}
Figure