arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.12368cs.CVcs.LG
收藏

梯度正则化的分布外检测

Gradient-Regularized Out-of-Distribution Detection

Johns Hopkins University(约翰斯·霍普金斯大学)

Sina Sharifi, Taha Entesari, Bardia Safaei, Vishal M. Patel, Mahyar Fazlyab

AI总结:

针对OOD检测中辅助数据集局部信息未充分利用的问题,提出利用损失函数梯度信息进行正则化并开发基于能量的采样方法,在多个基准上显著提升检测性能。

摘要:

神经网络在现实应用中面临的一个挑战是,当数据不来自原始训练分布时,这些模型会做出过度自信的错误预测。解决这一问题被称为分布外(OOD)检测。许多最先进的OOD方法在训练期间采用辅助数据集作为OOD数据的替代,以实现性能提升。然而,这些方法未能充分利用辅助数据集中蕴含的局部信息。在本工作中,我们提出利用损失函数梯度中蕴含的信息,使网络不仅能为每个样本学习到期望的OOD分数,还能在每个样本的局部邻域内表现出相似的行为。我们还开发了一种新颖的基于能量的采样方法,使网络在训练阶段能接触到信息量更大的OOD样本。当辅助数据集很大时,这一点尤为重要。我们通过在多个OOD基准上的大量实验证明了该方法的有效性,在ImageNet实验中将现有最先进的FPR95改善了4%。我们进一步通过认证鲁棒性和Lipschitz分析的视角提供了理论分析,以展示我们工作的理论基础。代码可在https://github.com/o4lc/Greg-OOD获取。

英文摘要:

One of the challenges for neural networks in real-life applications is the overconfident errors these models make when the data is not from the original training distribution. Addressing this issue is known as Out-of-Distribution (OOD) detection. Many state-of-the-art OOD methods employ an auxiliary dataset as a surrogate for OOD data during training to achieve improved performance. However, these methods fail to fully exploit the local information embedded in the auxiliary dataset. In this work, we propose the idea of leveraging the information embedded in the gradient of the loss function during training to enable the network to not only learn a desired OOD score for each sample but also to exhibit similar behavior in a local neighborhood around each sample. We also develop a novel energy-based sampling method to allow the network to be exposed to more informative OOD samples during the training phase. This is especially important when the auxiliary dataset is large. We demonstrate the effectiveness of our method through extensive experiments on several OOD benchmarks, improving the existing state-of-the-art FPR95 by 4% on our ImageNet experiment. We further provide a theoretical analysis through the lens of certified robustness and Lipschitz analysis to showcase the theoretical foundation of our work. Our code is available at https://github.com/o4lc/Greg-OOD.

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

↑