Towards Zero-Shot Anomaly Detection and Reasoning with Multimodal Large Language Models
Jiacong Xu, Shao-Yuan Lo, Bardia Safaei, Vishal M. Patel, Isht Dwivedi
TL;DR
This work tackles zero-shot anomaly detection with multimodal large language models by first establishing Anomaly-Instruct-125k and VisA-D&R to support instruction tuning and evaluation for visual anomaly reasoning. It introduces Anomaly-OneVision, a specialist visual assistant built on a base MLLM (LLaVA-OneVision) and guided by a dedicated anomaly expert, employing Look-Twice Feature Matching and a Visual Token Selector to focus on suspicious visual tokens. The two-stage training, plus a large-scale WebAD data collection, enables robust zero-shot detection and detailed anomaly reasoning across industrial, 3D, and medical domains, with significant improvements over existing generalist MLLMs. The work provides a practical path toward interpretable, reliable visual inspection systems and lays groundwork for unified AD and reasoning in diverse domains, with extensions to 3D and medical data outlined for future study.
Abstract
Zero-Shot Anomaly Detection (ZSAD) is an emerging AD paradigm. Unlike the traditional unsupervised AD setting that requires a large number of normal samples to train a model, ZSAD is more practical for handling data-restricted real-world scenarios. Recently, Multimodal Large Language Models (MLLMs) have shown revolutionary reasoning capabilities in various vision tasks. However, the reasoning of image abnormalities remains underexplored due to the lack of corresponding datasets and benchmarks. To facilitate research in AD & reasoning, we establish the first visual instruction tuning dataset, Anomaly-Instruct-125k, and the evaluation benchmark, VisA-D&R. Through investigation with our benchmark, we reveal that current MLLMs like GPT-4o cannot accurately detect and describe fine-grained anomalous details in images. To address this, we propose Anomaly-OneVision (Anomaly-OV), the first specialist visual assistant for ZSAD and reasoning. Inspired by human behavior in visual inspection, Anomaly-OV leverages a Look-Twice Feature Matching (LTFM) mechanism to adaptively select and emphasize abnormal visual tokens. Extensive experiments demonstrate that Anomaly-OV achieves significant improvements over advanced generalist models in both detection and reasoning. Extensions to medical and 3D AD are provided for future study. The link to our project page: https://xujiacong.github.io/Anomaly-OV/
