Neural Mean Discrepancy for Efficient Out-of-Distribution Detection

被引:19
|
作者
Dong, Xin [1 ]
Guo, Junfeng [2 ]
Li, Ang [2 ,3 ]
Ting, Wei-Te [1 ]
Liu, Cong [2 ]
Kung, H. T. [1 ]
机构
[1] Harvard Univ, Cambridge, MA 02138 USA
[2] UT Dallas, Dallas, TX USA
[3] Google DeepMind, London, England
关键词
D O I
10.1109/CVPR52688.2022.01862
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Various approaches have been proposed for out-of-distribution (OOD) detection by augmenting models, input examples, training sets, and optimization objectives. Deviating from existing work, we have a simple hypothesis that standard off-the-shelf models may already contain sufficient information about the training set distribution which can be leveraged for reliable OOD detection. Our empirical study on validating this hypothesis, which measures the model activation's mean for OOD and in-distribution (ID) minibatches, surprisingly finds that activation means of OOD mini-batches consistently deviate more from those of the training data. In addition, training data's activation means can be computed offline efficiently or retrieved from batch normalization layers as a 'free lunch'. Based upon this observation, we propose a novel metric called Neural Mean Discrepancy (NMD), which compares neural means of the input examples and training data. Leveraging the simplicity of NMD, we propose an efficient OOD detector that computes neural means by a standard forward pass followed by a lightweight classifier. Extensive experiments show that NMD outperforms state-of-the-art OOD approaches across multiple datasets and model architectures in terms of both detection accuracy and computational cost.
引用
收藏
页码:19195 / 19205
页数:11
相关论文
共 50 条
  • [41] Efficient Out-of-Distribution Detection of Melanoma with Wavelet-Based Normalizing Flows
    Valiuddin, M. M. Amaan
    Viviers, Christiaan G. A.
    van Sloun, Ruud J. G.
    de With, Peter H. N.
    van der Sommen, Fons
    CANCER PREVENTION THROUGH EARLY DETECTION, CAPTION 2022, 2022, 13581 : 99 - 107
  • [42] Exploiting classifier inter-level features for efficient out-of-distribution detection
    Fayyad, Jamil
    Gupta, Kashish
    Mahdian, Navid
    Gruyer, Dominique
    Najjaran, Homayoun
    IMAGE AND VISION COMPUTING, 2024, 142
  • [43] EARLIN: Early Out-of-Distribution Detection for Resource-Efficient Collaborative Inference
    Nimi, Sumaiya Tabassum
    Arefeen, Adnan
    Uddin, Yusuf Sarwar
    Lee, Yugyung
    MACHINE LEARNING AND KNOWLEDGE DISCOVERY IN DATABASES, 2021, 12975 : 635 - 651
  • [44] Out-of-Distribution Detection Using Outlier Detection Methods
    Diers, Jan
    Pigorsch, Christian
    IMAGE ANALYSIS AND PROCESSING, ICIAP 2022, PT III, 2022, 13233 : 15 - 26
  • [45] 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
  • [46] 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
  • [47] Your Out-of-Distribution Detection Method is Not Robust!
    Azizmalayeri, Mohammad
    Moakhar, Arshia Soltani
    Zarei, Arman
    Zohrabi, Reihaneh
    Manzuri, Mohammad Taghi
    Rohban, Mohammad Hossein
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 35 (NEURIPS 2022), 2022,
  • [48] Learning to Augment Distributions for Out-of-Distribution Detection
    Wang, Qizhou
    Fang, Zhen
    Zhang, Yonggang
    Liu, Feng
    Li, Yixuan
    Han, Bo
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [49] Latent Transformer Models for out-of-distribution detection
    Graham, Mark S.
    Tudosiu, Petru-Daniel
    Wright, Paul
    Pinaya, Walter Hugo Lopez
    Teikari, Petteri
    Patel, Ashay
    U-King-Im, Jean-Marie
    Mah, Yee H.
    Teo, James T.
    Jager, Hans Rolf
    Werring, David
    Rees, Geraint
    Nachev, Parashkev
    Ourselin, Sebastien
    Cardoso, M. Jorge
    MEDICAL IMAGE ANALYSIS, 2023, 90
  • [50] CONTINUAL LEARNING FOR OUT-OF-DISTRIBUTION PEDESTRIAN DETECTION
    Molahasani, Mahdiyar
    Etemad, Ali
    Greenspan, Michael
    2023 IEEE INTERNATIONAL CONFERENCE ON IMAGE PROCESSING, ICIP, 2023, : 2685 - 2689