Abstract
Deep learning models for semantic segmentation often lack robustness to "in-the-wild" variations. This paper introduces a novel pipeline leveraging generative diffusion models to edit object attributes—such as color, material, and pattern—while strictly preserving original segmentation masks. By establishing the Pascal-EA benchmark, we demonstrate that state-of-the-art models are surprisingly fragile to local attribute shifts, particularly material changes, and that these synthetic variations can serve as effective data augmentation to improve model generalization.
Introduction
While semantic segmentation models achieve high accuracy on standard datasets, their robustness to local, object-level attribute variations remains under-explored. Traditional robustness benchmarks typically focus on global style changes (e.g., weather effects) due to the high cost of manual annotation for fine-grained local variations. If a model trained on red cars fails to recognize a wooden or neon-green car, its real-world utility is compromised. This work addresses the annotation bottleneck by automatically generating diverse, mask-consistent image variations.
Methodology: Mask-Preserved Attribute Editing
The proposed pipeline enables precise control over image attributes without requiring new labels. It consists of three primary stages:
- Text Manipulation: A Vision-Language Model (BLIP-2) generates initial captions, which an LLM (GPT-3.5) then modifies to include target attributes (e.g., "a white boat" becomes "a wooden boat").
- Mask-Guided Diffusion: To prevent the diffusion model from altering object shapes or backgrounds, the authors introduce Mask-Guided Attention. This mechanism uses the original segmentation mask to rectify attention maps, ensuring attribute changes are confined to the correct pixels.
- Structural Stabilization: ControlNet is integrated to maintain the spatial layout and structural integrity of the original scene.
The Pascal-EA Benchmark
Using this pipeline, the researchers created Pascal-EA (Editable Attributes), a benchmark derived from the Pascal VOC 2012 validation set. It encompasses four categories of variations:
- Color: Violet, pink, multicolor.
- Material: Wood, stone, metal, paper.
- Pattern: Dotted, striped.
- Style: Snowy, painting, sketch.
Evaluation was performed across a range of models, including traditional close-set architectures (DeepLabV3+, Mask2Former) and modern open-vocabulary models (CATSeg, SEEM).
Key Results and Insights
Analysis reveals several critical vulnerabilities in current segmentation frameworks:
- Material Sensitivity: Models are significantly more sensitive to material changes than color changes. An average mIoU drop of ~19% was observed for materials compared to ~10% for colors, suggesting a heavy reliance on local texture cues.
- The "Sketch" Collapse: The "sketch" style variation caused the most dramatic performance decline (averaging a 56.53% mIoU drop), indicating that models struggle when deprived of color and texture, failing to generalize based on line-based representations alone.
- Open-Vocabulary Performance: Despite being trained on massive datasets, open-vocabulary models did not show superior robustness to these attribute shifts compared to close-set models, often experiencing similar or greater performance degradation.
Conclusion and Future Work
This study highlights the importance of local attribute robustness in semantic segmentation. The Pascal-EA benchmark provides a rigorous testing ground for these vulnerabilities. Furthermore, the authors demonstrated that using attribute-edited images for data augmentation significantly improves generalization to out-of-distribution datasets like ACDC. Future work will focus on improving the editing of complex subjects like humans and reducing "spurious editing" where internal object details are unintentionally distorted.
Summary updated