Image augmentation agent for weakly supervised semantic segmentation

Wangyu Wu, Xiaoyu Qiu, Siqi Song, Z H Chen, Xiaowei Huang, Fei Ma, Jimin Xiao

TL;DR

This paper introduces an "Image Augmentation Agent" (IAA) that uses Large Language Models (LLMs) and diffusion models to automatically generate diverse, high-quality synthetic images for Weakly Supervised Semantic Segmentation (WSSS). By addressing the limitations of fixed datasets and improving prompt generation with a self-refinement mechanism, IAA significantly boosts WSSS performance.

What Problem Does This Paper Address?

Weakly Supervised Semantic Segmentation (WSSS) aims to perform pixel-level segmentation using only image-level labels, making it more cost-effective than fully supervised methods. However, existing WSSS approaches often focus on network architectures and loss functions, neglecting the crucial role of data diversity. The limited and fixed nature of training datasets can constrain performance improvements. Furthermore, current methods for generating synthetic data, like those using diffusion models, can suffer from limited visual diversity due to fixed prompts and uneven sample distribution from post-hoc filtering. This paper tackles these challenges by proposing a data-centric approach to enhance WSSS through intelligent data generation.

Methods

The core of the proposed method is the Image Augmentation Agent (IAA), which comprises several key components:

  • LLM-driven Prompt Generation with Self-Refinement: IAA leverages LLMs (specifically GPT-40) to generate text prompts for image synthesis. To combat LLM instability and ensure prompt quality, a novel self-refinement mechanism is introduced. This mechanism iteratively refines prompts based on predefined criteria, ensuring they are coherent, relevant, and aligned with the target semantic category.
  • Conditional Diffusion Models: The refined prompts are then used in conjunction with conditional diffusion models (specifically Stable Diffusion with ControlNet) to generate augmented images. ControlNet allows for structural guidance (e.g., using edge or pose maps derived from the original image) to ensure semantic consistency between the generated and original images.
  • Image Self-Refinement (Filter): A pre-trained image classifier (based on ViT) is integrated into the diffusion process. This acts as a filter, dynamically assessing the quality of generated images and selecting high-quality samples. This approach ensures that the augmented images are not only diverse but also semantically meaningful and contribute positively to the training process, avoiding the pitfalls of post-hoc filtering.

The overall pipeline involves using image-level labels to guide prompt generation, then using these prompts along with the original image and structural information to generate augmented images via diffusion, followed by quality filtering. The final training dataset is a combination of the original and high-quality augmented images.

Datasets

The paper evaluates its method on two widely used datasets:

  • PASCAL VOC 2012: Used for training and validation, with 10,582 images for training and 1,449 for validation.
  • MS COCO 2014: Used for training and validation, with approximately 82,000 images for training and 40,000 for validation.

Key Insights and Ideas

  • Data-Centricity for WSSS: The paper strongly advocates for a data-centric approach to WSSS, arguing that improving the training data itself can be as impactful, if not more so, than solely optimizing network architectures.
  • LLM Self-Refinement for Prompt Quality: The self-refinement mechanism for LLM prompts is a key innovation. It addresses the inherent instability of LLMs, ensuring that generated prompts are not only diverse but also semantically accurate and useful for image generation.
  • Integrated Image Quality Control: Embedding the image classifier within the diffusion generation process (image self-refinement) is crucial. This allows for dynamic quality control, ensuring that only high-quality samples are produced, rather than relying on a separate filtering step that might discard too many or too few samples.
  • Synergistic Power of LLMs and Diffusion: The combination of LLMs for creative prompt generation and diffusion models for high-fidelity image synthesis, guided by structural constraints, proves to be a powerful approach for generating diverse and relevant training data.

Key Results

  • State-of-the-Art Performance: IAA achieves state-of-the-art results on both PASCAL VOC 2012 and MS COCO 2014 datasets, outperforming existing WSSS approaches.
  • On PASCAL VOC 2012, IAA achieves an mIoU of 72.3%, surpassing the previous best of 71.4%.
  • On MS COCO 2014, IAA achieves an mIoU of 45.3%, also setting a new benchmark.
  • Ablation Studies Highlight Contributions:
    • Image Self-Refinement (ISR) significantly improves mIoU by 2.4%.
  • Prompt Self-Refinement (PSR) provides an additional 0.6% boost, emphasizing the importance of prompt quality.
  • The combination of ISR and PSR leads to a progressive performance improvement, validating their synergistic effect.
  • Inference Efficiency: The proposed IAA framework introduces no extra computational overhead during inference, maintaining deployment efficiency.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that diffusion models can inherently introduce some randomness, potentially leading to low-quality samples if not carefully controlled. The self-refinement mechanisms are designed to mitigate this.
  • The choice of the quality threshold ($\epsilon$) for self-refinement involves a trade-off between quality and efficiency, and the paper validates $\epsilon=0.9$ as a good balance.
  • Future Work:
    • Extend evaluation to additional datasets with more diverse, complex, and real-world scenes to assess robustness and generalization.
  • Explore the adaptation of the augmentation framework to other downstream tasks like object detection and instance segmentation.
  • Investigate its effectiveness in low-resource or domain-shifted environments.

Summary updated

BibTeX
@misc{wu2024image,
  author = {Wangyu Wu and Xiaoyu Qiu and Siqi Song and Z H Chen and Xiaowei Huang and Fei Ma and Jimin Xiao},
  title = {{Image augmentation agent for weakly supervised semantic segmentation}},
  year = {2024},
  eprint = {2412.20439},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.20439},
}
Figure