Abstract
In industrial quality control, identifying the presence of an anomaly is often insufficient for operational decision-making. While existing state-of-the-art (SOTA) models excel at unsupervised anomaly detection and localization, they frequently lack the semantic depth required to classify the specific nature of a defect. This paper introduces VELM (Vision Expert + Language Model), a multi-modal pipeline that integrates specialized industrial vision experts with the reasoning capabilities of Multimodal Large Language Models (MLLMs). By employing a "filter-then-classify" architecture and introducing refined benchmarks like MVTec-AC, we demonstrate that VELM achieves superior accuracy in categorizing defects and distinguishing between critical failures and benign variations.
1. Introduction
Industrial inspection systems are traditionally evaluated on their ability to distinguish "normal" from "abnormal" samples. However, in a production environment, a "poke" on a plastic component might represent a critical structural failure, while a minor color shift might be a benign variation resulting from a design update. Current vision models are adept at identifying statistical deviations (the "where" and "if"), but they struggle with the semantic classification (the "what") required for actionable intelligence.
Furthermore, standard benchmarks like MVTec-AD were primarily designed for detection tasks. These datasets often contain noisy labels or overlapping categories that impede the training of robust classifiers. This research addresses these gaps by proposing a collaborative framework between vision-specific experts and general-purpose MLLMs, alongside refined datasets for rigorous evaluation.
2. The VELM Framework
VELM operates as a multi-stage pipeline designed for both efficiency and semantic accuracy. The framework treats anomaly detection as a collaborative process between a "Vision Expert" and a "Language Expert."
2.1 Vision Expert: Filtering and Prompting
To maintain high inference speeds and minimize computational overhead, the system first utilizes an unsupervised anomaly detector (e.g., DDAD or PatchCore). This expert acts as a gatekeeper; if a part is identified as "healthy," the process terminates. If an anomaly is detected, the Vision Expert generates a "visual prompt"—a red contour or mask—around the suspicious region to provide spatial context for the subsequent stage.
2.2 MLLM: Semantic Reasoning
When a potential defect is flagged, the system passes three primary inputs to an MLLM (such as GPT-4o):
- Reference Image: A "gold standard" image of a healthy part.
- Query Image: The suspect part featuring the visual prompt (red contour).
- Structured Text Prompt: Detailed object descriptions, class definitions (e.g., distinguishing "Broken Large" from "Broken Small"), and a decision-making strategy.
The MLLM leverages its pre-trained semantic knowledge to categorize the anomaly based on the provided definitions, effectively bridging the gap between raw pixel deviation and human-understandable categories.
3. Dataset Refinement: MVTec-AC and VisA-AC
The authors identified that existing benchmarks were insufficient for classification tasks due to label noise. Consequently, two refined datasets were introduced:
- MVTec-AC (Anomaly Classification): A cleaned version of MVTec-AD where 36 misclassified samples were corrected, overlapping classes were merged (e.g., consolidating "poke" and "crack" where appropriate), and trivial categories were removed.
- VisA-AC: A similarly refined version of the VisA dataset, optimized for statistical rigor and sufficient sample sizes.
4. Key Insights and Results
4.1 Performance Benchmarks
VELM demonstrates state-of-the-art performance across multiple benchmarks. On the original MVTec-AD, VELM achieved 81.4% accuracy, significantly outperforming previous baselines such as Echo (72.9%) and MCAD (76.4%). On the newly introduced MVTec-AC, the system reached 84.0% accuracy using a DDAD + GPT-4o configuration.
4.2 The Role of Visual and Textual Prompting
Ablation studies highlight the importance of the "red circle" visual prompt. This spatial anchor allows the MLLM to focus its attention, significantly boosting classification accuracy compared to analyzing raw images. Furthermore, the "Anomaly Description" in the text prompt was found to be the most critical component; without clear semantic definitions of defects, the MLLM's performance declines sharply.
4.3 Oracle Potential and Actionable Logic
When provided with perfect ground-truth masks (the "Oracle" setup), the MLLM reached 87.8% accuracy. This suggests that as the underlying vision experts improve in localization, the classification ceiling will continue to rise. Crucially, VELM demonstrated an 89.8% accuracy in distinguishing between "negligible anomalies" and "critical defects," proving its utility for real-world quality control.
5. Limitations and Future Work
While VELM represents a significant step forward, it currently operates under a closed-set constraint, relying on predefined anomaly classes. Future iterations may explore "open-set" scenarios to handle novel defects. Additionally, the current one-way pipeline (Vision → LLM) could be improved with a feedback loop, allowing the MLLM to request higher-resolution crops or specific feature checks from the vision expert. Finally, transitioning from heavy models like GPT-4o to lightweight, locally-deployable MLLMs will be essential for high-speed edge computing in industrial settings.
6. Conclusion
VELM successfully integrates the precision of industrial vision models with the semantic intelligence of MLLMs. By refining existing benchmarks and introducing a gated, prompted architecture, this research provides a robust path toward automated inspection systems that do not just detect anomalies, but understand them.
Summary updated