Benchmarking Semantic Segmentation Models via Appearance and Geometry Attribute Editing

Zijin Yin, Bing Li, Kongming Liang, Hao Sun, Zhongjiang He, Zhanyu Ma, Jun GuoarXiv 2026

TL;DR

The authors introduce Gen4Seg, an automated data generation pipeline that leverages diffusion models, Large Language Models (LLMs), and Vision-Language Models (VLMs) to stress-test semantic segmentation models. By precisely editing object appearance (color, material) and geometry (size, position) while preserving original structural layouts, Gen4Seg allows existing segmentation labels to be perfectly reused. Evaluation on two new benchmarks, Pascal-EA and COCO-EA, reveals surprising robustness bottlenecks, particularly showing that advanced open-vocabulary models still struggle with geometric variations.

What Problem Does This Paper Address?

While deep learning has dramatically advanced semantic segmentation, deploying these models in safety-critical real-world applications (like autonomous driving or medical imaging) requires them to be robust against diverse environmental and object-level variations.

Evaluating this robustness is notoriously difficult due to the high cost of manually annotating pixel-level masks for new test scenarios. Consequently, existing benchmarks are often restricted to global style or weather changes (e.g., adding synthetic fog or rain to a scene). They fail to assess how models handle fine-grained, object-level changes—such as an object appearing in an unusual color, being made of an uncommon material, or being scaled and repositioned within the scene. This paper introduces a scalable way to generate realistic, object-level counterfactual test images without requiring any manual re-annotation.

Methods

The core contribution is the Gen4Seg pipeline, which automates attribute editing by combining the strengths of generative diffusion models, VLMs (LLaVA), and LLMs (LLaMA3).

Gen4Seg expands existing images with various appearance and geometry attribute changes for evaluating robustness.

The pipeline is split into two primary editing modes:

  1. Appearance Attribute Editing: To change local object properties (like color or material) or global properties (style, weather), the pipeline uses LLaVA to generate a caption of the source image, and LLaMA3 to alter the target attribute in text. To prevent "edits leakage"—where modifying an object inadvertently alters the surrounding background—the authors introduce a Mask-Guided Energy Function. This function optimizes the diffusion model's cross-attention maps during the forward pass, forcing the text-driven changes to stay strictly within the object's original boundary mask. ControlNet is integrated to ensure strict adherence to the spatial layout.
  2. Geometry Attribute Editing: To alter object size or position, the pipeline applies a rigid mathematical transformation (scaling or translation) to the target object and its mask. A diffusion-based inpainting model, guided by ControlNet and VLM-generated text prompts, then cleanly repaints the newly exposed background areas.

Finally, to ensure the reliability of the generated test data, Gen4Seg employs a Two-Stage Noise Filtering Strategy:

  • Sample-level filtering: Uses CLIP directional similarity to discard low-quality or unfaithful image generations.
  • Pixel-level filtering: Uses a surrogate segmentation model (e.g., UperNet) to identify regions where prediction losses abnormally spike compared to the original image, automatically removing those noisy pixels from the final evaluation metrics.

Datasets

The authors apply Gen4Seg to the validation sets of Pascal VOC and COCO-Stuff 164k to construct two new robustness benchmarks:

  • Pascal-EA (Editable Attributes): 805 images for appearance subsets; 848 images for geometry subsets.
  • COCO-EA: 2,879 images for appearance subsets; 3,034 images for geometry subsets.

Each benchmark contains distinct subsets evaluating six variation types: object color, object material, global weather, global style, object size, and object position.

Key Insights and Ideas

  • The Open-Vocabulary Geometric Blindspot: Despite being trained on massive datasets with exceptionally strong foundation backbones, advanced open-vocabulary models (like CATSeg, OVSeg, and SEEM) do not exhibit superior robustness to geometric changes (size and position) compared to traditional closed-set models.
  • Severe Vulnerability to Material Changes: Across all 13 evaluated state-of-the-art models, performance dropped most severely when object materials were modified (e.g., turning a plastic toy into wood). This strongly implies that modern segmentors suffer from a heavy texture bias, prioritizing local surface patterns over global shape.
  • Augmentation Limitations: Traditional data augmentation techniques like CutOut and AugMix fail to improve model robustness against appearance variations. However, CutMix uniquely stands out as an effective tool for mitigating geometric variations because it forces the model to learn from partial and displaced object views.

Key Results

The authors benchmarked 13 semantic segmentation models across CNN-based, Transformer-based, and open-vocabulary architectures.

  • Material vs. Color: On Pascal-EA, the average mIoU across all models dropped drastically to 60.04% under material changes, compared to a much milder drop of 80.47% for color variations (baseline reconstructed mIoU was 83.19%).
  • Open-Vocabulary Superiority in Appearance: Open-vocabulary models dominated appearance robustness, consistently achieving relative robustness scores ($mR$) above 0.90, whereas CNN-based models struggled around 0.80–0.84.
  • Dual Use for Data Augmentation: Beyond diagnostics, using Gen4Seg as a training data augmentation tool successfully boosted the in-distribution performance of Mask2Former from 84.52% to 91.77% on Pascal VOC and from 45.06% to 47.03% on COCO-Stuff.

Limitations and Future Work

The authors note that current diffusion models occasionally struggle to preserve fine-grained structural details in the facial features of living subjects (humans and animals), leading to unrealistic artifacts. Currently, they bypass this by manually filtering out front-facing biological subjects. Furthermore, fully disentangling attributes remains a challenge; for example, instructing the model to change an object's material to "wood" often inadvertently changes its color to brown.

Future work will focus on expanding the pipeline to simulate more complex physical variations, including illumination changes, motion blur, and 3D object rotations.

Summary updated

BibTeX
@misc{yin2026benchmarking,
  author = {Zijin Yin and Bing Li and Kongming Liang and Hao Sun and Zhongjiang He and Zhanyu Ma and Jun Guo},
  title = {{Benchmarking Semantic Segmentation Models via Appearance and Geometry Attribute Editing}},
  year = {2026},
  eprint = {2603.01535},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.01535},
}
Figure