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

从全局到局部:多尺度分布外检测

From Global to Local: Multi-scale Out-of-distribution Detection

University of Electronic Science and Technology of China(电子科技大学);Kuaishou Technology(快手科技)

Ji Zhang, Lianli Gao, Bingguang Hao, Hao Huang, Jingkuan Song, Hengtao Shen

AI总结:

针对现有基于距离的分布外检测仅依赖全局表征易受背景和类内变化干扰的问题,提出多尺度检测框架MODE,结合ALPA训练目标与CSD决策函数,在多个基准上显著提升了OOD检测性能。

摘要:

分布外(OOD)检测旨在检测在分布内(ID)训练过程中未见过其标签的“未知”数据。表征学习的最新进展催生了基于距离的OOD检测,该方法根据输入与ID类别训练数据的相对距离将其识别为ID/OOD。以往方法仅依赖全局图像表征计算成对距离,这可能并非最优,因为不可避免的背景杂波和类内变化可能会使同一ID类别的图像级表征在给定表征空间中相距甚远。在本研究中,我们通过提出多尺度OOD检测(Multi-scale OOD DEtection,MODE)框架来克服这一挑战,这是首个同时利用图像的全局视觉信息和局部区域细节以最大化助力OOD检测的框架。具体而言,我们首先发现,由于ID训练与OOD检测过程之间存在尺度差异,现有采用现成交叉熵或对比损失预训练的模型无法为MODE捕捉有价值的局部表征。为缓解这一问题并在ID训练中促进具有局部判别性的表征,我们提出了基于注意力的局部传播(Attention-based Local PropAgation,ALPA)方法,这是一种可训练目标函数,利用交叉注意力机制对齐并突出成对示例中目标对象的局部区域。在测试阶段OOD检测过程中,我们进一步在最具判别性的多尺度表征上设计了跨尺度决策(Cross-Scale Decision,CSD)函数,以更准确地区分ID/OOD数据。我们在多个基准上验证了MODE的有效性和灵活性——平均而言,MODE在FPR指标上较此前最优方法提升最高达19.24%,在AUROC指标上提升2.77%。代码可在https://github.com/JimZAI/MODE-OOD获取。

英文摘要:

Out-of-distribution (OOD) detection aims to detect "unknown" data whose labels have not been seen during the in-distribution (ID) training process. Recent progress in representation learning gives rise to distance-based OOD detection that recognizes inputs as ID/OOD according to their relative distances to the training data of ID classes. Previous approaches calculate pairwise distances relying only on global image representations, which can be sub-optimal as the inevitable background clutter and intra-class variation may drive image-level representations from the same ID class far apart in a given representation space. In this work, we overcome this challenge by proposing Multi-scale OOD DEtection (MODE), a first framework leveraging both global visual information and local region details of images to maximally benefit OOD detection. Specifically, we first find that existing models pretrained by off-the-shelf cross-entropy or contrastive losses are incompetent to capture valuable local representations for MODE, due to the scale-discrepancy between the ID training and OOD detection processes. To mitigate this issue and encourage locally discriminative representations in ID training, we propose Attention-based Local PropAgation (ALPA), a trainable objective that exploits a cross-attention mechanism to align and highlight the local regions of the target objects for pairwise examples. During test-time OOD detection, a Cross-Scale Decision (CSD) function is further devised on the most discriminative multi-scale representations to distinguish ID/OOD data more faithfully. We demonstrate the effectiveness and flexibility of MODE on several benchmarks -- on average, MODE outperforms the previous state-of-the-art by up to 19.24% in FPR, 2.77% in AUROC. Code is available at https://github.com/JimZAI/MODE-OOD.

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

↑