Knowledge-Guided Distributional Prompt Learning with Visual Hierarchy for Zero-Shot Anomaly Detection
Jiyul Ham, Seongho Yoon, Yonggon Jung, Sangjae Lee, Jun-Geol Baek
Abstract
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 prompting further models prompt variability for unseen categories. However, existing methods do not explicitly combine normality-referenced distributional modeling with hierarchy-specific prompt specialization, limiting their ability to model anomalous semantics relative to normality while addressing both image-level detection and fine-grained localization. We propose Hierarchical Knowledge-Guided Distributional Prompt Learning (HiDist), a normality-referenced hierarchical distributional prompt framework for ZSAD. HiDist models each prompt token with a diagonal Gaussian distribution and generates stochastic prompt variations through Monte Carlo sampling. Rather than learning normal and anomalous distributions independently, anomalous prompt distributions are parameterized as deviations from learned normal references, explicitly encoding their dependency. The resulting distributions are specialized into global and local representations for image-level detection and pixel-level localization, respectively, while an adapted global visual representation guides hierarchical alignment. Experiments on seven industrial and medical datasets demonstrate strong cross-dataset performance across anomaly detection and localization tasks. Extensive ablation and representation analyses further support the effectiveness of the proposed distributional modeling and hierarchy-specific representation learning.
Create a lesson
Metadata
- Comments
- 22 pages, 12 figures
Related papers
DiffGround: Semantic Difference-Guided Zero-Shot Video Question Grounding
Shared title terminologycs.CVCheng-Han Lee, Amir Salimi, Hsiang-Wei Huang et al.
Show Me the Change You Want: Visual Example-Guided Change Detection
Shared title terminologycs.CVYuan Qian, Jiaqi Cui, Jie Ma
AVERT: Anomalous Value Erasure with Response Testing against Visual Prompt Injection
Shared title terminologycs.CVNewt Hue-Nam K. Nguyen, Jui-Yu Ho, Wei-Han Chen et al.
PRIMA: Pose Refined Inductive Motion Adapter for Zero Shot Social Bodily Behavior Recognition
Shared title terminologycs.CVMingcong Ding, Babette Bühler, Tim Fütterer et al.
ATLAS: Attention-Guided Test-Time Latent Selection for Compositional Visual Autoregressive Generation
Shared title terminologycs.CVHossein Shahabadi, Raya Namazi, Mahdieh Soleymani Baghshah
PanoDent-KD: From Generalist Knowledge Distillation to Cross-Dataset Specialist Detection and Embedded Deployment in Panoramic Radiographs
Shared title terminologycs.CVMuhammad Waqas Ashraf, Imad Ali Shah, Ali Hassan