arXiv:2504.05662cs.CV2025-04中稿 · CVPR被引 3

用反演方法绕过重建,提升扩散模型异常检测效率与精度

InvAD: Inversion-based Reconstruction-Free Anomaly Detection with Diffusion Models

  • 通过隐空间反演直接推断输入图像的潜在变量,无需重建
  • 在四个工业和医疗数据集上达到顶尖性能,推理速度提升约2倍
  • 适合追求高效高精度异常检测的工业与医学应用

尽管扩散模型在异常检测中表现优异,但现有基于重建的方法仍需精细调整噪声强度,并进行计算成本高昂的多步去噪,导致保真度与效率之间的根本矛盾。本文提出InvAD,一种基于反演的重建无关异常检测方法(‘通过潜在空间加噪实现检测’),避免了显式重建。我们认为,先前方法的局限源于‘在RGB空间通过去噪实现检测’的主流范式。为此,我们采用无重建的建模方式,通过DDIM反演直接推断输入图像对应的最终潜在变量,再基于已知先验分布衡量偏差以生成异常分数。具体而言,在近似原始概率流ODE时,仅使用少量反演步骤对清晰图像加噪,以提升推理效率。由于添加的噪声由学习到的扩散模型自适应生成,原始测试图像的特征仍可有效利用,从而保持高检测精度。我们在四个广泛使用的工业和医学异常检测基准上进行了大量实验与详细分析,在无监督统一设置下验证了模型的有效性,达到当前最优性能,且无需扩散蒸馏即可实现约2倍的推理速度提升。

原文摘要 · Abstract (English)

Despite the remarkable success, recent reconstruction-based anomaly detection (AD) methods via diffusion modeling still involve fine-grained noise-strength tuning and computationally expensive multi-step denoising, leading to a fundamental tension between fidelity and efficiency. In this paper, we propose InvAD, a novel inversion-based anomaly detection approach ("detection via noising in latent space") that circumvents explicit reconstruction. Importantly, we contend that the limitations in prior reconstruction-based methods originate from the prevailing "detection via denoising in RGB space" paradigm. To address this, we model AD under a reconstruction-free formulation, which directly infers the final latent variable corresponding to the input image via DDIM inversion, and then measures the deviation based on the known prior distribution for anomaly scoring. Specifically, in approximating the original probability flow ODE using the Euler method, we enforce only a few inversion steps to noise the clean image to pursue inference efficiency. As the added noise is adaptively derived with the learned diffusion model, the original features for the clean testing image can still be leveraged to yield high detection accuracy. We perform extensive experiments and detailed analyses across four widely used industrial and medical AD benchmarks under the unsupervised unified setting to demonstrate the effectiveness of our model, achieving state-of-the-art AD performance and approximately 2x inference-time speedup without diffusion distillation.

异常检测扩散模型反演效率提升

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