Decoupling MaxLogit for Out-of-Distribution Detection

被引:23
作者
Zhang, Zihan [1 ]
Xiang, Xiang [1 ]
机构
[1] Huazhong Univ Sci & Technol, Sch Artificial Intelligence & Automat, Key Lab Image Proc & Intelligent Control, Minist Educ, Wuhan, Peoples R China
来源
2023 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, CVPR | 2023年
关键词
D O I
10.1109/CVPR52729.2023.00330
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
In machine learning, it is often observed that standard training outputs anomalously high confidence for both indistribution (ID) and out-of-distribution (OOD) data. Thus, the ability to detect OOD samples is critical to the model deployment. An essential step for OOD detection is post-hoc scoring. MaxLogit is one of the simplest scoring functions which uses the maximum logits as OOD score. To provide a new viewpoint to study the logit-based scoring function, we reformulate the logit into cosine similarity and logit norm and propose to use MaxCosine and MaxNorm. We empirically find that MaxCosine is a core factor in the effectiveness of MaxLogit. And the performance of MaxLogit is encumbered by MaxNorm. To tackle the problem, we propose the Decoupling MaxLogit (DML) for flexibility to balance MaxCosine and MaxNorm. To further embody the core of our method, we extend DML to DML+ based on the new insights that fewer hard samples and compact feature space are the key components to make logit-based methods effective. We demonstrate the effectiveness of our logit-based OOD detection methods on CIFAR-10, CIFAR-100 and ImageNet and establish state-of-the-art performance.
引用
收藏
页码:3388 / 3397
页数:10
相关论文
共 48 条
[31]  
Thulasidasan S, 2019, ADV NEUR IN, V32
[32]   Focal Loss for Dense Object Detection [J].
Lin, Tsung-Yi ;
Goyal, Priya ;
Girshick, Ross ;
He, Kaiming ;
Dollar, Piotr .
2017 IEEE INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV), 2017, :2999-3007
[33]   The iNaturalist Species Classification and Detection Dataset [J].
Van Horn, Grant ;
Mac Aodha, Oisin ;
Song, Yang ;
Cui, Yin ;
Sun, Chen ;
Shepard, Alex ;
Adam, Hartwig ;
Perona, Pietro ;
Belongie, Serge .
2018 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2018, :8769-8778
[34]  
Vaze S., 2022, P INT C LEARN REPR, P1
[35]   NormFace: L2 Hypersphere Embedding for Face Verification [J].
Wang, Feng ;
Xiang, Xiang ;
Cheng, Jian ;
Yuille, Alan L. .
PROCEEDINGS OF THE 2017 ACM MULTIMEDIA CONFERENCE (MM'17), 2017, :1041-1049
[36]   Additive Margin Softmax for Face Verification [J].
Wang, Feng ;
Cheng, Jian ;
Liu, Weiyang ;
Liu, Haijun .
IEEE SIGNAL PROCESSING LETTERS, 2018, 25 (07) :926-930
[37]   ViM: Out-Of-Distribution with Virtual-logit Matching [J].
Wang, Haoqi ;
Li, Zhizhong ;
Feng, Litong ;
Zhang, Wayne .
2022 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR 2022), 2022, :4911-4920
[38]   Sequential Parameter Estimation for Mammalian Cell Model Based on In Silico Design of Experiments [J].
Wang, Zhenyu ;
Sheikh, Hana ;
Lee, Kyongbum ;
Georgakis, Christos .
PROCESSES, 2018, 6 (08)
[39]   A Discriminative Feature Learning Approach for Deep Face Recognition [J].
Wen, Yandong ;
Zhang, Kaipeng ;
Li, Zhifeng ;
Qiao, Yu .
COMPUTER VISION - ECCV 2016, PT VII, 2016, 9911 :499-515
[40]  
Xiao JX, 2010, PROC CVPR IEEE, P3485, DOI 10.1109/CVPR.2010.5539970