arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1909.11786stat.MLcs.LG
收藏

用于分布外和对抗性检测的深度特征概率建模

Probabilistic Modeling of Deep Features for Out-of-Distribution and Adversarial Detection

Intel Labs(英特尔实验室)

Nilesh A. Ahuja, Ibrahima Ndiour, Trushant Kalyanpur, Omesh Tickoo

摘要:

我们提出了一种用于检测深度神经网络中的分布外(OOD)和对抗性样本的原则性方法。我们的方法包括在训练完成后,用参数概率分布对各个层(深度特征)的输出进行建模。在推断时,计算深度特征相对于先前学习的分布的似然性,并用于导出可以区分分布内样本和OOD样本的不确定性估计。我们探索使用两类多元分布建模的深层功能-高斯和高斯混合-和研究准确性和计算复杂性之间的权衡。我们通过在MNIST和CIFAR 10数据集上使用流行的DNN架构检测OOD图像和逆向生成的图像,展示了我们的方法在图像特征上的优势。我们发现,对特征分布进行更精确的建模,可以显著提高OOD和对抗性样本的检测能力; AUPR和AUROC指标的检测率高达12个百分点。我们进一步表明,我们的方法在应用于视频数据和相关的时空特征时仍然非常有效,通过使用UCF 101数据集和C3 D网络检测活动分类任务上的对抗样本。据我们所知,我们的方法是第一个可靠检测白盒对抗框架的方法,这是一种针对视频分类器的最先进的对抗攻击。

英文摘要:

We present a principled approach for detecting out-of-distribution (OOD) and adversarial samples in deep neural networks. Our approach consists in modeling the outputs of the various layers (deep features) with parametric probability distributions once training is completed. At inference, the likelihoods of the deep features w.r.t the previously learnt distributions are calculated and used to derive uncertainty estimates that can discriminate in-distribution samples from OOD samples. We explore the use of two classes of multivariate distributions for modeling the deep features - Gaussian and Gaussian mixture - and study the trade-off between accuracy and computational complexity. We demonstrate benefits of our approach on image features by detecting OOD images and adversarially-generated images, using popular DNN architectures on MNIST and CIFAR10 datasets. We show that more precise modeling of the feature distributions result in significantly improved detection of OOD and adversarial samples; up to 12 percentage points in AUPR and AUROC metrics. We further show that our approach remains extremely effective when applied to video data and associated spatio-temporal features by detecting adversarial samples on activity classification tasks using UCF101 dataset, and the C3D network. To our knowledge, our methodology is the first one reported for reliably detecting white-box adversarial framing, a state-of-the-art adversarial attack for video classifiers.

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

↑