TIPS Over Tricks: Simple Prompts for Effective Zero-shot Anomaly Detection

Alireza Salehi, Ehsan Karami, Sepehr Noey, Sahand Noey, Han Zhao, Reshad Hosseini, Mohammad Sabokrou · DOI

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 works compensate with complex auxiliary modules yet largely overlook 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.

Introduction

Zero-shot Anomaly Detection (ZSAD) represents a significant challenge in industrial inspection and medical imaging: the ability to identify defects or diseases in new domains without having seen a single "normal" example during training. This capability is crucial for safety-critical applications where data collection is expensive or impossible.

Most contemporary ZSAD methods rely on the CLIP backbone. However, CLIP was fundamentally designed to align global image features with entire sentences. This results in "blurry" spatial vision, where the model struggles to link specific descriptive words (like "crack" or "stain") to precise pixel groups. To compensate, researchers have historically added "tricks"—complex auxiliary layers, trainable adapters, or custom attention mechanisms. While these improve performance, they often lead to bulky architectures that are prone to overfitting, undermining the core goal of a generalist zero-shot model.

The Tipsomaly Framework

The authors propose Tipsomaly, a framework that shifts the focus from architectural complexity back to the backbone. By swapping the standard CLIP for TIPS (Text-Image Pre-training with Spatial awareness), the model gains an inherent understanding of the relationship between text and local image patches.

The Tipsomaly architecture utilizes a spatially aware TIPS backbone and decoupled prompts for detection and localization.

The framework introduces three core technical innovations:

  1. Decoupled Prompting: The authors identified a "distributional gap" where global image features and local patch features do not respond optimally to the same prompts. To solve this, they use Fixed Detection Prompts (standard text templates like "a photo of a damaged object") for image-level classification and Learnable Localization Prompts (class-agnostic tokens) for pixel-level segmentation. This decoupling allows each prompt type to specialize in its respective feature space.
  2. Spatially Aware Backbone: By using TIPS, which is pre-trained with objectives specifically designed for local-global alignment, the model avoids the need for heavy adapters.
  3. Local Evidence Injection: To calculate the final anomaly score, the model aggregates the global classification score with the "strongest local evidence"—the highest anomaly score found in any single patch. This ensures that even tiny, localized defects can trigger an image-level alert.

Experimental Setup and Insights

The study evaluates Tipsomaly across an extensive suite of 14 datasets, split between industrial and medical domains. Industrial datasets include MVTec-AD, VisA, and MPDD, covering defects in various materials. Medical datasets include ISIC for skin cancer and ColonDB for polyps.

A key insight from the research is that Backbone > Tricks. A spatially aware model like TIPS naturally outperforms a CLIP-based model that has been heavily modified. Furthermore, the authors found that domain-specific language is vital; in medical contexts, using terms like "diseased" or "irregular area" significantly outperformed generic descriptors like "damaged."

Key Results

Tipsomaly establishes a new state-of-the-art (SOTA) in zero-shot anomaly detection with a leaner architecture:

  • Industrial Performance: The model improved image-level AUROC by 1.1–3.9% and pixel-level localization by 1.5–6.9% over previous leading methods like AnomalyCLIP and AdaCLIP.
  • Medical Generalization: The framework achieved a notable +4.4% improvement in AUPRO for medical localization, demonstrating its robustness across vastly different visual domains.
  • Qualitative Superiority: As shown in visual comparisons, the anomaly heatmaps produced by Tipsomaly are significantly "cleaner," exhibiting fewer false positives in healthy regions compared to traditional CLIP-based approaches.
Qualitative comparison showing Tipsomaly's superior localization accuracy and cleaner anomaly maps across industrial and medical datasets.

Conclusion and Future Work

Tipsomaly demonstrates that starting with a spatially aware vision-language backbone can eliminate the need for complex, domain-specific architectural tricks. While the model still requires a source dataset for initial prompt optimization, its ability to generalize to completely unseen categories—from industrial parts to medical scans—marks a significant step forward for ZSAD. Future research may focus on automating the generation of domain-specific prompts and exploring more sophisticated fusion logic for global and local anomaly evidence.

Summary updated

BibTeX
@misc{salehi2026tips,
  author = {Alireza Salehi and Ehsan Karami and Sepehr Noey and Sahand Noey and Han Zhao and Reshad Hosseini and Mohammad Sabokrou},
  title = {{TIPS Over Tricks: Simple Prompts for Effective Zero-shot Anomaly Detection}},
  year = {2026},
  eprint = {2602.03594},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.03594},
}
Figure