Skip to content
Book Open access

CoPA: Object-Agnostic Contextual Prompt Learning for Zero-Shot Anomaly Detection

Nov 2026 · Proceedings of the 34th ACM International Conference on Multimedia · pp. 15512-15520 · 0 citations

Abstract

Zero-shot anomaly detection (ZSAD) aims to identify anomalous images and segment anomalous regions in unseen target domains without access to target-domain training data. Although CLIP provides strong zero-shot transferability, its pretraining primarily focuses on aligning images with object-level textual semantics, whereas anomaly detection depends more on normal/abnormal states and subtle local visual patterns. Object-agnostic prompting alleviates this mismatch by replacing category-specific names with generic object placeholders, thereby encouraging the prompts to represent transferable normal and abnormal semantics rather than object identity. However, a fixed set of static prompts cannot adapt anomaly semantics to substantial instance-level variations. Visual-conditioned prompt learning provides a natural way to achieve such adaptation, yet global image representations may dilute the cues of small and localized anomalies because they are often dominated by normal content. To address this issue, we propose CoPA, an object-agnostic contextual prompt learning framework that keeps the normal prompt branch static and dynamically adapts only the abnormal branch. CoPA explicitly models interactions between local visual patch features and abnormal context tokens, producing anomaly semantics conditioned on image-specific local evidence while preserving category independence. Experiments on diverse industrial and medical benchmarks demonstrate competitive cross-domain performance in both image-level anomaly detection and pixel-level anomaly segmentation, with limited additional computational overhead.

Read PDF

Similar papers

Preprint Oct 2026

Knowledge-Guided Distributional Prompt Learning with Visual Hierarchy for Zero-Shot Anomaly Detection

Zero-shot anomaly detection (ZSAD) aims to detect anomalies in previously unseen classes using auxiliary images, with applications such as industrial visual inspection and medical imaging. Recent vision-language-model-based approaches improve ZSAD by aligning textual and visual representations, while distributional pro...

Jiyul Ham, Seongho Yoon, Yonggon Jung et al. · 0 citations
#artificial intelligence Preprint Oct 2026

Anchor and Adapt: Asymmetric Prompt Adaptation for Few-Shot Industrial Anomaly Detection

In few-shot industrial anomaly detection, the few normal target images provide no direct defect supervision, making anomaly prompts difficult to learn from these samples alone. Some vision-language methods therefore use manually specified descriptions to supply explicit anomaly semantics. However, constructing these de...

Meng-Yang Zhao, Teng Fu, Hai-Yang Yu et al. · 0 citations
#artificial intelligence Preprint Nov 2026

DART: Domain-Agnostic Residual Transfer for Generalist Anomaly Detection

Generalist Anomaly Detection (GAD) aims to detect anomalies in unseen domains using only a few reference samples. Recent normal-abnormal guided methods improve this setting by exploiting abnormal references, but their residuals often mix transferable anomaly cues with domain-specific appearance factors such as texture,...

Muhammad Aqeel, Maham Nazir, M. Cristani et al. · 0 citations

TED:Text-Axis Evidence Decomposition for Prompted Anomaly Localization

CLIP is a powerful vision-language model, but it was not designed for fine-grained defect localization; CLIP-based anomaly detectors therefore adapt it with prompts or lightweight modules to increase defect sensitivity. We show that stronger sensitivity does not necessarily make local evidence reliable: under domain sh...

Jinyoung Kim, Geonho Kim, Gijeong Park et al. · 0 citations
Preprint Nov 2026

VerdictAD: Few-Shot Anomaly Detection via Decision-Guided Refinement

Detecting defects in real-world industrial inspection often requires learning from only a few normal images per category. Recent few-shot anomaly detection methods have achieved strong performance by measuring feature differences between query images and normal references. However, visual differences do not always indi...

Shang-Quan Sun, Wen-Jun Luo, Yuan-Zhi Wang et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.