Benchmarking Segmentation Models with Mask-Preserved Attribute Editing

Zijin Yin, Kongming Liang, Bing Li, Zhanyu Ma, Jun Guo · DOI

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:

  1. 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").
  2. 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.
  3. Structural Stabilization: ControlNet is integrated to maintain the spatial layout and structural integrity of the original scene.
The Mask-Preserved Attribute Editing pipeline, illustrating the flow from text manipulation to mask-guided diffusion and model evaluation.

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.
Visual examples of attribute editing across categories and the resulting mIoU drops for segmentation models.

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

BibTeX
@inproceedings{yin2024benchmarking,
  author = {Zijin Yin and Kongming Liang and Bing Li and Zhanyu Ma and Jun Guo},
  title = {{Benchmarking Segmentation Models with Mask-Preserved Attribute Editing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.02124},
}
Figure