Abstract
Automatic vision inspection holds significant importance in industry inspection. While multimodal large language models (MLLMs) exhibit strong language understanding capabilities and hold promise for this task, their performance remains significantly inferior to that of human experts. In this context, we identify two key challenges: (i) insufficient integration of anomaly detection (AD) knowledge during pre-training, and (ii) the lack of technically precise and context-aware language generation for anomaly reasoning. To address these issues, we propose ADSeeker, an anomaly task assistant designed to enhance inspection performance through knowledge-grounded reasoning. ADSeeker leverages a curated visual document knowledge base, SEEK-MVTec&VisA (SEEK-M&V), which we construct to address the limitations of existing resources that rely solely on unstructured text. SEEK-M&V includes semantic-rich descriptions and image-document pairs, enabling more comprehensive anomaly understanding. To effectively retrieve and utilize this knowledge, we introduce the Query Image-Knowledge Retrieval-Augmented Generation (Q2K RAG) framework. To further enhance the performance in zero-shot anomaly detection (ZSAD), ADSeeker leverages the Hierarchical Sparse Prompt mechanism and type-level features to efficiently extract anomaly patterns. Furthermore, to tackle the challenge of limited industry anomaly detection (IAD) data, we introduce the largest-scale AD dataset, Multi-type Anomaly (MulA), encompassing 72 multi-scale defect types across 26 Categories. Extensive experiments show that our plug-and-play framework, ADSeeker, achieves state-of-the-art zero-shot performance on several benchmark datasets.
Introduction
In the world of automated industrial inspection, detecting a defect is only half the battle. A human expert doesn't just point at a crack; they identify the type of defect, speculate on its cause, and predict its consequences. While Multimodal Large Language Models (MLLMs) like GPT-4o have shown promise, they often stumble in specialized domains like Industry Anomaly Detection (IAD) due to knowledge scarcity and a lack of technical precision.
Current MLLMs face two primary hurdles: they lack the technical "know-how" of specific industrial defects (e.g., the difference between a "scratch" and a "fray" on a specific textile) and they often suffer from "hallucinations" during reasoning. ADSeeker is a framework designed to transform MLLMs from generalists into domain experts capable of both high-precision anomaly detection and sophisticated logical reasoning.
Methodology
ADSeeker employs a multi-pronged architecture to inject expertise into the model without requiring massive task-specific retraining:
- Q2K RAG (Query Image-Knowledge Retrieval-Augmented Generation): Unlike standard text-based RAG, Q2K RAG uses the query image to find relevant visual documents. It employs a "Key-Lock" embedding system to match an image of a defect to a technical document describing that specific anomaly. To optimize this, a KDE-Sample Strategy uses Kernel Density Estimation to dynamically select the most relevant samples from retrieved clusters.
- AD Expert Module: This module calculates similarity between image patches and "type-level" prompts (e.g., "hole" or "scratch") rather than just "object-level" prompts. This allows the model to focus on the specific nature of the defect.
- Hierarchical Sparse Prompt (HSP): Inspired by human vision, this mechanism iteratively "sparsifies" the image data, filtering out background noise and forcing the model to attend specifically to the anomalous regions.
Datasets and Knowledge Bases
To support this framework, the authors introduced two significant new resources:
- MulA (Multi-type Anomaly): Currently the largest-scale AD dataset, featuring 11,226 images across 26 categories and 72 multi-scale defect types. It includes diverse modalities like RGB, Grey, and X-ray.
- SEEK-MVTec&VisA (SEEK-M&V): The first-ever visual document knowledge base for IAD, containing semantic-rich descriptions and image-document pairs that provide a clear reference for what specific defects look like.
Results and Discussion
ADSeeker demonstrates superior performance across several benchmarks:
- Zero-Shot Superiority: ADSeeker achieved an average 94.0% AUROC across seven industrial and medical datasets, outperforming specialized models like Anomaly-OV (91.8%) and AnomalyCLIP (88.2%).
- Expert-Level Reasoning: In the MMAD benchmark, ADSeeker significantly outperformed vanilla MLLMs in defect classification and localization, largely due to its focus on type-level features which reduces hallucinations.
- Efficiency: The framework is "plug-and-play," wrapping around existing backbones (like Qwen2.5-VL). It adds only about 27% memory overhead and roughly 2 seconds of latency per inference, making it viable for real-world applications.
Conclusion
ADSeeker bridges the gap between simple detection and expert reasoning in industrial AI. By leveraging visual knowledge retrieval and hierarchical prompting, it achieves state-of-the-art zero-shot performance. Future work will focus on expanding the SEEK-M&V knowledge base to more niche sectors and exploring advanced reinforcement learning strategies to further refine reasoning capabilities.
Summary updated