Block Selection Method for Using Feature Norm in Out-of-Distribution Detection

被引:15
作者
Yu, Yeonguk [1 ]
Shin, Sungho [1 ]
Lee, Seongju [1 ]
Jun, Changhyun [1 ]
Lee, Kyoobin [1 ]
机构
[1] Gwangju Inst Sci & Technol, Gwangju, South Korea
来源
2023 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR) | 2023年
关键词
D O I
10.1109/CVPR52729.2023.01507
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Detecting out-of-distribution (OOD) inputs during the inference stage is crucial for deploying neural networks in the real world. Previous methods typically relied on the highly activated feature map outputted by the network. In this study, we revealed that the norm of the feature map obtained from a block other than the last block can serve as a better indicator for OOD detection. To leverage this insight, we propose a simple framework that comprises two metrics: FeatureNorm, which computes the norm of the feature map, and NormRatio, which calculates the ratio of FeatureNorm for ID and OOD samples to evaluate the OOD detection performance of each block. To identify the block that provides the largest difference between FeatureNorm of ID and FeatureNorm of OOD, we create jigsaw puzzles as pseudo OOD from ID training samples and compute NormRatio, selecting the block with the highest value. After identifying the suitable block, OOD detection using FeatureNorm outperforms other methods by reducing FPR95 by up to 52.77% on CIFAR10 benchmark and up to 48.53% on ImageNet benchmark. We demonstrate that our framework can generalize to various architectures and highlight the significance of block selection, which can also improve previous OOD detection methods. Our code is available at https://github.com/gistailab/block-selection-for-OOD-detection.
引用
收藏
页码:15701 / 15711
页数:11
相关论文
共 55 条
[31]  
Liang S., 2018, ICLR 2018
[32]   MOOD: Multi-level Out-of-distribution Detection [J].
Lin, Ziqian ;
Roy, Sreya Dutta ;
Li, Yixuan .
2021 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, CVPR 2021, 2021, :15308-15318
[33]  
Liu Weitang., 2020, Advances in neural information processing systems
[34]  
Madry A., 2017, Towards Deep Learning Models Resistant to Adversarial Attacks
[35]  
Mohammed T, 2017, NORTH AMER POW SYMP
[36]   DeepFool: a simple and accurate method to fool deep neural networks [J].
Moosavi-Dezfooli, Seyed-Mohsen ;
Fawzi, Alhussein ;
Frossard, Pascal .
2016 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2016, :2574-2582
[37]  
Netzer Yuval., 2011, NIPS WORKSHOP DEEP L, V2011, P5
[38]   Unsupervised Learning of Visual Representations by Solving Jigsaw Puzzles [J].
Noroozi, Mehdi ;
Favaro, Paolo .
COMPUTER VISION - ECCV 2016, PT VI, 2016, 9910 :69-84
[39]  
Parde Connor J., 2016, ABS161101751 ARXIV
[40]  
Pooch Eduardo H. P., 2020, Thoracic Image Analysis. Second International Workshop, TIA 2020. Held in Conjunction with MICCAI 2020. Proceedings. Lecture Notes in Computer Science (LNCS 12502), P74, DOI 10.1007/978-3-030-62469-9_7