Abstract
Industrial anomaly detection (AD) often requires specialized models that lack generalizability and interpretability. This paper presents a framework for transforming general-purpose Visual-Language Models (VLMs) into specialized industrial detectors through a "multi-modal prompting" strategy. By integrating expert domain knowledge—such as normality rules and reference images—into models like GPT-4V and Qwen2VL, the researchers achieved high-accuracy detection and human-like reasoning across 2D, 3D, and video modalities without fine-tuning.
Introduction
Anomaly detection is a cornerstone of industrial quality control, yet it remains a fragmented field. Traditional AD models are typically "specialized experts": a model trained to find cracks in tiles cannot detect missing components on a PCB. These models are often "black boxes" that provide a binary "pass/fail" without explaining the reasoning behind the classification.
While large-scale foundation models (like GPT-4V) possess vast general knowledge, they often fail in industrial settings because they lack the specific context of what "normal" looks like for a particular product. This research addresses this gap by developing a method to "inject" expert knowledge into these models via sophisticated prompting, creating a flexible, multi-modal, and interpretable anomaly detection system.
Methodology
The authors propose a two-pronged approach: Unified Representation and Multi-Modal Prompt Engineering.
Unified Representation
To make the system modality-agnostic, all data types are converted into 2D images. 3D point clouds are rendered into depth images, and time-series data are visualized as line plots. This allows a standard VLM to process diverse industrial data through a single visual interface.
Multi-Modal Prompt Engineering
The core innovation is a structured prompting strategy that moves beyond simple instructions. Prompts are categorized into four types:
- Task Instruction: Defining the goal (e.g., "Determine if this image contains defects").
- Class Context: Identifying the object (e.g., "This is a bottle").
- Normality Rules: Explicit textual rules (e.g., "The juice level should be 3cm below the cap").
- Visual Reference: Providing a "golden sample" image of a normal object for direct comparison.
The models are instructed to return results in a JSON format containing both a binary "correctness" score and a textual "reasoning" string, facilitating automated evaluation and interpretability.
Experimental Evaluation
The framework was evaluated across several benchmark datasets, including MVTec-AD (2D), MVTec-LOCO (logical anomalies), MVTec 3D-AD (3D), and UCF-Crime (video).
Key Results
- GPT-4V Performance: Achieved an average accuracy of 84.2% and an AUROC of 82.9% on the MVTec-AD dataset in a zero-shot setting.
- Ablation Success: Combining visual prompts (reference images) and language prompts (normality rules) consistently outperformed using either in isolation.
- Open-Source Viability: The open-source Qwen2VL-7B outperformed commercial models in AUROC, suggesting that smaller, open models are highly viable for industrial deployment.
Discussion and Conclusion
A primary insight is that the "Golden Sample" reference image provides the most significant performance boost, enabling the VLM to perform a visual "spot the difference." Unlike traditional models, these customized VLMs can explain their logic, which is crucial for human-in-the-loop industrial processes.
Despite these advances, limitations remain in detecting extremely fine-grained details and performing complex logical reasoning in scenes with many small objects. Future work will explore multi-round "conversations" to refine detection and the integration of non-visual sensor metadata.
Summary updated