Politecnico di Milano's TGAD Benchmark Exposes AI Defect Detection as Largely Fake
A new benchmark exposes that multimodal anomaly detection models barely respond to text instructions, with performance collapsing below chance on realistic industrial data.
Takeaways
- TGAD benchmark reveals that text prompts in multimodal anomaly detection models barely influence decisions, exposing a fundamental gap between claimed and actual capabilities.
- On the new Assembled Panel Dataset (APD), one model scores 31.5 I-AUROC, below the 50 random-chance baseline.
- Removing just the object noun from a prompt drops AnomalyGPT's image-level accuracy from 97.4 to 82.6, showing models anchor on object names, not full instructions.
- Component-level instructions (e.g., "inspect only the left capacitor") are ignored once defects outside the instructed region are present, with scores falling from 90.3 to 66.3.
- Three model paradigms tested: generative (AnomalyGPT), training-free discriminative (LogSAD), and embedding-adaptive (AA-CLIP) -- all fail to genuinely follow language instructions.
- The paper calls for a new benchmark protocol as a prerequisite before deploying language-controlled inspection systems in real industrial settings.
There is a growing class of industrial inspection systems that promise something compelling: point the model at a circuit board, tell it in plain English which component to check, and it will flag only the defects you care about. The pitch is text-guided anomaly detection, and it has attracted serious research attention. A new paper from researchers at Politecnico di Milano argues that this promise is largely illusory, and they have the benchmark to prove it.
The paper introduces TGAD (Text-Guided Anomaly Detection), a structured benchmark designed to answer one deceptively simple question: does the text you provide actually change what the model decides? The answer, across every model and every scenario tested, is mostly no.
Why the old benchmarks were blind to this
Industrial anomaly detection has long been dominated by MVTec AD, the de facto standard dataset. MVTec AD is a dataset for benchmarking anomaly detection methods with a focus on industrial inspection, containing over 5000 high-resolution images divided into fifteen different object and texture categories. It is a rigorous visual benchmark, but it was designed for unimodal models that only look at images.
When multimodal vision-language models arrived, researchers simply plugged them into the same evaluation protocol. The problem: traditional AI research for automatic vision inspection typically relies on discriminative models within the conventional deep learning paradigm. These models can only perform trained detection tasks and cannot provide detailed reports like quality inspection workers. Additionally, when production lines or requirements change, traditional methods necessitate retraining or redevelopment. The new multimodal models were supposed to fix this by accepting natural language instructions, but the benchmarks never checked whether those instructions were actually doing anything.
The core flaw is that existing evaluation protocols hold the text prompt constant across all test images. If the prompt never changes, you cannot measure whether the model is responding to it. High scores on MVTec AD could reflect powerful pretrained visual features, not genuine language conditioning. The TGAD benchmark is built specifically to break that ambiguity.
Three scenarios, each harder than the last
TGAD progressively increases the functional role that language must play to score well. It is structured around three scenarios:
- Prompt sensitivity on MVTec AD: The same images are evaluated with prompts that vary systematically, including prompts where the object noun is removed. This tests whether the model is actually reading the prompt or just using visual features.
- Component-tagged MVTec AD: An extension of MVTec AD where each image is annotated with component labels. The model is instructed to assess only a specific part of the object. Defects outside the instructed region should be treated as normal.
- Assembled Panel Dataset (APD): A brand-new dataset representing a realistic industrial setting, such as a multi-component electronic panel. Scoring well requires knowing both the defect type and the component location simultaneously.

The three scenarios form a ladder. The first only requires the model to be sensitive to prompt wording. The second requires it to spatially restrict its attention based on a language instruction. The third requires both at once, in a domain with no prior benchmark coverage.
The models under the microscope
The authors evaluated one representative model from each of three paradigms that dominate the current literature:
- AnomalyGPT (generative large vision-language model): AnomalyGPT explores the utilization of large vision-language models to address the industrial structural anomaly detection problem.
- LogSAD (training-free discriminative): uses CLIP-style alignment without any task-specific fine-tuning.
- AA-CLIP (embedding-adaptive discriminative): AA-CLIP presents a novel methodology aimed at improving zero-shot anomaly detection by utilizing a modified version of the CLIP model. This approach addresses the inherent limitations of CLIP's anomaly-unawareness, enabling it to discern abnormal from normal features in both text and image modalities.
These three cover the realistic design space: a model that generates language outputs, a model that uses language embeddings without training, and a model that adapts those embeddings with lightweight fine-tuning.
The numbers tell a damning story
The results are striking. On the prompt-sensitivity scenario, AnomalyGPT achieves an I-AUROC (image-level area under the ROC curve, a standard measure of how well the model separates defective from normal images) of 97.4 when given a full, correct prompt. Remove just the object noun from the prompt, and it drops to 82.6. The model is not reading the full prompt, it is anchoring on the object name and ignoring the rest of the description.
The component-level scenario is worse. When defects outside the instructed component are admitted as normal, performance falls from 90.3 to 66.3. The model cannot restrict its spatial attention based on a language instruction. It flags whatever looks visually anomalous, regardless of what it was told to inspect.
The APD dataset, which combines both challenges in a realistic setting, produces the most alarming result. I-AUROC scores across the three models come in at 71.2, 50.5, and 31.5. That last number is below chance. A random classifier would score 50.

What is actually happening inside these models
The paper's diagnosis is that text input is absorbed rather than acted upon. Models learn a strong prior from their visual pretraining that dominates the decision. The language interface exists, but it is cosmetic: it changes outputs at the margins (removing the object noun does hurt performance) but cannot redirect the model's spatial attention or override its visual priors.
This is a known structural problem. Recent advancements in multimodal large language models hold promise for overcoming limitations by combining visual and textual information processing capabilities. However, MLLMs excel in general visual understanding due to their training on large, diverse datasets, but they lack domain-specific knowledge, such as industry-specific defect tolerance levels, which limits their effectiveness in IAD tasks. TGAD makes this limitation quantitatively precise for the first time.
What this means in practice
If you are building or evaluating a quality-control pipeline that relies on language instructions to scope what gets flagged, the TGAD results are a direct warning. The scenario where a technician types "check the capacitor on the left board only" and the model complies is not reliably achievable with any of the current paradigms tested.
The benchmark is most useful for:
- Researchers developing new multimodal anomaly detection architectures who want to verify that language is genuinely conditioning decisions, not just being absorbed.
- Teams evaluating off-the-shelf models for deployment in multi-component inspection environments where component-level specificity matters.
- Anyone comparing models on MVTec AD who wants to know whether reported gains are from better language understanding or just stronger visual backbones.
The Assembled Panel Dataset (APD) is a genuine contribution independent of the benchmark protocol. It fills a gap: existing datasets like MVTec AD cover single-object categories, while real factory inspection often involves multi-component assemblies where both location and defect type must be jointly understood.
The limits of the study
The paper tests one model per paradigm. That is a deliberate methodological choice to keep the analysis clean, but it means the conclusions about each paradigm are based on a single data point. It is possible that a different generative model or a differently trained CLIP-based system would behave differently. The authors frame their results as evidence that the benchmark protocol is necessary, not that every possible model in each paradigm is equally broken.
No code or dataset release is announced in the paper, which limits immediate reproducibility. The benchmark's value will depend on whether the APD dataset and evaluation scripts become publicly available for the community to use.
The deeper point the paper makes is architectural: current multimodal anomaly detection systems were not designed with language-conditioned spatial control as a first-class objective. They were designed to detect anomalies visually and given a language interface as an afterthought. TGAD is a call to change the design target, not just the evaluation protocol.