atlas

Research map / Vision-language and multimodal / CLIP and zero-shot

Bayesian Prompt Flow Learning for Zero-Shot Anomaly Detection

CVPR 2025 · Vision-language and multimodal › CLIP and zero-shot · approach: Feature calibration for unseen-class detection · 19 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Bayes-PFL models CLIP text prompts as learnable probability distributions via a normalizing-flow prompt module (image-specific context distribution, image-agnostic state distribution) with Monte Carlo prompt sampling and a residual cross-modal attention module, achieving state-of-the-art zero-shot anomaly detection on 15 industrial and medical datasets.

Problem

Zero-shot anomaly detection with CLIP-based methods suffers from handcrafted prompts needing expert effort, single-form learnable prompts that cannot capture complex anomaly semantics, and an unconstrained prompt space that hurts generalization to unseen categories.

Approach

Treat the prompt space as a learnable probability distribution from a Bayesian perspective: a normalizing-flow prompt module learns image-specific context distributions and image-agnostic state distributions, sampled to generate diverse prompts, with an RCA module that refines dynamic text embeddings using patch-level image features.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add image-specific distribution (ISD) in prompt flow (ablation)Bayes-PFL · MVTec-ADimage-level AUROC: 92.3 vs 89.1 without ISDHelped
add image-agnostic distribution (IAD) for state words (ablation)Bayes-PFL · MVTec-ADimage-level AUROC: 92.3 vs 90.3 without IADHelped
add RCA module (ablation)Bayes-PFL · MVTec-ADimage-level AUROC: 92.3 vs 91.8 without RCAHelped
add RCA module (ablation)Bayes-PFL · MVTec-ADpixel-level AP: 48.3 vs 46.1 without RCAHelped
add orthogonal loss Lort (ablation)Bayes-PFL · MVTec-ADimage-level AUROC: 92.3 vs 91.2 without LortHelped
increase Monte Carlo sampling iterations at inference from 1 to 10 (ablation)Bayes-PFL · MVTec-ADimage-level AUROC: 92.7 at R=10 vs 89.5 at R=1; inference time 388.5 ms vs 132.2 msHelped
image ensemble instead of text ensemble (ablation)Bayes-PFL · MVTec-ADimage-level AUROC: 92.3 vs 92.0Helped
learned prompt distribution with prompt flow vs AnomalyCLIP-style prompt optimization (AnomalyCLIP+)AnomalyCLIP prompt design · MVTec-AD training curvepixel-level AP: AnomalyCLIP+ shows declining AP after peak; Bayes-PFL stays consistently improvingHelped
Bayes-PFL vs SOTA methods trained on VisA and tested on other datasetsBayes-PFL · 15 industrial and medical datasetsimage and pixel-level AUROC/AP/PRO: best on nearly all datasets, e.g. ISIC pixel AUROC 92.2 vs 88.4 (AnomalyCLIP)Helped

Surprising findings

Limitations

Experimental setup

Datasets: VisA MVTec-AD

Benchmarks: MVTec-AD VisA BTAD KSDD2 RSDD DAGM DTD-Synthetic HeadCT BrainMRI Br35H ISIC CVC-ColonDB

Metrics: AUROC F1-Max AP PRO

Baselines: WinCLIP APRIL-GAN CLIP-AD AnomalyCLIP AdaCLIP

Builds on: CLIP AnomalyCLIP WinCLIP APRIL-GAN CLIP-AD

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy