统一检测图像逻辑与结构异常,提升小瑕疵识别能力
LogiCo: A Unified Framework for Logical and Structural Anomaly Detection

- 通过组件级特征重建捕捉跨组件逻辑关系
- 在四个数据集上达到当前最佳效果,尤其擅长细粒度异常
- 适合需要同时识别语义错误和细微缺陷的工业质检场景
现有异常检测方法多关注结构异常,忽视违反逻辑约束的异常;而现有的逻辑异常检测方法虽能建模全局语义一致性,却因检测粒度不足,在微小结构异常上表现不佳。本文提出LogiCo框架,通过组件级特征重建实现逻辑与结构异常的统一检测。该方法将预训练图像特征映射至离散的组件级特征空间,分别在组件与图像块层级进行协同特征重建,从而有效捕捉组件间的逻辑约束。此外,为解决数量相关的逻辑异常问题,引入分割图判别器以增强模型对数量不一致的识别能力。LogiCo在MVTec-LOCO、MVTec-AD、VisA和Real-IAD四个基准上均取得领先性能,验证了其优越性与实用性。代码已开源。
原文摘要 · Abstract (English)
Current anomaly detection methods primarily focus on structural anomalies, while paying insufficient attention to anomalies that violate logical constraints. Conversely, top-performing logical anomaly detection approaches address this by modeling global semantic consistency, but perform poorly on subtle structural anomalies due to inadequate detection granularity. In this paper, we propose LogiCo, a unified framework for Logical and structural anomaly detection via Component-level feature reconstruction. Unlike existing methods that rely on explicit global semantic modeling, LogiCo employs a novel component-level feature reconstruction technique to capture inter-component logical constraints. Specifically, LogiCo maps pre-trained image features into a discrete component-level feature space and performs collaborative feature reconstruction at both component and patch levels, enabling it to effectively detect both logical and structural anomalies. Furthermore, to address the specific challenge of count-related logical anomalies, we integrate a segmentation-map discriminator that extends the model's capability to identify quantitative inconsistencies. LogiCo achieves state-of-the-art performance on both logical and structural anomaly detection across four benchmarks, including MVTec-LOCO, MVTec-AD, VisA, and Real-IAD, demonstrating its superiority and practical feasibility. The code is available at https://github.com/cnulab/LogiCo.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。