[论文解读] Exploiting Diffusion Prior for Out-of-Distribution Detection
本文提出了一种新颖的分布外(OOD)检测方法,该方法利用扩散模型的生成先验和CLIP的零样本特征表示。通过使用CLIP嵌入特征作为条件输入,利用扩散模型重建图像,基于重建误差识别OOD样本——在无需标注OOD数据或特定类别微调的情况下,实现了最先进性能。
Out-of-distribution (OOD) detection is crucial for deploying robust machine learning models, especially in areas where security is critical. However, traditional OOD detection methods often fail to capture complex data distributions from large scale date. In this paper, we present a novel approach for OOD detection that leverages the generative ability of diffusion models and the powerful feature extraction capabilities of CLIP. By using these features as conditional inputs to a diffusion model, we can reconstruct the images after encoding them with CLIP. The difference between the original and reconstructed images is used as a signal for OOD identification. The practicality and scalability of our method is increased by the fact that it does not require class-specific labeled ID data, as is the case with many other methods. Extensive experiments on several benchmark datasets demonstrates the robustness and effectiveness of our method, which have significantly improved the detection accuracy.
研究动机与目标
- 为解决自动驾驶和医疗等安全关键应用中检测分布外(OOD)样本的挑战。
- 克服传统OOD检测方法在大规模数据集复杂数据分布建模方面的局限性。
- 开发一种可扩展的零样本OOD检测框架,无需标注OOD数据或特定类别模型微调。
- 利用扩散模型的生成先验和CLIP的丰富特征表示,提升基于重建的异常检测性能。
提出的方法
- 该方法使用CLIP将输入图像编码为文本条件化的视觉特征,作为条件输入提供给扩散模型。
- 扩散模型利用CLIP特征作为引导,通过去噪学习重建输入图像,从而学习分布内数据流形。
- 计算原始图像与生成图像之间的重建误差,作为OOD检测的得分——误差越高,越可能为OOD样本。
- 该方法利用CLIP的零样本分类能力分配类别标签,无需微调,从而可部署于未见类别。
- 该方法仅在分布内数据上进行训练,训练过程中无需标注OOD样本。
- 该框架具有可扩展性和实用性,无需每类适应或额外的OOD标注。
实验结果
研究问题
- RQ1以CLIP特征为条件的扩散模型生成先验,能否有效重建分布内图像,同时在OOD样本上失败?
- RQ2在无标注OOD数据的情况下,CLIP条件化扩散模型的重建误差在多大程度上可作为可靠的OOD检测信号?
- RQ3在多种基准测试中,该方法与最先进OOD检测技术相比,在准确率和鲁棒性方面表现如何?
- RQ4CLIP的零样本分类能力能否与基于扩散的重建有效结合,实现可扩展的OOD检测?
主要发现
- 所提方法在多个基准数据集上实现了最先进性能,相比现有方法显著提升了OOD检测准确率。
- 该方法在多种数据分布(包括ImageNet、CIFAR-10和iNaturalist)中表现出强鲁棒性,且训练过程中无需OOD数据。
- 重建误差与OOD可能性始终呈正相关,分布内样本的误差显著低于OOD样本。
- 即使在零样本设置下(无类别特定微调),该方法仍保持高性能。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。