arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.10848cs.LGcs.CVcs.NEstat.ML
收藏

通过分布和特征的层次结构理解深度可逆网络的异常检测

Understanding Anomaly Detection with Deep Invertible Networks through Hierarchies of Distributions and Features

University Medical Center Freiburg(弗莱堡大学医学中心);Bosch Center for Artificial Intelligence(博世人工智能中心)

Robin Tibor Schirrmeister, Yuxuan Zhou, Tonio Ball, Dan Zhang

摘要:

通过对自然图像数据集(如CIFAR10)进行最大似然训练的深度生成网络通常将高似然分配给来自具有不同对象的数据集的图像(例如,SVHN)。我们改进了以前对可逆生成网络异常检测失败的研究,并将其解释为模型偏差和域先验的组合:卷积网络在任何自然图像数据集上训练时都会学习类似的低级特征分布,这些低级特征主导了可能性。因此,当内点和离群点之间的区别特征处于高水平时,例如,物体形状,异常检测变得特别具有挑战性。为了消除模型偏差和域先验对检测高水平差异的负面影响,我们提出了两种方法,首先,使用两个相同模型的对数似然比,一个是在分布数据上训练的(例如,CIFAR10)和另一个关于更一般的图像分布(例如,8000万张小图片)。我们还从更一般的分布中推导出一种新的分布网络样本的离群值损失,以进一步提高性能。其次,使用像Glow这样的多尺度模型,我们证明了低级特征主要是在早期尺度上捕获的。因此,仅使用最终尺度的似然贡献对于检测分布外和分布内的高级特征差异表现得非常好。如果没有合适的一般分布,这种方法特别有用。总体而言,我们的方法在无监督环境中实现了强大的异常检测性能,并且在监督环境中仅略低于最先进的基于分类器的方法。代码可以在https://github.com/boschresearch/hierarchical_anomaly_detection上找到。

英文摘要:

Deep generative networks trained via maximum likelihood on a natural image dataset like CIFAR10 often assign high likelihoods to images from datasets with different objects (e.g., SVHN). We refine previous investigations of this failure at anomaly detection for invertible generative networks and provide a clear explanation of it as a combination of model bias and domain prior: Convolutional networks learn similar low-level feature distributions when trained on any natural image dataset and these low-level features dominate the likelihood. Hence, when the discriminative features between inliers and outliers are on a high-level, e.g., object shapes, anomaly detection becomes particularly challenging. To remove the negative impact of model bias and domain prior on detecting high-level differences, we propose two methods, first, using the log likelihood ratios of two identical models, one trained on the in-distribution data (e.g., CIFAR10) and the other one on a more general distribution of images (e.g., 80 Million Tiny Images). We also derive a novel outlier loss for the in-distribution network on samples from the more general distribution to further improve the performance. Secondly, using a multi-scale model like Glow, we show that low-level features are mainly captured at early scales. Therefore, using only the likelihood contribution of the final scale performs remarkably well for detecting high-level feature differences of the out-of-distribution and the in-distribution. This method is especially useful if one does not have access to a suitable general distribution. Overall, our methods achieve strong anomaly detection performance in the unsupervised setting, and only slightly underperform state-of-the-art classifier-based methods in the supervised setting. Code can be found at https://github.com/boschresearch/hierarchical_anomaly_detection.

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

↑