arXiv:2508.21795cs.CVcs.AI2025-08被引 1

用文本记忆库提升模型发现逻辑异常的能力

TMUAD: Enhancing Logical Capabilities in Unified Anomaly Detection Models with a Text Memory Bank

  • 构建三重记忆库:文本、物体、图像块,分别捕捉逻辑、形态和结构异常
  • 在7个工业与医疗数据集上达到当前最优性能,显著提升逻辑异常检测效果
  • 适合需要同时识别结构与逻辑异常的高精度场景,如工业质检与医学影像分析

异常检测旨在识别偏离正常模式的异常样本,但因正常数据有限而面临挑战。现有统一方法多依赖精心设计的图像特征提取器和记忆库来捕捉对象间的逻辑关系,我们提出一种基于文本记忆库的新方法。本文设计了三重记忆框架(TMUAD):首先,通过逻辑感知文本提取器构建类别级文本记忆库,从输入图像中提取丰富的对象逻辑描述;其次,基于分割后的物体提取完整轮廓,构建物体级图像记忆库;第三,利用视觉编码器提取图像块级特征,建立用于结构异常检测的块级记忆库。三个互补记忆库协同检索与查询图像最相似的正常样本,分层级计算异常得分并融合为最终分数。通过联合结构与逻辑异常检测,TMUAD在七个公开数据集(涵盖工业与医疗领域)上均达到当前最优表现。模型与代码已开源于https://github.com/SIA-IDE/TMUAD。

原文摘要 · Abstract (English)

Anomaly detection, which aims to identify anomalies deviating from normal patterns, is challenging due to the limited amount of normal data available. Unlike most existing unified methods that rely on carefully designed image feature extractors and memory banks to capture logical relationships between objects, we introduce a text memory bank to enhance the detection of logical anomalies. Specifically, we propose a Three-Memory framework for Unified structural and logical Anomaly Detection (TMUAD). First, we build a class-level text memory bank for logical anomaly detection by the proposed logic-aware text extractor, which can capture rich logical descriptions of objects from input images. Second, we construct an object-level image memory bank that preserves complete object contours by extracting features from segmented objects. Third, we employ visual encoders to extract patch-level image features for constructing a patch-level memory bank for structural anomaly detection. These three complementary memory banks are used to retrieve and compare normal images that are most similar to the query image, compute anomaly scores at multiple levels, and fuse them into a final anomaly score. By unifying structural and logical anomaly detection through collaborative memory banks, TMUAD achieves state-of-the-art performance across seven publicly available datasets involving industrial and medical domains. The model and code are available at https://github.com/SIA-IDE/TMUAD.

异常检测逻辑异常记忆库多模态

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