arXiv paper· computer vision (anomaly detection)· method paper

PSMP-CLIP: Patch-Prompt SAM and Multi-Semantic Prompting for CLIP-Based Zero-Shot Anomaly Detection

Xuezhi Xiang, Guanghao Wu, Heqi Xiang, Jiayao Liu, Xiaoheng Li, Yiming Chen, Shanjun Zhang

cs.CV

Quick verdict

CLIP+SAM2 zero-shot anomaly detector with ablated pixel-level gains on 7/11 benchmarks; image-level lags rivals, key hyperparameters unreported, no code.

Summary

The paper proposes PSMP-CLIP, a zero-shot anomaly detection (ZSAD) framework that augments a CLIP-based detector (AA-CLIP) with two modules. Patch-Prompt SAM2 Segmentation (PPSS) extracts multi-layer patch features (layers 6/12/18/24), scores each patch against fused normal/abnormal text embeddings, and converts high/low-scoring patches into point and box prompts for SAM2, whose confidence-weighted masks are fused with the CLIP map (weight 0.8). Multi-Semantic Guided Prompt Regularization (MSGPR) trains four learnable prompt groups per polarity, pulled toward frozen-template semantic anchors and regularized by diversity and orthogonality losses. Under the standard cross-dataset protocol (train on VisA, evaluate elsewhere), the method reports the best pixel-level AUROC on 7 of 11 segmentation benchmarks - MVTec AD 93.7, DTD-Synthetic 98.6, Endo 91.3, Kvasir 89.3 - and ablations attribute gains to both modules (mean P-AUROC 90.5 to 92.1, P-PRO 74.3 to 77.3). Main limitations: image-level results are not consistently best (below MRAD on MVTec AD, MPDD, DAGM, BrainMRI; below Bayes-PFL on VisA by about 4 AUROC points), DTD-Synthetic image AP (93.5) trails all baselines without discussion, no variance or significance testing is reported, the point-sampling threshold tau is unspecified, w0=0.8 lacks sensitivity analysis, and no code release is stated.

Review complete

Assessment at a glance

computer vision (anomaly detection)

5

risk flags identified

● high 0

● medium 4

● low 1

Reproducibility readinessmedium
Code & data availablenot stated
Review confidencemedium

4 strengths · 4 weaknesses · 5 author questions

Levels reflect verification complexity — not a quality score. Evolve never rates your paper.

Key claims under review

  • Sampling SAM2 point/box prompts directly from intermediate CLIP patch features avoids the prompt drift caused by thresholding coarse upsampled maps, yielding finer anomaly boundaries.
  • Four learnable prompt groups per polarity, constrained by frozen-template semantic anchors plus diversity and orthogonality losses, preserve zero-shot generalization while enriching task-specific semantics.
  • Under the cross-dataset ZSAD protocol, PSMP-CLIP attains the best pixel-level AUROC on 7 of 11 segmentation datasets (e.g., MVTec AD 93.7, DTD-Synthetic 98.6, Endo 91.3).
  • Both modules contribute and are complementary: mean P-AUROC rises from 90.5 (AA-CLIP baseline) to 92.1 and P-PRO from 74.3 to 77.3 (Table 3).

Strengths

  • Principled fix to CLIP-to-SAM prompt drift

    PPSS samples point prompts and derives box prompts directly on the patch grid from layer-6/12/18/24 CLIP features (Eqs. 1-4), avoiding the upsample-then-threshold prompting of Clip-SAM that the paper correctly identifies as drift-prone; ablation shows PPSS alone lifts mean P-AUROC 90.5 to 91.3 and P-PRO 74.3 to 76.5.

  • Strong and broad pixel-level results

    Best pixel-level AUROC on 7 of 11 segmentation datasets under the standard cross-dataset protocol (Table 1), e.g. MVTec AD 93.7 vs AA-CLIP 90.6, Endo 91.3 vs 90.4, Kvasir 89.3 vs 86.7, plus best AUPRO on 4 medical sets.

  • Well-motivated regularization with a clean ablation

  • Backbone-fair, wide evaluation

Weaknesses

  • Image-level performance regresses against the strongest baselines

  • No uncertainty quantification

  • Under-specified method details

  • No code release or cost reporting

Full Review Report

$1.99 · one-time

Unlock the complete preliminary analysis Evolve produced for this paper.

  • All 4 strengths & 4 weaknesses, analyzed in detail
  • 5 risk flags with severity, section & reviewer questions
  • Methods & statistical evidence assessment
  • 5 questions a peer reviewer would ask
  • Full six-dimension evaluation report & recommendations

One-time purchase · this paper only

One-time purchase, this paper only. AI-generated preliminary analysis — not peer review.

Frequently asked questions

What is PSMP-CLIP?

PSMP-CLIP is a zero-shot anomaly detection model that combines CLIP with SAM2. It converts CLIP patch-level anomaly scores into point and box prompts that guide SAM2 to produce precise anomaly masks, and trains multiple semantic prompts for CLIP that are regularized toward generic template anchors. It localizes anomalies in industrial and medical images without any target-domain training samples.

How does PSMP-CLIP differ from AnomalyCLIP or AA-CLIP?

AnomalyCLIP and AA-CLIP rely on CLIP alone and produce relatively coarse anomaly maps. PSMP-CLIP builds on AA-CLIP but adds SAM2-based boundary refinement prompted directly from CLIP patch features, plus a multi-prompt regularization scheme (semantic anchors, diversity and orthogonality losses) that prevents the learned prompts from collapsing. The improvements are mainly in pixel-level localization metrics such as AUROC and PRO.

What results does PSMP-CLIP report and on which datasets?

Under a cross-dataset protocol (trained on VisA, tested on other datasets), it reports the best pixel-level AUROC on 7 of 11 segmentation benchmarks, including MVTec AD at 93.7 percent, DTD-Synthetic at 98.6 percent, and endoscopy datasets at 91.3 percent (Endo) and 89.3 percent (Kvasir). Image-level detection results are competitive but not consistently best compared with recent methods such as MRAD or Bayes-PFL.

Is code for PSMP-CLIP available?

The arXiv paper (2609.16785) contains no code or data release statement, and some key settings such as the point-sampling threshold are not reported, so exact reproduction currently depends on clarification from the authors.

About this review

This is an AI-generated preliminary review by Evolve.Pub, produced from the openly available text of the paper. It is not peer review and does not represent the authors' views. The canonical record of the paper is at the publisher link above.

  • Figures 1-2 are available only as garbled extracted text; architecture details visible solely in the diagram and the qualitative segmentation comparison could not be assessed.
  • Tables appear complete (11 pixel-level and 9 image-level datasets, consistent with the stated totals), but extraction may have obscured table footnotes such as significance markers or grouping.
  • The point-sampling threshold tau and several implementation details are absent from the text itself, limiting verification of the method description.
  • Review is based on the v1 arXiv extraction only; baseline numbers were not externally verified against the original publications.

Go deeper on this paper

Reproduce ResultsNot feasible for this paper — the core results cannot be re-derived by sandboxed code simulation.

Wrote a paper? Stress-test it before reviewers do.

Upload your manuscript for the same structured scrutiny — reasoning, statistics, evidence, figures, and reproducibility.

Scan your paper
PSMP-CLIP: Patch-Prompt SAM and Multi-Semantic Prompting for CLIP-Based Zero-Shot Anomaly Detection | Evolve.Pub