[Paper Review] GPT-4V-AD: Exploring Grounding Potential of VQA-oriented GPT-4V for Zero-shot Anomaly Detection
This paper proposes GPT-4V-AD, a zero-shot anomaly detection framework leveraging GPT-4V's visual question answering (VQA) capabilities through granular region division, prompt engineering, and text-to-segmentation. It achieves state-of-the-art performance on VisA (88.0 AU-ROC) and strong results on MVTec AD, demonstrating GPT-4V's potential for visual grounding in anomaly detection despite limitations in pixel-level precision.
Large Multimodal Model (LMM) GPT-4V(ision) endows GPT-4 with visual grounding capabilities, making it possible to handle certain tasks through the Visual Question Answering (VQA) paradigm. This paper explores the potential of VQA-oriented GPT-4V in the recently popular visual Anomaly Detection (AD) and is the first to conduct qualitative and quantitative evaluations on the popular MVTec AD and VisA datasets. Considering that this task requires both image-/pixel-level evaluations, the proposed GPT-4V-AD framework contains three components: extbf{ extit{1)}} Granular Region Division, extbf{ extit{2)}} Prompt Designing, extbf{ extit{3)}} Text2Segmentation for easy quantitative evaluation, and have made some different attempts for comparative analysis. The results show that GPT-4V can achieve certain results in the zero-shot AD task through a VQA paradigm, such as achieving image-level 77.1/88.0 and pixel-level 68.0/76.6 AU-ROCs on MVTec AD and VisA datasets, respectively. However, its performance still has a certain gap compared to the state-of-the-art zero-shot method, \eg, WinCLIP and CLIP-AD, and further researches are needed. This study provides a baseline reference for the research of VQA-oriented LMM in the zero-shot AD task, and we also post several possible future works. Code is available at \url{https://github.com/zhangzjn/GPT-4V-AD}.
Motivation & Objective
- To investigate the feasibility of using VQA-oriented large multimodal models like GPT-4V for zero-shot anomaly detection.
- To address the challenge of pixel-level grounding in anomaly detection using a general-purpose vision-language model.
- To establish a baseline for VQA-based LMMs in zero-shot AD through quantitative and qualitative evaluation.
- To explore the limitations of GPT-4V in handling fine-grained anomaly localization and reproducibility.
Proposed method
- Granular Region Division segments input images into semantically or structurally coherent regions using grid sampling, semantic segmentation (SAM), or super-pixel methods.
- Prompt Designing formulates task-specific VQA prompts that guide GPT-4V to identify anomalies within each region.
- Text2Segmentation reconstructs pixel-level anomaly masks by aggregating GPT-4V’s region-wise outputs using region boundaries.
- The framework enables both image-level and pixel-level evaluation via AU-ROC metrics on standard benchmarks.
- Ablation studies compare region division strategies to assess their impact on detection accuracy.
- Reproducibility and stability are evaluated through repeated inference with identical inputs.
Experimental results
Research questions
- RQ1Can a VQA-oriented large multimodal model like GPT-4V achieve effective zero-shot anomaly detection without fine-tuning or anomaly-specific prompts?
- RQ2How does the choice of region division strategy (grid, SAM, super-pixel) affect the quality of anomaly localization?
- RQ3To what extent can GPT-4V generalize to unseen defect types in zero-shot settings on MVTec AD and VisA?
- RQ4Why does GPT-4V fail to utilize additional normal reference images in few-shot settings despite their potential to improve performance?
- RQ5How stable and consistent are GPT-4V’s outputs across repeated inferences for the same input?
Key findings
- GPT-4V-AD achieves 77.1 AU-ROC on MVTec AD and 88.0 AU-ROC on VisA at the image level, outperforming state-of-the-art methods like CLIP-AD on VisA by +6.8 AU-ROC.
- Pixel-level performance reaches 68.0 AU-ROC on MVTec AD and 76.6 AU-ROC on VisA, demonstrating GPT-4V’s grounding capability despite limitations.
- Super-pixel-based region division yields better segmentation results than grid or SAM in most cases, especially for small or structurally subtle defects.
- GPT-4V fails to effectively utilize additional normal reference images, often producing inconsistent or incorrect outputs.
- The model exhibits low output stability, with slight variations in region count and confidence scores across repeated runs with identical inputs.
- Qualitative results show that GPT-4V can localize anomalies close to ground truth, indicating strong visual-linguistic grounding, but struggles with fine-grained or low-contrast defects.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.