TL;DR
Reason-IAD is a training-free framework that significantly boosts the ability of Multimodal Large Language Models (MLLMs) to detect and explain fine-grained industrial defects. By combining retrieval-augmented domain knowledge with iterative reasoning inside a compact latent space, it achieves state-of-the-art performance without the computational burden of fine-tuning or the inefficiency of long text-based chains of thought.
What Problem Does This Paper Address?
Industrial anomaly detection (IAD) requires identifying subtle, highly specific defects—like micro-cracks, scratches, or missing components—across diverse product categories. While Multimodal Large Language Models (MLLMs) have great generalization potential, they are mostly pretrained on general-domain data and often miss the domain-specific nuances needed for industrial inspection.
Furthermore, existing visual reasoning methods rely on explicit, verbose text-based Chains of Thought (CoT) to arrive at decisions. This text generation is computationally inefficient and lacks the precise domain knowledge required to make reliable, explainable decisions in high-reliability industrial settings.
Methods
The authors introduce Reason-IAD, a training-free framework consisting of three main innovations:
- Retrieval-Augmented Knowledge Integration (RAKI): Using a pretrained CLIP model, the framework matches a query image with category-specific defect descriptions from an external knowledge repository. This injects domain expertise directly into the initial prompt.
- Entropy-Driven Latent Reasoning (EDLR): Instead of generating long text strings to "think," Reason-IAD introduces continuous, optimizable "latent think tokens" into the model's hidden space. These tokens undergo iterative exploration via local Gaussian perturbations and are optimized using a REINFORCE-based policy gradient. The optimization is driven by an entropy-based reward that penalizes predictive uncertainty, pushing the model toward a confident and stable internal state.
- Dynamic Visual Injection: To mimic how humans revisit visual evidence when uncertain, this strategy uses the attention weights of the latent think tokens to dynamically resample and inject the most informative image patches back into the reasoning sequence at each iteration.
Datasets
The framework was extensively evaluated on the MMAD benchmark, a comprehensive suite for MLLM-based anomaly reasoning. MMAD aggregates four major industrial anomaly detection datasets:
- MVTec-AD: Structural defects across various objects and textures.
- VisA: Complex, real-world defect patterns.
- MVTec-LOCO: Logical anomalies and structural inconsistencies.
- GoodsAD: Supermarket goods with diverse brand appearances.
In total, the evaluation spanned 8,366 images, 39,672 generated questions, 38 object categories, and 244 distinct defect types across 7 subtasks (including discrimination, classification, localization, description, and analysis).
Key Insights and Ideas
- Thinking in Latent Space Beats Textual CoT: Moving the "chain of thought" from discrete text tokens to continuous latent vectors makes the reasoning process significantly more compact and efficient, avoiding verbose text generation while retaining deep reasoning capabilities.
- Uncertainty as an Optimization Signal: Using predictive entropy as a reward signal allows a training-free framework to self-correct and refine its internal representations over multiple iterations, steadily driving down ambiguity.
- Domain Knowledge Empowers Smaller Models: A key finding was that smaller, lightweight MLLMs (like Qwen3-VL-4B) benefited even more from the retrieved domain knowledge than larger models, effectively bridging the gap in their intrinsic industrial knowledge.
Key Results
- Under the one-shot setting, Reason-IAD built on Qwen3-VL-8B achieved an average accuracy of 79.43%, outperforming its base model by 4.92% and surpassing commercial giants like GPT-4o (74.92%).
- It consistently beat specialized anomaly detection models like AnomalyGPT and Anomaly-R1 (by 2.43% in average accuracy), showing stronger reasoning and fewer false positives.
- In the zero-shot setting (no reference images), Reason-IAD still provided substantial boosts, with the 8B model outperforming the massive InternVL2-76B by 7.30%.
- Remarkably, Reason-IAD surpassed standard human ordinary annotators on complex defect analysis and object classification tasks.
Limitations and Future Work
- Inference Overhead: Because the latent reasoning process is iterative (defaulting to 10 iterations), it introduces additional computational overhead compared to standard single-pass MLLM inference, reducing real-time efficiency.
- Base Model Dependency: The framework's success is partially bound to the underlying MLLM's inherent capacity to follow instructions and leverage retrieval-augmented context.
- Complex Layouts & Small Objects: Failure cases revealed that highly cluttered backgrounds and extremely fine-grained, small-scale anomalies still pose a challenge for localization and discrimination.
Future directions suggested by the authors include developing adaptive knowledge retrieval and advanced latent optimization strategies to further refine efficiency and performance.
Summary updated