Abstract
Semantic segmentation requires dense pixel-level annotations, making data collection expensive and time-consuming. Generative models offer a potential solution for data augmentation, yet they often struggle with semantic mismatch and structural drift. This paper presents a novel pipeline that provides "stronger guidance" to diffusion models by integrating automated captions with explicit class labels and blending visual priors from both images and segmentation masks. Our approach significantly improves the structural fidelity and class-consistency of synthetic data, leading to substantial gains in mean Intersection over Union (mIoU) across various benchmarks and low-data scenarios.
Introduction
Semantic segmentation—the task of assigning a category to every pixel in an image—is a cornerstone of computer vision but remains notoriously labor-intensive to annotate. While generative models like Stable Diffusion offer a promising avenue for creating synthetic training data, their application is often hindered by two primary issues: semantic mismatch and structural drift.
Semantic mismatch occurs when text prompts fail to capture every object in a scene, causing the model to omit secondary or small-scale labeled classes. Structural drift refers to the misalignment between the original segmentation mask and the newly generated image when visual guidance is insufficient. If the generative model deviates from the intended layout, the resulting synthetic data provides incorrect supervision, degrading the performance of the segmentation model.
Proposed Methodology
To address these challenges, the proposed pipeline exerts "stronger guidance" over the generative process by combining textual and visual constraints to ensure high-fidelity data generation.
1. Class-Prompt Appending
Instead of relying on a single source for text prompts, the method merges automated image captions (generated via BLIP-2) with explicit class labels from the ground-truth mask. For instance, a prompt might be structured as: "a living room with green and blue walls; sofa, chair, potted plant." This explicit "checklist" ensures the diffusion model attends to every class present in the segmentation mask, mitigating the "forgetfulness" of standard captions.
2. Visual Prior Blending
A core innovation of this work is the blending of visual priors. Standard controllable diffusion models often use Canny edge maps for structural guidance. However, edges from the original image can be overly detailed (introducing noise), while edges from segmentation masks are often too sparse. The authors propose a weighted sum of these two priors to create a balanced guidance map. This "stronger guidance" preserves the essential boundaries of labeled objects while allowing for the stylistic diversity necessary for effective augmentation.
3. Class Balancing Algorithm
To combat the long-tail distribution problem where common classes (e.g., "person") dominate rare ones (e.g., "potted plant"), a sorting and generation strategy is implemented. This algorithm prioritizes the creation of synthetic images for underrepresented categories, ensuring a more balanced training set.
Experimental Results
The researchers evaluated the pipeline on the PASCAL VOC 2007 and 2012 datasets across multiple architectures, including DeepLabV3+, PSPNet, and Mask2Former.
- Performance Gains: On VOC 2007, the method improved mIoU from 46.54% to 50.27%, a significant +3.73% increase.
- Low-Data Scenarios: In a "1/16" split of VOC 2012 (containing only 92 real images), the augmentation boosted performance by nearly 4% mIoU, highlighting its utility when human labels are scarce.
- Ablation Studies: Results confirmed that the combination of prompt appending, prior blending, and class balancing yields the best performance, proving that textual and visual guidance are complementary.
Discussion and Limitations
While the proposed method marks a significant step forward, several challenges remain. A "distribution gap" exists between synthetic images (often influenced by the LAION-5B dataset used to train Stable Diffusion) and specialized real-world datasets. Consequently, synthetic data currently serves as a supplement rather than a total replacement for real data. Furthermore, achieving 100% pixel-perfect alignment in highly complex scenes remains difficult.
Future work may involve more advanced filtering techniques, such as CLIP-based ranking, to automatically discard low-quality synthetic images and further bridge the gap between real and generated distributions.
Summary updated