Reproduce “PSMP-CLIP: Patch-Prompt SAM and Multi-Semantic Prompting for CLIP-Based Zero-Shot Anomaly Detection” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

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

PSMP-CLIP combines CLIP’s semantic anomaly cues with SAM2 mask refinement for zero-shot anomaly detection across unseen industrial and medical domains. Patch-level prompts improve spatial alignment, while multi-semantic prompt regularization preserves diverse normal/abnormal representations; the full model reaches 92.1 pixel AUROC and 77.3 pixel AUPRO in the reported ablation, with its strongest gains generally appearing in localization rather than image-level classification.

Key insights

  • Patch-level evidence provides more reliable spatial prompts than thresholding a coarse, upsampled anomaly map, helping SAM2 produce sharper and better-aligned masks.
  • PPSS contributes the larger individual improvement in the ablation study, whereas MSGPR mainly benefits semantic discrimination and image-level anomaly scoring.
  • Localization and classification improvements are not uniform across datasets: the method leads on several pixel-level metrics but is surpassed by competing methods on many image-level AUROC results.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.