Towards Explainable Industrial Anomaly Detection via Knowledge-Guided Latent Reasoning
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: We're looking at the paper: "Towards Explainable Industrial Anomaly Detection via Knowledge-Guided Latent Reasoning".
Jane: Here's the gist of the paper. The gist The proposed Reason-IAD framework is a knowledge-guided dynamic latent reasoning framework for explainable industrial anomaly detection.
Tom: How it works Reason-IAD comprises two core components: first, a retrieval-augmented knowledge module that incorporates category-specific textual descriptions into the model input, enabling context-aware reasoning over domain-specific defects and second, an entropy-driven latent reasoning mechanism that conducts iterative exploration within a compact latent space using optimizable latent think tokens guided by an entropy-based reward that encourages confident and stable predictions.
Jane: Furthermore, a dynamic visual injection strategy selectively incorporates the most informative image patches into the latent sequence, directing the reasoning process toward regions critical for anomaly detection.
Tom: Retrieval-Augmented Knowledge Integration This module addresses the limitation of models pretrained on general-domain data by incorporating category-specific knowledge to enrich the model input prompt.
Paper summary: Jane: So we just covered how Reason-IAD works in detail—the two core components, the retrieval module, and that dynamic latent reasoning mechanism. Now let’s just go back to the high level of what this paper is trying to achieve. It claims that existing multimodal large language models often fail when it comes to catching specific defects because they are trained on general data.
Tom: Right, so the thesis is that we need something that can capture category-specific anomalies better, and Reason-IAD proposes a framework specifically designed for explainable industrial anomaly detection to address that gap.
Lu: The paper sets out this goal by proposing Reason-IAD as a knowledge-guided dynamic latent reasoning framework. It claims this structure is better because it adds context through retrieval and uses iterative exploration guided by an entropy reward to make the reasoning process more stable and interpretable.
Meng: So, in plain terms, they’re saying that instead of just asking the model "Is there a defect?", we give it specific technical knowledge about what a defect looks like, and then we make it think about the image piece by piece in a way that keeps its guesses consistent.
Lalam: That’s right. The core claim is that by incorporating category-specific textual descriptions and using this entropy-driven latent reasoning, they enable context-aware reasoning over domain-specific defects which was previously lacking in models pretrained on general data, according to the paper.
Jane: So what does this mean for the real world? It means we can start building industrial systems that are more capable of finding those tricky, specific anomalies that used to slip through simpler detection methods because they just didn't have the right context.
Conclusion: Tom: So, to wrap up this discussion on "Towards Explainable Industrial Anomaly Detection via Knowledge-Guided Latent Reasoning," we've seen that the authors are trying to build a system that leverages external knowledge to guide the AI’s internal, step-by-step thinking process.
Jane: And what it boils down to for us is that this isn't just about getting higher accuracy numbers on a test set; it’s about creating systems where the AI can actually show its work in a way that makes sense for human experts who need to trust the output.
Lu: The implication is that future industrial anomaly detection could move toward methods that are less reliant on massive amounts of perfectly labeled defect data for every single scenario by using this retrieval-augmented knowledge approach.
Meng: For production, it suggests we need models that can reason with domain knowledge, not just raw pixels; otherwise, the system will break down when things get complex or unexpected.
Lalam: So the paper is pointing toward a future where industrial AI isn't just guessing at anomalies but is actively using specific context to perform more reliable and explainable detection tasks.
Peng Chen, Chao Huang, Yunkang Cao, Chengliang Liu, Wei Wang, Wenqiang Wang, Mingbo Yang, Li Shen
School of Cyber Science and Technology, Sun Yat-sen University School of Artificial Intelligence and Robotics Hunan University Department of Computer and Information Science University of Macau
cs.CV
Submitted: 2026-02-10
Updated: 2026-10-21
Code: https://github.com/chenpeng052/Reason-IAD
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 77/100
The gist: The gist The proposed Reason-IAD framework is a knowledge-guided dynamic latent reasoning framework for explainable industrial anomaly detection.
Key concepts
- Retrieval-Augmented Knowledge Module
- This component enriches the model's input by retrieving category-specific textual descriptions related to the image. It aligns visual embeddings with textual knowledge about normal patterns and defects, providing context-aware guidance so the model reasons specifically about domain-relevant anomalies.
- Entropy-Driven Latent Reasoning
- This mechanism iteratively explores a compact latent space using optimizable 'think tokens' and a reward based on entropy. The goal is to encourage stable and confident predictions by rewarding the model when it successfully reduces uncertainty during its reasoning steps, leading to more reliable anomaly localization.
- Dynamic Visual Injection
- This strategy selectively adds the most informative image patches into the latent sequence based on attention weights. It directs the reasoning process toward visually critical regions for defect detection, ensuring that the model focuses its exploration on areas most relevant to identifying an anomaly.
Terminology
Summary
The gist The proposed Reason-IAD framework is a knowledge-guided dynamic latent reasoning framework for explainable industrial anomaly detection.
How it works
Reason-IAD comprises two core components: first, a retrieval-augmented knowledge module that incorporates category-specific textual descriptions into the model input, enabling context-aware reasoning over domain-specific defects and second, an entropy-driven latent reasoning mechanism that conducts iterative exploration within a compact latent space using optimizable latent think tokens guided by an entropy-based reward that encourages confident and stable predictions. Furthermore, a dynamic visual injection strategy selectively incorporates the most informative image patches into the latent sequence, directing the reasoning process toward regions critical for anomaly detection.
Retrieval-Augmented Knowledge Integration
This module addresses the limitation of models pretrained on general-domain data by incorporating category-specific knowledge to enrich the model input prompt. Specifically, it constructs a category-oriented knowledge repository K = (ci, desci) where desci provides a detailed textual description of the category, encompassing both normal characteristics and defect patterns. The process involves encoding the query image into a visual embedding v and each category label ci into a textual embedding ki, projecting both modalities into a shared semantic space. Semantic alignment is then evaluated by computing the cosine similarity si between the query image and each category label. The top-k categories with the highest scores are retrieved, and their descriptions are incorporated into an enriched contextual representation to provide category-aware guidance for reasoning.
Entropy-Driven Latent Reasoning
The entropy-driven latent reasoning mechanism performs iterative exploration in a compact latent space using optimizable latent think tokens. To facilitate dynamic exploration, a set of latent think tokens Z = (z1, z2,..., zm) are introduced as optimizable vector embeddings and inserted into the original multimodal input sequence. During each iteration n, controlled stochasticity is incorporated by defining the perturbed state as Z'(n) = Z(n) + ξ(n), where ξ(n) ∼ N (0, σ2 I), to encourage diverse latent trajectories.
Entropy-Guided Reward Optimization
The objective is to identify and localize anomalous regions given a query image along with its corresponding textual prompt. The model generates a latent reasoning sequence G = (g1,..., gN) through an autoregressive factorization πθ(GQ, I) = Y N n=1 πθ(gnG<n, Q, I), to support anomaly detection. To regulate uncertainty, an entropy-guided reward mechanism leverages predictive uncertainty by computing the entropy of its probability distribution as H(P(n)i) = −X C j=1 P(n)i(j) log P(n)i(j), where P(n)i denotes the predicted probability distribution over answers by the i-th latent think token at iteration n. The global reward at iteration n is defined as R(Z'(n)) = 1 − (1/m) Xm i=1 H(P(n)i), where higher reward values incentivize the model to reduce uncertainty in its latent reasoning process. This optimization is performed using a REINFORCE-based policy gradient method, updating the latent tokens according to Z'(n) ← Z(n) + η∇Z(n)J(Z(n)), where J(·) denotes the expected reward objective.
Dynamic Visual Injection
Inspired by human cognition, this mechanism selectively incorporates the most informative image patches into the latent sequence alongside the latent think tokens. This is achieved by leveraging the attention weights of the latent think tokens to identify t highly relevant image patches, which are then resampled according to an attention distribution and injected into the latent sequence. The optimal patch set Vbest is updated based on a reward signal R(n) = 1 − (1/m) Xm i=1 H(P(n)i), where Vbest = Vcand, if R > Rbest, otherwise.
Experimental Results and Analysis
Extensive experiments demonstrate that Reason-IAD consistently outperforms existing methods across multiple tasks. On Qwen3-VL-8B, it achieves an average 79.73% accuracy in the one-shot setting, improving 4.92% over the base model and even surpassing the commercial model GPT-4O (74.92%). The ablation study shows that incorporating knowledge guidance consistently improves detection accuracy across all datasets, with accuracy increasing from 85.75% to 88.49% on MVTec when RAKI is included. Qualitative analysis shows that Reason-IAD generates the correct prediction while accurately identifying the key visual evidence of industrial defects.
Conclusion and Limitations
Reason-IAD provides a promising paradigm for training-free, expert-level anomaly detection by integrating a retrieval-augmented knowledge module, an entropy-driven latent reasoning mechanism, and a dynamic visual injection strategy. However, limitations exist; first, the inference efficiency of Reason-IAD is lower compared to single-pass MLLM-based methods due to the multi-step latent reasoning process. Second, performance is partially dependent on the capability of the underlying MLLM to follow retrieval-augmented knowledge and reasoning instructions.
Open Access and Ethics
The paper provides open access to the data and code, with sufficient instructions to reproduce the main experimental results. The work conforms to the NeurIPS Code of Ethics throughout our research process, including data usage, experimental design, and reporting. The paper discusses potential broader impacts of the proposed method on industrial anomaly detection systems and automation processes.
LLM Usage Declaration
The paper utilizes a large language model as part of the reasoning component in the proposed framework, and its usage is clearly described in the method section. The LLM is used only for inference-time module to assist in reasoning for anomaly detection, not for training.
References
[1] Xi Jiang, Jian Li, Hanqiu Deng, Yong Liu, Bin-Bin Gao, Yifeng Zhou, Jialin Li, Chengjie Wang, and Feng Zheng. Mmad: A comprehensive benchmark for multimodal large language models in industrial anomaly detection. arXiv preprint arXiv:2410.09453, 2024
[17] Huajie Tan, Yuheng Ji, Xiaoshuai Hao, Xiansheng Chen, Pengwei Wang, Zhongyuan Wang, and Shanghang Zhang. Reason-rft: Reinforcement fine-tuning for visual reasoning of vision language models. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025
[18] Yuhao Chao, Jie Liu, Jie Tang, and Gangshan Wu. Anomalyr1: A grpo-based end-to-end mllm for industrial anomaly detection. arXiv preprint arXiv:2504.11914, 2025
[37] Peng Chen, Chao Huang, Yunkang Cao, Chengliang Liu, Wenqiang Wang, Mingbo Yang, Li Shen, Wenqi Ren, and Xiaochun Cao. Reason-iad: Knowledge-guided dynamic latent reasoning for explainable industrial anomaly detection. arXiv preprint arXiv:2602.09850
[43] Shibo Hao, Sainbayar Sukhbaatar, DiJia Su, Xian Li, Zhiting Hu, Jason Weston, and Yuandong Tian. Training large language models to reason in a continuous latent space. arXiv preprint arXiv:2412.06769, 2024 <ref:2602.
Improvements for AI systems
-
Knowledge-guided retrieval for domain specificity can be extended to handle highly specialized industrial sub-domains by dynamically querying a larger, hierarchical knowledge base instead of just top-k category descriptions. This would enable the system to reason over extremely fine-grained defects that are not well represented in the initial category repository.
-
Entropy-driven latent reasoning can be adapted to incorporate uncertainty estimates from multiple independent model runs, allowing the reward mechanism to penalize predictions based on high epistemic uncertainty across different latent trajectories, leading to more robust decision boundaries.
-
Dynamic visual injection could be enhanced by using a learned attention mechanism over the entire latent sequence instead of just sampling candidate patches based on current token attention weights, allowing for a more holistic integration of relevant visual evidence into the reasoning process.
Sources
- MMAD: A Comprehensive Benchmark for Multimodal Large Language Models in Industrial Anomaly Detection
- AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detection
- IAD-R1: Reinforcing Consistent Reasoning in Industrial Anomaly Detection
- AnomalyR1: A GRPO-based End-to-end MLLM for Industrial Anomaly Detection
- AD-FM: Multimodal LLMs for Anomaly Detection via Multi-Stage Reasoning and Fine-Grained Reward Optimization
- Latent Chain-of-Thought for Visual Reasoning
- Latent Visual Reasoning
- VL-Rethinker: Incentivizing Self-Reflection of Vision-Language Models with Reinforcement Learning
- Sherlock: Self-Correcting Reasoning in Vision-Language Models
- SRPO: Enhancing Multimodal LLM Reasoning via Reflection-Aware Reinforcement Learning
- Think Silently, Think Fast: Dynamic Latent Compression of LLM Reasoning Chains
- Seek in the Dark: Reasoning via Test-Time Instance-Level Policy Gradient in Latent Space
- Reasoning Beyond Language: A Comprehensive Survey on Latent Chain-of-Thought Reasoning
- Reasoning to Learn from Latent Thoughts
- Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach
- Training Large Language Models to Reason in a Continuous Latent Space
- Machine Mental Imagery: Empower Multimodal Reasoning with Latent Visual Tokens
- ThinkAct: Vision-Language-Action Reasoning via Reinforced Visual Latent Planning
- Soft Thinking: Unlocking the Reasoning Potential of LLMs in Continuous Concept Space
- Reasoning Within the Mind: Dynamic Multimodal Interleaving in Latent Space
Related papers
- Loss Knows Best: Detecting Annotation Errors in Videos via Loss Trajectories
- AnchorWeave: World-Consistent Video Generation with Retrieved Local Spatial Memories
- Benchmarking the Robustness of Foundation Models for Mammography under Domain Shift
- MambaX-Net: Dual-Input Mamba-Enhanced Cross-Attention Network for Longitudinal MRI Segmentation
- TeleOCR: Navigating Document Parsing Across Digital and Camera-Captured Documents
- A Survey on Efficient Vision-Language-Action Models