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

$p$ - DkNN:通过深度表示的统计测试进行分布外检测

$p$-DkNN: Out-of-Distribution Detection Through Statistical Testing of Deep Representations

University of Torontoland(托伦托兰大学);Googol ShallowMind(Googol ShallowMind公司);University of Edenborrow(伊登伯勒大学)

Adam Dziedzic, Stephan Rabanser, Mohammad Yaghini, Armin Ale, Murat A. Erdogdu, Nicolas Papernot

摘要:

缺乏良好校准的置信度估计使得神经网络在自动驾驶或医疗保健等安全关键领域中显得不足。在这些设置中,能够避免对分布外(OOD)数据进行预测与正确分类分布内数据一样重要。我们引入了$p$ -DkNN,这是一种新的推理过程,它采用经过训练的深度神经网络并分析其中间隐藏表示的相似性结构,以计算与端到端模型预测相关的$p$值。直觉是,对潜在表征进行的统计测试不仅可以作为分类器,而且还可以提供统计上有充分依据的不确定性估计。$p$ -DkNN是可扩展的,并利用隐藏层学习的表示组合,这使得深度表示学习成功。我们的理论分析建立在Neyman-Pearson分类的基础上,并将其与选择性分类(拒绝选项)的最新进展联系起来。我们展示了有利的权衡之间的弃权预测OOD输入和保持高精度的分布输入。我们发现,$p$ -DkNN迫使自适应攻击者制作对抗性示例,这是一种最坏情况的OOD输入,以引入语义上有意义的变化。

英文摘要:

The lack of well-calibrated confidence estimates makes neural networks inadequate in safety-critical domains such as autonomous driving or healthcare. In these settings, having the ability to abstain from making a prediction on out-of-distribution (OOD) data can be as important as correctly classifying in-distribution data. We introduce $p$-DkNN, a novel inference procedure that takes a trained deep neural network and analyzes the similarity structures of its intermediate hidden representations to compute $p$-values associated with the end-to-end model prediction. The intuition is that statistical tests performed on latent representations can serve not only as a classifier, but also offer a statistically well-founded estimation of uncertainty. $p$-DkNN is scalable and leverages the composition of representations learned by hidden layers, which makes deep representation learning successful. Our theoretical analysis builds on Neyman-Pearson classification and connects it to recent advances in selective classification (reject option). We demonstrate advantageous trade-offs between abstaining from predicting on OOD inputs and maintaining high accuracy on in-distribution inputs. We find that $p$-DkNN forces adaptive attackers crafting adversarial examples, a form of worst-case OOD inputs, to introduce semantically meaningful changes to the inputs.

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

↑