LogicAD: Explainable Anomaly Detection via VLM-based Text Feature Extraction
Er Jin, Qihui Feng, Yongli Mou, Stefan Decker, Gerhard Lakemeyer, Oliver Simons, Johannes Stegmaier
TL;DR
This work tackles the challenge of detecting logical anomalies in industrial images, where non-local inconsistencies demand reasoning beyond local visual cues. It introduces LogicAD, a training-free, one-shot framework that leverages text features extracted from autoregressive vision-language models, followed by format-based scoring and a formal logic reasoner to detect and explain anomalies. Key contributions include a text-feature extraction pipeline with memory-bank-style representations, a format-embedding module for anomaly scoring, and a Prover9-based reasoning component that yields human-readable explanations and rigorous normality criteria. Empirically, LogicAD achieves state-of-the-art one-shot performance on MVTec LOCO AD (AUROC 86.0%, F1-max 83.7%) and competitive results on MVTec AD, while providing explanations that enhance interpretability and potential practical deployment in industrial QA settings.
Abstract
Logical image understanding involves interpreting and reasoning about the relationships and consistency within an image's visual content. This capability is essential in applications such as industrial inspection, where logical anomaly detection is critical for maintaining high-quality standards and minimizing costly recalls. Previous research in anomaly detection (AD) has relied on prior knowledge for designing algorithms, which often requires extensive manual annotations, significant computing power, and large amounts of data for training. Autoregressive, multimodal Vision Language Models (AVLMs) offer a promising alternative due to their exceptional performance in visual reasoning across various domains. Despite this, their application to logical AD remains unexplored. In this work, we investigate using AVLMs for logical AD and demonstrate that they are well-suited to the task. Combining AVLMs with format embedding and a logic reasoner, we achieve SOTA performance on public benchmarks, MVTec LOCO AD, with an AUROC of 86.0% and F1-max of 83.7%, along with explanations of anomalies. This significantly outperforms the existing SOTA method by a large margin.
