arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.03342cs.CV
收藏

UniVAD:一种用于少样本视觉异常检测的免训练统一模型

UniVAD: A Training-free Unified Model for Few-shot Visual Anomaly Detection

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University of Chinese Academy of Sciences(中国科学院大学);Objecteye Inc.(奥普特科技(北京)有限公司)

Zhaopeng Gu, Bingke Zhu, Guibo Zhu, Yingying Chen, Ming Tang, Jinqiao Wang

AI总结:

UniVAD提出一种免训练的统一少样本视觉异常检测方法,通过上下文组件聚类、组件感知补丁匹配和图增强组件建模,在工业、逻辑和医学等多个领域实现最先进的跨域异常检测性能。

摘要:

视觉异常检测(VAD)旨在识别图像中偏离正常模式的异常样本,涵盖工业、逻辑和医学等多个领域。由于这些领域之间存在领域差距,现有的VAD方法通常针对每个领域量身定制,采用难以跨领域泛化的专用检测技术和模型架构。此外,即使在同一领域内,当前的VAD方法也往往遵循“一类一模型”的范式,需要大量正常样本来训练特定类别的模型,导致泛化能力差,并阻碍跨领域的统一评估。为解决这一问题,我们提出了一种通用的少样本VAD方法——UniVAD,它能够通过一个免训练的统一模型检测跨多个领域的异常,例如工业、逻辑和医学异常。UniVAD在测试时仅需少量正常样本作为参考,即可检测先前未见过的物体中的异常,无需在特定领域上进行训练。具体而言,UniVAD采用基于聚类和视觉基础模型的上下文组件聚类($C^3$)模块来准确分割图像中的组件,并利用组件感知补丁匹配(CAPM)和图增强组件建模(GECM)模块在不同语义层级上检测异常,这些结果被聚合以产生最终检测结果。我们在涵盖工业、逻辑和医学领域的九个数据集上进行了实验,结果表明UniVAD在多个领域的少样本异常检测任务中取得了最先进的性能,超越了领域专用的异常检测模型。代码可在 https://github.com/FantasticGNU/UniVAD 获取。

英文摘要:

Visual Anomaly Detection (VAD) aims to identify abnormal samples in images that deviate from normal patterns, covering multiple domains, including industrial, logical, and medical fields. Due to the domain gaps between these fields, existing VAD methods are typically tailored to each domain, with specialized detection techniques and model architectures that are difficult to generalize across different domains. Moreover, even within the same domain, current VAD approaches often follow a "one-category-one-model" paradigm, requiring large amounts of normal samples to train class-specific models, resulting in poor generalizability and hindering unified evaluation across domains. To address this issue, we propose a generalized few-shot VAD method, UniVAD, capable of detecting anomalies across various domains, such as industrial, logical, and medical anomalies, with a training-free unified model. UniVAD only needs few normal samples as references during testing to detect anomalies in previously unseen objects, without training on the specific domain. Specifically, UniVAD employs a Contextual Component Clustering ($C^3$) module based on clustering and vision foundation models to segment components within the image accurately, and leverages Component-Aware Patch Matching (CAPM) and Graph-Enhanced Component Modeling (GECM) modules to detect anomalies at different semantic levels, which are aggregated to produce the final detection result. We conduct experiments on nine datasets spanning industrial, logical, and medical fields, and the results demonstrate that UniVAD achieves state-of-the-art performance in few-shot anomaly detection tasks across multiple domains, outperforming domain-specific anomaly detection models. Code is available at https://github.com/FantasticGNU/UniVAD.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑