[Paper Review] Synthesize then Compare: Detecting Failures and Anomalies for Semantic Segmentation
This paper proposes SynthCP, a unified framework for detecting failures and anomalies in semantic segmentation by synthesizing an image from a segmentation mask using a conditional GAN and comparing it to the original input. The method achieves state-of-the-art performance, improving AUPR by 20% on StreetHazards, 7% in Pearson correlation on pancreatic tumor segmentation, and 6% in AUPR-Error on Cityscapes.
The ability to detect failures and anomalies are fundamental requirements for building reliable systems for computer vision applications, especially safety-critical applications of semantic segmentation, such as autonomous driving and medical image analysis. In this paper, we systematically study failure and anomaly detection for semantic segmentation and propose a unified framework, consisting of two modules, to address these two related problems. The first module is an image synthesis module, which generates a synthesized image from a segmentation layout map, and the second is a comparison module, which computes the difference between the synthesized image and the input image. We validate our framework on three challenging datasets and improve the state-of-the-arts by large margins, \emph{i.e.}, 6% AUPR-Error on Cityscapes, 7% Pearson correlation on pancreatic tumor segmentation in MSD and 20% AUPR on StreetHazards anomaly segmentation.
Motivation & Objective
- To address the critical need for failure and anomaly detection in safety-critical semantic segmentation applications such as autonomous driving and medical imaging.
- To develop a unified framework that jointly handles pixel-level failure detection and anomaly segmentation, moving beyond image classification-based approaches.
- To leverage the structural consistency of semantic layouts by reversing the segmentation process through image synthesis for improved detection reliability.
- To provide both image-level confidence and pixel-level error maps for failure detection, and to localize anomalous regions in out-of-distribution (OOD) scenarios.
- To validate the framework on diverse, challenging benchmarks including Cityscapes, Medical Segmentation Decathlon (MSD), and StreetHazards.
Proposed method
- Train a semantic-to-image conditional GAN (cGAN) on paired segmentation masks and real images to learn the reverse mapping from layout to image.
- Use the trained cGAN to synthesize a reconstructed image from the predicted segmentation mask of a test image.
- Compare the synthesized image with the original input image using a task-specific comparison module: Siamese network for failure detection, or feature distance computation for anomaly segmentation.
- For failure detection, the Siamese network outputs both image-level confidence (e.g., IoU prediction) and pixel-level error maps.
- For anomaly segmentation, the comparison is performed on intermediate features from the segmentation backbone, computing pixel-wise differences to identify OOD regions.
- Apply post-processing thresholding on the anomaly score map (e.g., MSP thresholding at t=0.999) to optimize AUPR while controlling false positives.
Experimental results
Research questions
- RQ1Can a generative model trained to reconstruct images from segmentation masks be used to detect errors in segmentation predictions?
- RQ2How effective is the synthesis-comparison paradigm in identifying both localized failures and out-of-distribution anomalies in semantic segmentation?
- RQ3Does the use of a conditional GAN for image synthesis provide better failure and anomaly detection than traditional uncertainty or reconstruction-based methods?
- RQ4To what extent does the structural prior of the segmentation layout improve detection performance compared to pixel-wise methods?
- RQ5Can the framework generalize across diverse domains such as urban street scenes, medical tumors, and rare object anomalies?
Key findings
- SynthCP achieves a 6% improvement in AUPR-Error on the Cityscapes dataset for pixel-level failure detection, outperforming prior state-of-the-art methods.
- On the Medical Segmentation Decathlon (MSD) pancreatic tumor segmentation benchmark, SynthCP improves Pearson correlation for DSC prediction by 7%.
- On the StreetHazards dataset, SynthCP achieves a 20% relative improvement in AUPR (from 6.5% to 9.3%) for anomaly segmentation, setting a new state-of-the-art.
- Post-processing with a threshold of t=0.999 on the MSP anomaly score map significantly improves AUPR while maintaining high AUROC and reducing FPR95.
- The combination of SynthCP with a VAE-based alarm system leads to a 7% increase in Pearson correlation and a 10% increase in Spearman correlation, demonstrating complementary strengths.
- Visualizations show that SynthCP effectively highlights misclassified regions (e.g., person misclassified as pole) and anomalous objects not present in training data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.