Understanding the Feature Norm for Out-of-Distribution Detection

被引:4
|
作者
Park, Jaewoo [1 ,2 ]
Chai, Jacky Chen Long [1 ]
Yoon, Jaeho [1 ]
Teoh, Andrew Beng Jin [1 ]
机构
[1] Yonsei Univ, Seoul, South Korea
[2] AiV Co, Houston, TX USA
基金
新加坡国家研究基金会;
关键词
D O I
10.1109/ICCV51070.2023.00150
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
A neural network trained on a classification dataset often exhibits a higher vector norm of hidden layer features for in-distribution ( ID) samples, while producing relatively lower norm values on unseen instances from outof-distribution (OOD). Despite this intriguing phenomenon being utilized in many applications, the underlying cause has not been thoroughly investigated. In this study, we demystify this very phenomenon by scrutinizing the discriminative structures concealed in the intermediate layers of a neural network. Our analysis leads to the following discoveries: ( 1) The feature norm is a confidence value of a classifier hidden in the network layer, specifically its maximum logit. Hence, the feature norm distinguishes OOD from ID in the same manner that a classifier confidence does. (2) The feature norm is class-agnostic, thus it can detect OOD samples across diverse discriminative models. (3) The conventional feature norm fails to capture the deactivation tendency of hidden layer neurons, which may lead to misidentification of ID samples as OOD instances. To resolve this drawback, we propose a novel negative-aware norm (NAN) that can capture both the activation and deactivation tendencies of hidden layer neurons. We conduct extensive experiments on NAN, demonstrating its efficacy and compatibility with existing OOD detectors, as well as its capability in label-free environments.
引用
收藏
页码:1557 / 1567
页数:11
相关论文
共 50 条
  • [31] Unsupervised evaluation for out-of-distribution detection
    Zhang, Yuhang
    Hu, Jiani
    Wen, Dongchao
    Deng, Weihong
    PATTERN RECOGNITION, 2025, 160
  • [32] In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluation
    Bitterwolf, Julian
    Mueller, Maximilian
    Hein, Matthias
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 202, 2023, 202
  • [33] On the Importance of Feature Separability in Predicting Out-Of-Distribution Error
    Xie, Renchunzi
    Wei, Hongxin
    Feng, Lei
    Cao, Yuzhou
    An, Bo
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [34] Deep Relevant Feature Focusing for Out-of-Distribution Generalization
    Wang, Fawu
    Zhang, Kang
    Liu, Zhengyu
    Yuan, Xia
    Zhao, Chunxia
    PATTERN RECOGNITION AND COMPUTER VISION, PT I, PRCV 2022, 2022, 13534 : 245 - 253
  • [35] Out-of-Distribution Detection in Deep Learning Models: A Feature Space-Based Approach
    Carvalho, Thiago Medeiros
    Vellasco, Marley
    Amaral, Jose Franco
    2023 INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS, IJCNN, 2023,
  • [36] RONF: Reliable Outlier Synthesis under Noisy Feature Space for Out-of-Distribution Detection
    He, Rundong
    Han, Zhongyi
    Lu, Xiankai
    Yin, Yilong
    PROCEEDINGS OF THE 30TH ACM INTERNATIONAL CONFERENCE ON MULTIMEDIA, MM 2022, 2022, : 4242 - 4251
  • [37] Towards In-Distribution Compatible Out-of-Distribution Detection
    Wu, Boxi
    Jiang, Jie
    Ren, Haidong
    Du, Zifan
    Wang, Wenxiao
    Li, Zhifeng
    Cai, Deng
    He, Xiaofei
    Lin, Binbin
    Liu, Wei
    THIRTY-SEVENTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOL 37 NO 9, 2023, : 10333 - 10341
  • [38] FLatS: Principled Out-of-Distribution Detection with Feature-Based Likelihood Ratio Score
    Lin, Haowei
    Gu, Yuntian
    2023 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING (EMNLP 2023), 2023, : 8956 - 8963
  • [39] Out-of-Distribution Detection Using Outlier Detection Methods
    Diers, Jan
    Pigorsch, Christian
    IMAGE ANALYSIS AND PROCESSING, ICIAP 2022, PT III, 2022, 13233 : 15 - 26
  • [40] On the Impact of Spurious Correlation for Out-of-Distribution Detection
    Ming, Yifei
    Yin, Hang
    Li, Yixuan
    THIRTY-SIXTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE / THIRTY-FOURTH CONFERENCE ON INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE / TWELVETH SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2022, : 10051 - 10059