Image Augmentation with Controlled Diffusion for Weakly-Supervised Semantic Segmentation

Wangyu Wu, Tianhong Dai, Xiaowei Huang, Fei Ma, Jimin Xiao

TL;DR

Researchers have developed a new framework called Image Augmentation with Controlled Diffusion (IACD) that uses generative AI to solve the "data drought" in weakly-supervised semantic segmentation. By using controlled diffusion models to create high-quality synthetic training images and a smart filtering system to weed out hallucinations, they achieved significant performance gains—especially when real training data is extremely limited.

What Problem Does This Paper Address?

Semantic segmentation—the task of labeling every single pixel in an image (e.g., "this pixel is a car," "this pixel is a tree")—usually requires massive amounts of expensive, hand-drawn pixel masks. Weakly-Supervised Semantic Segmentation (WSSS) tries to bypass this by training models using only image-level labels (e.g., just knowing a "car" is somewhere in the image).

The bottleneck? Most WSSS methods rely on "pseudo-labels" generated from the original images. If your dataset is small, these pseudo-labels are often noisy and inaccurate, leading to poor model performance. The authors identified that instead of just trying to squeeze more information out of a small dataset, we should use generative models to expand the dataset itself.

Methods

The IACD framework consists of two main stages:

  1. Controlled Diffusion for Data Augmentation: The authors use Stable Diffusion combined with ControlNet. Unlike standard text-to-image generation, this setup uses the original image's structure (via Canny edges or human pose detection) and its labels as prompts to generate new, diverse variations of the training data.
  2. High-Quality Synthetic Image Selection: Diffusion models aren't perfect; they can generate "noisy" images where objects are malformed or missing. To fix this, the team built a Vision Transformer (ViT)-based classifier. This classifier analyzes patches of the generated images and assigns a confidence score. Only images that strongly represent the intended categories (and don't contain "hallucinated" extra categories) are added to the final training set.
The IACD pipeline: generating candidate images via diffusion and filtering them through a classifier.

Datasets

The model was evaluated on the PASCAL VOC 2012 dataset, a gold standard in computer vision containing 21 categories. The researchers tested their method using the full dataset (10,582 images) and also simulated "data-poor" scenarios by reducing the training set to as little as 5% of its original size.

Key Insights and Ideas

  • Generative Models as Data Engines: The core "aha" moment is treating diffusion models not just as art tools, but as robust data augmentors that can create realistic, task-specific variations that traditional methods (like flipping or cropping images) cannot match.
  • The Necessity of Filtering: Interestingly, the authors found that simply adding diffusion-generated images to the training set actually decreased performance slightly (-0.2% mIoU) due to generative noise. The selection module is the secret sauce that turned that loss into a significant gain.
  • Scaling at the Bottom: The method is most effective when data is scarcest. This suggests that controlled diffusion could be a game-changer for niche domains (like medical imaging or rare object detection) where large labeled datasets don't exist.

Key Results

The IACD framework consistently outperformed state-of-the-art (SOTA) methods across all data scales:

  • Low-Data Regime: With only 5% of the training data, IACD improved the mean Intersection-Over-Union (mIoU) by 4.9% over the baseline.
  • Full-Data Regime: Using 100% of the data, it achieved 71.4% mIoU, surpassing the previous SOTA (ViT-PCM) by 2.1%.
  • Efficiency: Even with only 50% of the original data, the IACD-augmented model outperformed the baseline model trained on 100% of the data.
Qualitative results showing IACD producing much cleaner and more accurate segmentation masks compared to the baseline.

Limitations and Future Work

While the results are impressive, the authors note a few hurdles:

  • Computational Cost: Generating tens of thousands of high-resolution images via diffusion models requires significant GPU resources and time.
  • Domain Specificity: The current work focuses on general objects in PASCAL VOC. Future research could explore how well this generalizes to more complex or specialized environments.
  • Refining the Selection: While the current ViT-based filter works well, more sophisticated ways to ensure the "semantic integrity" of generated images could further boost performance.

Summary updated

BibTeX
@inproceedings{wu2024image,
  author = {Wangyu Wu and Tianhong Dai and Xiaowei Huang and Fei Ma and Jimin Xiao},
  title = {{Image Augmentation with Controlled Diffusion for Weakly-Supervised Semantic Segmentation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=yJsAzJdXjg},
}
Figure