SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.15366 · 2023

AnomalyGPT: Detecting Industrial Anomalies Using Large Vision-Language Models

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 1 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2308.15366.json · badge: /api/ran/2308.15366.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
casia-iva-lab/anomalygpt canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
apply_rotary_pos_emb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
casia-iva-lab/anomalygpt/code/model/modeling_llama.py
pointer only (licence: NONE) · get_code("9b4dff79d5e6102c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, casia-iva-lab/anomalygpt 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.

build_one_instance Ran
ran; our contract draft was wrong, not the code
casia-iva-lab/anomalygpt/code/model/openllama.py
pointer only (licence: NOASSERTION) · get_code("bd47a010005062d4")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, casia-iva-lab/anomalygpt (NOASSERTION). 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.

find_contours Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
casia-iva-lab/anomalygpt/code/datasets/all_supervised_with_cn.py
pointer only (licence: NOASSERTION) · get_code("f3e7a5a2f243754f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, casia-iva-lab/anomalygpt (NOASSERTION). 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.

get_class_name Ran
ran; our contract draft was wrong, not the code
casia-iva-lab/anomalygpt/code/datasets/all_supervised_with_cn.py
pointer only (licence: NOASSERTION) · get_code("565be006d0d7d202")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, casia-iva-lab/anomalygpt (NOASSERTION). 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.

get_class_name_cn Ran
ran; our contract draft was wrong, not the code
casia-iva-lab/anomalygpt/code/datasets/all_supervised_with_cn.py
pointer only (licence: NOASSERTION) · get_code("f6cfd32b2ad4e94b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, casia-iva-lab/anomalygpt (NOASSERTION). 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.

parse_text Ran
ran; our contract draft was wrong, not the code
casia-iva-lab/anomalygpt/code/web_demo.py
pointer only (licence: NONE) · get_code("826ceb601fb31250")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, casia-iva-lab/anomalygpt 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.

process_batch_instance Ran
ran, honoured the contract we drafted
casia-iva-lab/anomalygpt/code/model/openllama.py
pointer only (licence: NOASSERTION) · get_code("933db64e6793587b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, casia-iva-lab/anomalygpt (NOASSERTION). 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.

rotate_half Ran
ran; our contract draft was wrong, not the code
casia-iva-lab/anomalygpt/code/model/modeling_llama.py
pointer only (licence: NONE) · get_code("b99eea6376d1e212")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, casia-iva-lab/anomalygpt 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.

encode_text_with_prompt_ensemble Not yet run
unverified (harvested, no recorded run)
casia-iva-lab/anomalygpt/code/model/openllama.py
pointer only (licence: NONE); the stored copy get_code serves, from tzjtatata/myriad, is pointer only (licence: NONE) · get_code("b7db790f54abfb17")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, casia-iva-lab/anomalygpt 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 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 8 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 2 the same month, 8 later) and 1 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
rotate_half 360 other papers
16 dated earlier, 7 the same month, 334 later, 3 undated · 30 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
and 357 more not named here
apply_rotary_pos_emb 47 other papers
6 dated earlier, 5 the same month, 36 later
2305.14167 (2023-05)
DetGPT: Detect What You Need via Reasoning
2305.16103 (2023-05)
ChatBridge: Bridging Modalities with Large Language Model as a Language Catalyst
2305.16355 (2023-05)
PandaGPT: One Model To Instruction-Follow Them All
and 44 more not named here
parse_text 9 other papers
5 dated earlier, 4 later
2203.13474 (2022-03)
CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
2305.12524 (2023-05)
TheoremQA: A Theorem-driven Question Answering Dataset ♠
2305.14314 (2023-05)
QLORA: Efficient Finetuning of Quantized LLMs
and 6 more not named here
encode_text_with_prompt_ensemble 2 other papers
2 later
2310.19070 (2023-10)
Myriad: Large Multimodal Model by Applying Vision Experts for Industrial Anomaly Detection
2412.17619 (2024-12)
Kernel-Aware Graph Prompt Learning for Few-Shot Anomaly Detection
process_batch_instance 2 other papers
1 dated earlier, 1 later
2305.16355 (2023-05)
PandaGPT: One Model To Instruction-Follow Them All
2401.10727 (2024-01)
MLLM-Tool: A Multimodal Large Language Model For Tool Agent Learning
find_contours 1 other paper
1 later
2412.17619 (2024-12)
Kernel-Aware Graph Prompt Learning for Few-Shot Anomaly Detection
get_class_name 1 other paper
1 later
2412.17619 (2024-12)
Kernel-Aware Graph Prompt Learning for Few-Shot Anomaly Detection
get_class_name_cn 1 other paper
1 later
2412.17619 (2024-12)
Kernel-Aware Graph Prompt Learning for Few-Shot Anomaly Detection

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-22.

Repositories linked to this paper

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

Abstract

Large Vision-Language Models (LVLMs) such as MiniGPT-4 and LLaVA have demonstrated the capability of understanding images and achieved remarkable performance in various visual tasks. Despite their strong abilities in recognizing common objects due to extensive training datasets, they lack specific domain knowledge and have a weaker understanding of localized details within objects, which hinders their effectiveness in the Industrial Anomaly Detection (IAD) task. On the other hand, most existing IAD methods only provide anomaly scores and necessitate the manual setting of thresholds to distinguish between normal and abnormal samples, which restricts their practical implementation. In this paper, we explore the utilization of LVLM to address the IAD problem and propose AnomalyGPT, a novel IAD approach based on LVLM. We generate training data by simulating anomalous images and producing corresponding textual descriptions for each image. We also employ an image decoder to provide fine-grained semantic and design a prompt learner to fine-tune the LVLM using prompt embeddings. Our AnomalyGPT eliminates the need for manual threshold adjustments, thus directly assesses the presence and locations of anomalies. Additionally, AnomalyGPT supports multi-turn dialogues and exhibits impressive few-shot in-context learning capabilities. With only one normal shot, AnomalyGPT achieves the state-of-the-art performance with an accuracy of 86.1%, an image-level AUC of 94.1%, and a pixel-level AUC of 95.3% on the MVTec-AD dataset. Code is available at https://github.com/CASIA-IVA-Lab/AnomalyGPT.

For agents

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

get_harvested_code_for_paper("2308.15366")
get_code_for_paper("2308.15366")
have("2308.15366")

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

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

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

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

Connect an agent — have() is free.