Investigating the Semantic Robustness of CLIP-based Zero-Shot Anomaly Segmentation
Kevin Stangl, Marius Arvinte, Weilin Xu, Cory Cornelius
TL;DR
This work probes the semantic robustness of CLIP-based zero-shot anomaly segmentation (WinCLIP) by optimizing per-sample, bounded test-time perturbations—rotation, hue, and saturation shifts—to maximize a segmentation loss. By evaluating both uniform and per-sample lower bounds on MVTec and VisA with multiple CLIP backbones, the study uncovers consistent performance degradation (up to ~20% in pAUROC and ~40% in AUPRO), highlighting a significant robustness gap under distribution shifts. The authors provide a differentiable perturbation framework, outline optimization strategies, and show that color-based shifts pose greater challenges than rotations, particularly on harder datasets like VisA. The findings underscore the need for explicit lower-bound robustness evaluations and suggest directions for incorporating robust augmentations during training or tailoring test-time perturbations to object types to improve reliability in practical deployments.
Abstract
Zero-shot anomaly segmentation using pre-trained foundation models is a promising approach that enables effective algorithms without expensive, domain-specific training or fine-tuning. Ensuring that these methods work across various environmental conditions and are robust to distribution shifts is an open problem. We investigate the performance of WinCLIP [14] zero-shot anomaly segmentation algorithm by perturbing test data using three semantic transformations: bounded angular rotations, bounded saturation shifts, and hue shifts. We empirically measure a lower performance bound by aggregating across per-sample worst-case perturbations and find that average performance drops by up to 20% in area under the ROC curve and 40% in area under the per-region overlap curve. We find that performance is consistently lowered on three CLIP backbones, regardless of model architecture or learning objective, demonstrating a need for careful performance evaluation.
