[Paper Review] Segment Any Anomaly without Training via Hybrid Prompt Regularization
The paper proposes SAA+, a zero-shot anomaly segmentation framework that combines a vanilla foundation-model assembly with hybrid prompts derived from domain knowledge and target image context to achieve state-of-the-art zero-shot performance on multiple anomaly segmentation benchmarks.
We present a novel framework, i.e., Segment Any Anomaly + (SAA+), for zero-shot anomaly segmentation with hybrid prompt regularization to improve the adaptability of modern foundation models. Existing anomaly segmentation models typically rely on domain-specific fine-tuning, limiting their generalization across countless anomaly patterns. In this work, inspired by the great zero-shot generalization ability of foundation models like Segment Anything, we first explore their assembly to leverage diverse multi-modal prior knowledge for anomaly localization. For non-parameter foundation model adaptation to anomaly segmentation, we further introduce hybrid prompts derived from domain expert knowledge and target image context as regularization. Our proposed SAA+ model achieves state-of-the-art performance on several anomaly segmentation benchmarks, including VisA, MVTec-AD, MTD, and KSDD2, in the zero-shot setting. We will release the code at \href{https://github.com/caoyunkang/Segment-Any-Anomaly}{https://github.com/caoyunkang/Segment-Any-Anomaly}.
Motivation & Objective
- Address the need for zero-shot anomaly segmentation without labeled training data.
- Leverage open-world foundation models (detection and segmentation) for anomaly localization.
- Regularize these models with hybrid prompts derived from domain expertise and image context to reduce false alarms and improve accuracy.
- Demonstrate state-of-the-art performance on VisA, MVTec-AD, KSDD2, and MTD under zero-shot settings.
Proposed method
- Create a vanilla baseline SAA by cascading GroundingDINO (anomaly region generator) and SAM (anomaly region refiner) with a naive language prompt (e.g., 'anomaly').
- Identify language ambiguity as a source of false alarms and mitigate it with hybrid prompts that incorporate domain expert knowledge and target-image context.
- Domain expert prompts include two types: (i) class-agnostic and class-specific anomaly language expressions to generate finer anomaly region candidates, and (ii) anomaly object property prompts (location and area) used as filters with IoU and area thresholds.
- Target-image context prompts include (i) anomaly saliency prompts derived from saliency maps to recalibrate region confidences, and (ii) anomaly confidence prompts that select top-K candidate regions to form a final anomaly map.
- Formalize the final SAA+ pipeline as regularized integration of prompts L (language), P (property), S (saliency), and C (confidence).
- Provide ablations to show the contribution of each prompt component and report zero-shot evaluation on standard anomaly segmentation datasets.
![Figure 1: Towards segmenting any anomaly without training, we first construct a vanilla baseline (SAA) by prompting into a cascade of anomaly region generator ( e.g. , a prompt-guided object detection foundation model [ 23 ] ) and anomaly region refiner ( e.g. , a segmentation foundation model [ 19](https://ar5iv.labs.arxiv.org/html/2305.10724/assets/figures/teaser.png)
Experimental results
Research questions
- RQ1Can zero-shot anomaly segmentation be achieved without any training data by leveraging open-world foundation models?
- RQ2Do hybrid prompts derived from domain knowledge and image context improve anomaly localization over naive prompts in ZSAS?
- RQ3What is the contribution of language, property, saliency, and confidence prompts to final segmentation performance?
- RQ4How does SAA+ perform relative to contemporary zero-shot methods on VisA, MVTec-AD, KSDD2, and MTD?
Key findings
- SAA+ achieves state-of-the-art zero-shot anomaly segmentation results across multiple datasets (VisA, MVTec-AD, KSDD2, MTD).
- Domain expert language prompts substantially improve performance over naive prompts, especially for texture and object categories.
- Property prompts (location and area) provide large gains by filtering irrelevant regions and enforcing object-level constraints.
- Saliency-based prompts recalibrate region confidences using image context, aiding precise localization.
- Top-K anomaly confidence prompting effectively reduces false positives without sacrificing true positives.
- Ablation shows all four prompt families (L, P, S, C) contribute to the overall gains; the full SAA+ yields the best results.

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.