Think-to-Detect: Rationale-Driven Vision–Language Anomaly Detection
Large vision–language models (VLMs) can describe images fluently, yet their anomaly decisions often rely on opaque heuristics and manual thresholds. We present ThinkAnomaly, a rationale-first vision–language framework for industrial anomaly detection. The model generates a concise structured rationale and then issues a calibrated yes/no decision, eliminating per-class thresholds. To supervise reasoning, we construct chain-of-thought annotations for MVTec-AD and VisA via synthesis, automatic filtering, and human validation. We fine-tune Llama-3.2-Vision with a two-stage objective and a rationale–label consistency loss, yielding state-of-the-art classification accuracy while maintaining a competitive detection AUC: MVTec-AD—93.9% accuracy and 93.8 Image-AUC; VisA—90.3% accuracy and 85.0 Image-AUC. This improves classification accuracy over AnomalyGPT by +7.8 (MVTec-AD) and +12.9 (VisA) percentage points. The explicit reasoning and calibrated decisions make ThinkAnomaly transparent and deployment-ready for industrial inspection.
Authors
- Hyun‐Soo Kang (ORCID: https://orcid.org/0000-0002-4333-2852)
- Abdelrahman Abdallah (ORCID: https://orcid.org/0000-0001-8747-4927)
- Mahmoud SalahEldin Kasem (ORCID: https://orcid.org/0000-0002-8513-570X)
- Mohamed Mahmoud (ORCID: https://orcid.org/0000-0001-6764-8969)
- Mostafa Farouk Senussi (ORCID: https://orcid.org/0009-0000-5890-0923)
- Mahmoud Abdalla (ORCID: https://orcid.org/0000-0002-4270-2268)
Institutions
- Chungbuk National University (KR)
- Universität Innsbruck (AT)
- Assiut University (EG)
Publication Details
- Journal
- Mathematics
- Published
- 2025-12-08
- DOI
- https://doi.org/10.3390/math13243920
- Primary Topic
- Anomaly Detection Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00