arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.04525cs.LGcs.CV
收藏

基于相对角度的分布外检测

Out-of-Distribution Detection with Relative Angles

Institute of Science and Technology Austria(奥地利科学与技术研究所)

Berker Demirel, Marco Fumero, Francesco Locatello

AI总结:

针对现有分布外检测方法对分布内统计信息利用不足的问题,提出基于特征与决策边界相对角度的检测度量,在多个ImageNet预训练模型上取得优异性能,且支持简单分数求和的集成策略。

摘要:

部署在实际应用中的深度学习系统常会遇到与分布内(ID)数据不同的数据。可靠的模型理想情况下应在这种分布外(OOD)场景下弃权(不执行)决策。现有最先进的方法主要聚焦于特征距离,例如k近邻和到决策边界的距离,要么忽略了分布内统计信息,要么对其利用效率低下。本研究提出了一种新颖的基于角度的OOD检测度量,该度量是相对于分布内结构计算的。我们证明,从分布内特征均值的视角来看,特征表示与决策边界之间的夹角是区分ID和OOD数据的有效判别因子。我们在9个ImageNet预训练模型上评估了所提方法。该方法在9个ImageNet模型中的5个上取得了最低的假阳性率(FPR),整体获得了最优的平均FPR,且在所有评估模型中始终位列前三。此外,我们通过在ResNet SCL和CLIP架构上展现的优异性能,凸显了对比表示的优势。最后,我们证明所提分数的尺度不变特性支持通过简单的分数求和实现集成策略。代码可在https://github.com/berkerdemirel/ORA-OOD-Detection-with-Relative-Angles获取。

英文摘要:

Deep learning systems deployed in real-world applications often encounter data that is different from their in-distribution (ID). A reliable model should ideally abstain from making decisions in this out-of-distribution (OOD) setting. Existing state-of-the-art methods primarily focus on feature distances, such as k-th nearest neighbors and distances to decision boundaries, either overlooking or ineffectively using in-distribution statistics. In this work, we propose a novel angle-based metric for OOD detection that is computed relative to the in-distribution structure. We demonstrate that the angles between feature representations and decision boundaries, viewed from the mean of in-distribution features, serve as an effective discriminative factor between ID and OOD data. We evaluate our method on nine ImageNet-pretrained models. Our approach achieves the lowest FPR in 5 out of 9 ImageNet models, obtains the best average FPR overall, and consistently ranking among the top 3 across all evaluated models. Furthermore, we highlight the benefits of contrastive representations by showing strong performance with ResNet SCL and CLIP architectures. Finally, we demonstrate that the scale-invariant nature of our score enables an ensemble strategy via simple score summation. Code is available at https://github.com/berkerdemirel/ORA-OOD-Detection-with-Relative-Angles.

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

↑