分布外检测中利用特征范数的块选择方法
Block Selection Method for Using Feature Norm in Out-of-distribution Detection
摘要:
在推理阶段检测分布外(OOD)输入对于在现实世界中部署神经网络至关重要。以前的方法通常依赖于从高度激活的特征图导出的网络的输出。在这项研究中,我们首先揭示了从其他块而不是最后一个块获得的特征图的范数可以是OOD检测的更好指标。出于这一动机,我们提出了一个简单的框架,包括特征图的范数和NormRatio:ID和OOD的范数的比率,以衡量每个块的OOD检测性能。特别是,为了选择提供ID的Anterior Norm和OOD的Anterior Norm之间最大差异的块,我们从ID训练样本中创建Jigsaw Puzzle图像作为伪OOD并计算NormRatio,并选择具有最大值的块。在选择了合适的块之后,OOD检测与其他OOD检测方法相比,在CIFAR10基准测试中减少了高达52.77%的FPR95,在ImageNet基准测试中减少了高达48.53%。我们证明了我们的框架可以推广到各种架构和块选择的重要性,这也可以改善以前的OOD检测方法。
英文摘要:
Detecting out-of-distribution (OOD) inputs during the inference stage is crucial for deploying neural networks in the real world. Previous methods commonly relied on the output of a network derived from the highly activated feature map. In this study, we first revealed that a norm of the feature map obtained from the other block than the last block can be a better indicator of OOD detection. Motivated by this, we propose a simple framework consisting of FeatureNorm: a norm of the feature map and NormRatio: a ratio of FeatureNorm for ID and OOD to measure the OOD detection performance of each block. In particular, to select the block that provides the largest difference between FeatureNorm of ID and FeatureNorm of OOD, we create Jigsaw puzzle images as pseudo OOD from ID training samples and calculate NormRatio, and the block with the largest value is selected. After the suitable block is selected, OOD detection with the FeatureNorm outperforms other OOD detection methods by reducing FPR95 by up to 52.77% on CIFAR10 benchmark and by up to 48.53% on ImageNet benchmark. We demonstrate that our framework can generalize to various architectures and the importance of block selection, which can improve previous OOD detection methods as well.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。