English

Beyond Human-prompting: Adaptive Prompt Tuning with Semantic Alignment for Anomaly Detection

Computer Vision and Pattern Recognition 2025-08-25 v1 Artificial Intelligence

Abstract

Pre-trained Vision-Language Models (VLMs) have recently shown promise in detecting anomalies. However, previous approaches are fundamentally limited by their reliance on human-designed prompts and the lack of accessible anomaly samples, leading to significant gaps in context-specific anomaly understanding. In this paper, we propose \textbf{A}daptive \textbf{P}rompt \textbf{T}uning with semantic alignment for anomaly detection (APT), a groundbreaking prior knowledge-free, few-shot framework and overcomes the limitations of traditional prompt-based approaches. APT uses self-generated anomaly samples with noise perturbations to train learnable prompts that capture context-dependent anomalies in different scenarios. To prevent overfitting to synthetic noise, we propose a Self-Optimizing Meta-prompt Guiding Scheme (SMGS) that iteratively aligns the prompts with general anomaly semantics while incorporating diverse synthetic anomaly. Our system not only advances pixel-wise anomaly detection, but also achieves state-of-the-art performance on multiple benchmark datasets without requiring prior knowledge for prompt crafting, establishing a robust and versatile solution for real-world anomaly detection.

Keywords

Cite

@article{arxiv.2508.16157,
  title  = {Beyond Human-prompting: Adaptive Prompt Tuning with Semantic Alignment for Anomaly Detection},
  author = {Pi-Wei Chen and Jerry Chun-Wei Lin and Wei-Han Chen and Jia Ji and Zih-Ching Chen and Feng-Hao Yeh and Chao-Chun Chen},
  journal= {arXiv preprint arXiv:2508.16157},
  year   = {2025}
}
R2 v1 2026-07-01T05:01:17.722Z