Customizing Visual-Language Foundation Models for Multi-modal Anomaly Detection and Reasoning

Xiaohao Xu, Yunkang Cao, Huaxin Zhang, Nong Sang, Xiaonan Huang
3/17/2024
cs.CVcs.CL

Official code: Xiaohao-Xu/Customizable-VLM (30 stars, MIT, last commit 2025-05-24).

Abstract

Anomaly detection is vital in various industrial scenarios, including the identification of unusual patterns in production lines and the detection of manufacturing defects for quality control. Existing techniques tend to be specialized in individual scenarios and lack generalization capacities. In this study, our objective is to develop a generic anomaly detection model that can be applied in multiple scenarios. To achieve this, we custom-build generic visual language foundation models that possess extensive knowledge and robust reasoning abilities as anomaly detectors and reasoners. Specifically, we introduce a multi-modal prompting strategy that incorporates domain knowledge from experts as conditions to guide the models. Our approach considers diverse prompt types, including task descriptions, class context, normality rules, and reference images. In addition, we unify the input representation of multi-modality into a 2D image format, enabling multi-modal anomaly detection and reasoning. Our preliminary studies demonstrate that combining visual and language prompts as conditions for customizing the models enhances anomaly detection performance. The customized models showcase the ability to detect anomalies across different data modalities such as images, point clouds, and videos. Qualitative case studies further highlight the anomaly detection and reasoning capabilities, particularly for multi-object scenes and temporal data. Our code is publicly available at https://github.com/Xiaohao-Xu/Customizable-VLM

View on arXivView PDF

Code Implementations(1)

MIT

[CSCWD 2025, Best Student Paper] Customizing Visual-Language Foundation Models for Multi-modal Anomaly Detection and Reasoning

301PythonMar 16, 20241 years agoMIT
anomalyanomaly-detectiongemini-apigptvlm

Similar Papers

Cite this paper

@article{xu2024customizing,
  title  = {Customizing Visual-Language Foundation Models for Multi-modal Anomaly Detection and Reasoning},
  author = {Xiaohao Xu and Yunkang Cao and Huaxin Zhang and Nong Sang and Xiaonan Huang},
  year   = {2024},
  eprint = {2403.11083},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.11083v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.11083.svg)](https://codeofpaper.com/paper/2403.11083)

Discussion