arXiv:2511.06644cs.CV2025-11

统一检测与分类异常,仅用少量样本就能精准定位并识别异常类型。

UniADC: A Unified Framework for Anomaly Detection and Classification

  • 通过可控修复网络生成特定类别的异常图像,增强稀缺异常数据。
  • 在四个数据集上实现最优检测、定位与分类性能,尤其在少样本场景下优势明显。
  • 适合需要少样本或无样本训练的工业缺陷检测等实际应用。

本文提出一种新型任务:统一异常检测与分类,旨在同时定位图像中的异常区域并识别其具体类别。现有方法通常将两项任务分离处理,忽略其内在关联,导致信息共享受限,性能不佳。为此,我们提出UniADC模型,可在仅有少量甚至无异常图像的情况下有效完成两项任务。该模型包含两个核心组件:无需训练的可控修复网络和隐式正常判别器。修复网络可利用异常先验知识重绘正常区域,生成特定类别的异常图像,并对少样本异常样本进行增强;隐式正常判别器通过隐式建模正常状态,缓解正常与异常像素分布严重失衡的问题,通过将细粒度图像特征与异常类别嵌入对齐,实现精确检测与分类。我们在MVTec-FS、MTD、WFDD和Real-IAD四个数据集上进行了大量实验,结果表明,UniADC在异常检测、定位与分类方面均显著优于现有方法。代码已公开于https://github.com/cnulab/UniADC。

原文摘要 · Abstract (English)

In this paper, we introduce a novel task termed unified anomaly detection and classification, which aims to simultaneously detect anomalous regions in images and identify their specific categories. Existing methods typically treat anomaly detection and classification as separate tasks, thereby neglecting their inherent correlations and limiting information sharing, which results in suboptimal performance. To address this, we propose UniADC, a model designed to effectively perform both tasks with only a few or even no anomaly images. Specifically, UniADC consists of two key components: a training-free Controllable Inpainting Network and an Implicit-Normal Discriminator. The inpainting network can synthesize anomaly images of specific categories by repainting normal regions guided by anomaly priors, and can also repaint few-shot anomaly samples to augment the available anomaly data. The implicit-normal discriminator addresses the severe challenge of the imbalance between normal and anomalous pixel distributions by implicitly modeling the normal state, achieving precise anomaly detection and classification by aligning fine-grained image features with anomaly-category embeddings. We conduct extensive experiments on four anomaly detection and classification datasets, including MVTec-FS, MTD, WFDD and Real-IAD, and the results demonstrate that UniADC consistently outperforms existing methods in anomaly detection, localization, and classification. The code is available at https://github.com/cnulab/UniADC.

异常检测少样本学习图像修复统一框架

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。