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 条
  • [1] Block Selection Method for Using Feature Norm in Out-of-Distribution Detection
    Yu, Yeonguk
    Shin, Sungho
    Lee, Seongju
    Jun, Changhyun
    Lee, Kyoobin
    2023 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2023, : 15701 - 15711
  • [2] Exploring feature sparsity for out-of-distribution detection
    Chen, Qichao
    Li, Kuan
    Chen, Zhiyuan
    Maul, Tomas
    Yin, Jianping
    SCIENTIFIC REPORTS, 2024, 14 (01):
  • [3] Hyperdimensional Feature Fusion for Out-of-Distribution Detection
    Wilson, Samuel
    Fischer, Tobias
    Sunderhauf, Niko
    Dayoub, Feras
    2023 IEEE/CVF WINTER CONFERENCE ON APPLICATIONS OF COMPUTER VISION (WACV), 2023, : 2643 - 2653
  • [4] Understanding and Improving Feature Learning for Out-of-Distribution Generalization
    Chen, Yongqiang
    Huang, Wei
    Zhou, Kaiwen
    Bian, Yatao
    Han, Bo
    Cheng, James
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [5] Provable Guarantees for Understanding Out-of-Distribution Detection
    Morteza, Peyman
    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, : 7831 - 7840
  • [6] Exploiting Discrepancy in Feature Statistic for Out-of-Distribution Detection
    Guan, Xiaoyuan
    Chen, Jiankang
    Bu, Shenshen
    Zhou, Yuren
    Zheng, Wei-Shi
    Wang, Ruixuan
    THIRTY-EIGHTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOL 38 NO 18, 2024, : 19858 - 19866
  • [7] Key Feature Replacement of In-Distribution Samples for Out-of-Distribution Detection
    Kim, Jaeyoung
    Kong, Seo Taek
    Na, Dongbin
    Jung, Kyu-Hwan
    THIRTY-SEVENTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOL 37 NO 7, 2023, : 8246 - 8254
  • [8] Out-of-distribution Detection Learning with Unreliable Out-of-distribution Sources
    Zheng, Haotian
    Wang, Qizhou
    Fang, Zhen
    Xia, Xiaobo
    Liu, Feng
    Liu, Tongliang
    Han, Bo
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [9] Predicting Out-of-Distribution Error with the Projection Norm
    Yu, Yaodong
    Yang, Zitong
    Wei, Alexander
    Ma, Yi
    Steinhardt, Jacob
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 162, 2022,
  • [10] Understanding Failures in Out-of-Distribution Detection with Deep Generative Models
    Zhang, Lily H.
    Goldstein, Mark
    Ranganath, Rajesh
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 139, 2021, 139