arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.10094cs.CVcs.LG
收藏

超越感知距离:基于扩散模型的分布外检测深度表示差异评估

Beyond Perceptual Distance: Discrepancy Assessment on Deep Representation for Out-of-Distribution Detection with Diffusion Model

Department of Automation, Shanghai Jiao Tong University(上海交通大学自动化系);Department of Electrical and Electronic Engineering, The Hong Kong Polytechnic University(香港理工大学电子与电气工程系);The Intsig Information Co., Ltd., Shanghai, China(上海Intsig信息有限公司);School of Automation, Beijing Institute of Technology(北京理工大学自动化学院)

Kun Fang, Zuopeng Yang, Haibo Hu, Xiaolin Huang, Jie Yang, Qinghua Tao

AI总结:

研究基于扩散模型的分布外检测差异评估,提出以分类器相关方式评估,利用其表示空间量化特征级和logit级差异,设计优化策略构成DDR框架,实验表明DDR在ImageNet-1K数据集上检测性能优于其他方法。

摘要:

分布外(OoD)检测旨在判断给定样本是来自受保护分类器的训练分布,即分布内(InD),还是来自未知的分布外。近期研究利用扩散模型(DMs)进行OoD检测,因其强大的分布建模能力。给定输入图像,预训练的DM会生成对应的InD对齐图像作为比较的生成参考。然而,现有基于DM的方法通常通过原始图像空间中的视觉级距离评估差异,这可能与OoD检测的分布差异不一致。本文研究基于DM的OoD检测中差异评估的基本原理,提出以分类器相关方式评估差异,利用受保护分类器的表示空间,其在InD数据上的训练编码了丰富的任务相关InD知识。具体量化了两种差异:深度特征表示中的特征级协变量差异和输出logits中的logit级概念差异,能有效区分InD和OoD样本。还设计了基于子空间的策略来优化DM生成的表示以促进差异评估。这些设计构成了新颖的检测框架DDR。在具有挑战性的大规模ImageNet-1K数据集上的大量实验表明,DDR比基于DM和非基于DM的方法具有更优的检测性能。

英文摘要:

Out-of-Distribution (OoD) detection aims to justify whether a given sample is from the training distribution of the classifier-under-protection, i.e., In-Distribution (InD), or from an unknown out distribution. Recent researches have leveraged Diffusion Models (DMs) for OoD detection due to their powerful distribution modeling capability. Given an input image, an InD-pretrained DM produces a corresponding InD-aligned counterpart, which serves as a generative reference for comparison. However, existing DM-based methods typically assess this underlying discrepancy through visual-level distances in the raw image space, which may be misaligned with the distributional discrepancy relevant to OoD detection. In this work, we investigate the fundamentals of discrepancy assessment in DM-based OoD detection, asking how the discrepancy between an input and its DM-generated counterpart should be formulated, and in which representation spaces and with which metrics it should be measured. To this end, we propose to assess the discrepancy in a classifier-relative manner by exploiting the representation spaces of the classifier-under-protection, whose training on InD data encodes rich task-relevant InD knowledge. In particular, we quantify two types of discrepancy: feature-level covariate discrepancy in deep feature representations and logit-level concept discrepancy in output logits, enabling effective differentiation between InD and OoD samples. Moreover, a subspace-based strategy is devised to refine representations of the DM generation to promote discrepancy assessment. Together, these designs form our novel detection framework, namely DDR. Extensive experiments on the challenging large-scale ImageNet-1K dataset demonstrate the superior detection performance of DDR over both DM-based and non-DM-based methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑