SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.10080 · CVPR · 2025

Bayesian Prompt Flow Learning for Zero-Shot Anomaly Detection

Guiguang Ding, Xinyi Gong, Xingang Wang, Zhen Qu, Xian Tao, Shichen Qu, Qiyu Chen, Zhengtao Zhang

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 2 failures of our instrument; 4 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2503.10080.json · badge: /api/ran/2503.10080.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
xiaozhen228/Bayes-PFL community
Papers with Code archive
8 ran · 4 no recorded run
FunctionStatusWhere it lives
Decoder Ran
ran on a synthesized input
xiaozhen228/Bayes-PFL/models/VPB.py
pointer only (licence: NONE) · get_code("c07c0cecf493a1dd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiaozhen228/Bayes-PFL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Encoder Ran
ran on a synthesized input
xiaozhen228/Bayes-PFL/models/VPB.py
pointer only (licence: NONE) · get_code("1cd5917f59cfed09")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiaozhen228/Bayes-PFL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Global_Feature Ran
ran on a synthesized input
xiaozhen228/Bayes-PFL/models/VPB.py
pointer only (licence: NONE) · get_code("7492d2701b36df98")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiaozhen228/Bayes-PFL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

InferenceBlock Ran
ran on a synthesized input
xiaozhen228/Bayes-PFL/models/VPB.py
pointer only (licence: NONE) · get_code("3b23b0d856fbe61f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiaozhen228/Bayes-PFL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PFL Ran
ran on a synthesized input
xiaozhen228/Bayes-PFL/models/VPB.py
pointer only (licence: NONE) · get_code("40744df2580572ab")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiaozhen228/Bayes-PFL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Planar Ran
ran on a synthesized input
xiaozhen228/Bayes-PFL/models/VPB.py
pointer only (licence: NONE) · get_code("5ca5a6e68c3b6c2e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiaozhen228/Bayes-PFL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

binary_loss_function Ran
ran; our contract draft was wrong, not the code
xiaozhen228/Bayes-PFL/models/VPB.py
pointer only (licence: NONE) · get_code("875b72dfcf9c804f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiaozhen228/Bayes-PFL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

log_normal_dist Ran
ran; our contract draft was wrong, not the code
xiaozhen228/Bayes-PFL/models/VPB.py
pointer only (licence: NONE) · get_code("7dadf0e81a27a70a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiaozhen228/Bayes-PFL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Context_Prompting Not yet run
unverified (harvested, no recorded run)
xiaozhen228/Bayes-PFL/models/VPB.py
pointer only (licence: NONE) · get_code("6464dd5e0e28bb63")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiaozhen228/Bayes-PFL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

PlanarPFL Not yet run
unverified (harvested, no recorded run)
xiaozhen228/Bayes-PFL/models/VPB.py
pointer only (licence: NONE) · get_code("45e172ba85da53bc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiaozhen228/Bayes-PFL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

PlanarPFL_state Not yet run
unverified (harvested, no recorded run)
xiaozhen228/Bayes-PFL/models/VPB.py
pointer only (licence: NONE) · get_code("834b89db3bf92f14")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiaozhen228/Bayes-PFL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Zero_Parameter Not yet run
unverified (harvested, no recorded run)
xiaozhen228/Bayes-PFL/models/VPB.py
pointer only (licence: NONE) · get_code("45e674352dcd6885")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiaozhen228/Bayes-PFL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
Global_Feature
brick of this paper's assembly: model
1 other paper
1 later
2508.13560 (2025-08)
DictAS: A Framework for Class-Generalizable Few-Shot Anomaly Segmentation via Dictionary Lookup

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recently, vision-language models (e.g. CLIP) have demonstrated remarkable performance in zero-shot anomaly detection (ZSAD). By leveraging auxiliary data during training, these models can directly perform cross-category anomaly detection on target datasets, such as detecting defects on industrial product surfaces or identifying tumors in organ tissues. Existing approaches typically construct text prompts through either manual design or the optimization of learnable prompt vectors. However, these methods face several challenges: 1) handcrafted prompts require extensive expert knowledge and trial-and-error; 2) single-form learnable prompts struggle to capture complex anomaly semantics; and 3) an unconstrained prompt space limits generalization to unseen categories. To address these issues, we propose Bayesian Prompt Flow Learning (Bayes-PFL), which models the prompt space as a learnable probability distribution from a Bayesian perspective. Specifically, a prompt flow module is designed to learn both imagespecific and image-agnostic distributions, which are jointly utilized to regularize the text prompt space and improve the model's generalization on unseen categories. These learned distributions are then sampled to generate diverse text prompts, effectively covering the prompt space. Additionally, a residual cross-model attention (RCA) module is introduced to better align dynamic text embeddings with fine-grained image features. Extensive experiments on 15 industrial and medical datasets demonstrate our method's superior performance. The code is available at https://github.com/xiaozhen228/Bayes-PFL.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2503.10080")
get_code_for_paper("2503.10080")
have("2503.10080")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2503.10080.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2503.10080.svg)](https://syntology.ai/paper/2503.10080)

Connect an agent — have() is free.