TIPS Over Tricks: Simple Prompts for Effective Zero-shot Anomaly Detection
Alireza Salehi, Ehsan Karami, Sepehr Noey, Sahand Noey, Makoto Yamada, Reshad Hosseini, Mohammad Sabokrou
TL;DR
This work tackles zero-shot anomaly detection in safety-critical domains where target-domain normal data are unavailable. By leveraging a spatially aware TIPS backbone and a decoupled prompting strategy, Tipsomaly achieves robust image-level detection and pixel-level localization without CLIP-centric tricks. The method introduces fixed prompts for image-level scoring and learnable prompts for localization, using two global tokens to integrate local evidence into the global decision, and demonstrates state-of-the-art performance across 14 industrial and medical datasets with meaningful gains in both image- and pixel-level metrics. The approach offers a lean, generalizable solution for cross-domain anomaly detection, with practical impact and openly available code.
Abstract
Anomaly detection identifies departures from expected behavior in safety-critical settings. When target-domain normal data are unavailable, zero-shot anomaly detection (ZSAD) leverages vision-language models (VLMs). However, CLIP's coarse image-text alignment limits both localization and detection due to (i) spatial misalignment and (ii) weak sensitivity to fine-grained anomalies; prior work compensates with complex auxiliary modules yet largely overlooks the choice of backbone. We revisit the backbone and use TIPS-a VLM trained with spatially aware objectives. While TIPS alleviates CLIP's issues, it exposes a distributional gap between global and local features. We address this with decoupled prompts-fixed for image-level detection and learnable for pixel-level localization-and by injecting local evidence into the global score. Without CLIP-specific tricks, our TIPS-based pipeline improves image-level performance by 1.1-3.9% and pixel-level by 1.5-6.9% across seven industrial datasets, delivering strong generalization with a lean architecture. Code is available at github.com/AlirezaSalehy/Tipsomaly.
