READ:将重构误差聚合到分布外检测中
READ: Aggregating Reconstruction Error into Out-of-distribution Detection
摘要:
检测分布外(OOD)样本对于在现实世界中安全部署分类器至关重要。然而,众所周知,深度神经网络对异常数据过于自信。现有的工作直接设计得分函数挖掘不一致的分类器的分布(ID)和OOD。在本文中,我们进一步补充这种不一致与重建误差,基于假设,在ID数据上训练的自动编码器不能重建OOD以及ID。我们提出了一种新的方法,READ(重建误差聚合检测器),统一分类器和自动编码器的不一致。具体地说,原始像素的重建误差被转换到分类器的潜在空间。我们表明,转换后的重建误差弥合了语义差距,并继承了原来的检测性能。此外,我们提出了一个调整策略,以减轻过度自信的问题,自动编码器根据一个细粒度的表征OOD数据。在预训练和再训练两种情况下,我们分别提出了我们的方法的两种变体,即仅基于预训练分类器的READ-MD(马氏距离)和重新训练分类器的READ-ED(欧几里得距离)。我们的方法不需要访问测试时间OOD数据来微调超参数。最后,我们证明了所提出的方法的有效性,通过广泛的比较与国家的最先进的OOD检测算法。在CIFAR-10预训练的WideResNet上,我们的方法与以前的最新技术相比,将平均FPR@95TPR降低了9.8%。
英文摘要:
Detecting out-of-distribution (OOD) samples is crucial to the safe deployment of a classifier in the real world. However, deep neural networks are known to be overconfident for abnormal data. Existing works directly design score function by mining the inconsistency from classifier for in-distribution (ID) and OOD. In this paper, we further complement this inconsistency with reconstruction error, based on the assumption that an autoencoder trained on ID data can not reconstruct OOD as well as ID. We propose a novel method, READ (Reconstruction Error Aggregated Detector), to unify inconsistencies from classifier and autoencoder. Specifically, the reconstruction error of raw pixels is transformed to latent space of classifier. We show that the transformed reconstruction error bridges the semantic gap and inherits detection performance from the original. Moreover, we propose an adjustment strategy to alleviate the overconfidence problem of autoencoder according to a fine-grained characterization of OOD data. Under two scenarios of pre-training and retraining, we respectively present two variants of our method, namely READ-MD (Mahalanobis Distance) only based on pre-trained classifier and READ-ED (Euclidean Distance) which retrains the classifier. Our methods do not require access to test time OOD data for fine-tuning hyperparameters. Finally, we demonstrate the effectiveness of the proposed methods through extensive comparisons with state-of-the-art OOD detection algorithms. On a CIFAR-10 pre-trained WideResNet, our method reduces the average FPR@95TPR by up to 9.8% compared with previous state-of-the-art.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。