Out-of-Distribution Detection based on In-Distribution Data Patterns Memorization with Modern Hopfield Energy
Jinsong Zhang, Qiang Fu, Xu Chen, Lun Du, Zelin Li, Gang Wang, Xiaoguang Liu, Shi Han, Dongmei Zhang
摘要
Out-of-Distribution (OOD) detection is essential for safety-critical applications of deep neural networks. OOD detection is challenging since DNN models may produce very high logits value even for OOD samples. Hence, it is of great difficulty to discriminate OOD data by directly adopting Softmax on output logits as the confidence score. Differently, we detect the OOD sample with Hopfield energy in a store-then-compare paradigm. In more detail, penultimate layer outputs on the training set are considered as the representations of in-distribution (ID) data. Thus they can be transformed into stored patterns that serve as anchors to measure the discrepancy of unseen data for OOD detection. Starting from the energy function defined in Modern Hopfield Network for the discrepancy score calculation, we derive a simplified version SHE with theoretical analysis. In SHE, we utilize only one stored pattern to present each class, and these patterns can be obtained by simply averaging the penultimate layer outputs of training samples within this class. SHE has the advantages of hyperparameterfreeand high computational efficiency. The evaluations of nine widely-used OOD datasets show the promising performance of such a simple yet effective approach and its superiority over State-of-the-Art models. Code is available at https://github.com/zjs975584714/SHE ood detection.
问 Lune
几分钟看清这篇 Paper 的位置,不用再花一下午。
Lune 能读引用它和与它最相关的顶会 Paper,讲清它说了什么、后来怎样、哪里站不住,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 44 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- ConjNorm: Tractable Density Estimation for Out-of-Distribution Detection 引用了 Learning to Shape In-distribution Feature Space for Out-of-distribution Detection
- Learning to Shape In-distribution Feature Space for Out-of-distribution Detection 引用了 ConjNorm: Tractable Density Estimation for Out-of-Distribution Detection
- Learning to Shape In-distribution Feature Space for Out-of-distribution Detection 引用了 VRA: Variational Rectified Activation for Out-of-distribution Detection
引用它的顶会 Paper44
- Learning to Shape In-distribution Feature Space for Out-of-distribution DetectionYonggang Zhang, Jie Lu, Bo Peng, Zhen Fang 等NeurIPS 2024 · 33 次引用
- Neuron Activation Coverage: Rethinking Out-of-distribution Detection and GeneralizationYibing Liu, Chris Xing Tian, Haoliang Li, Lei Ma 等ICLR 2024 · 28 次引用
- ConjNorm: Tractable Density Estimation for Out-of-Distribution DetectionBo Peng, Yadan Luo, Yonggang Zhang, Yixuan Li 等ICLR 2024 · 26 次引用
- Conjugated Semantic Pool Improves OOD Detection with Pre-trained Vision-Language ModelsMengyuan Chen, Junyu Gao, Changsheng XuNeurIPS 2024 · 21 次引用
- VRA: Variational Rectified Activation for Out-of-distribution DetectionMingyu Xu, Zheng Lian, Bin Liu, Jianhua TaoNeurIPS 2023 · 20 次引用
相关 Paper
- Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 次引用
- Energy-based Hopfield Boosting for Out-of-Distribution DetectionClaus Hofmann, Simon Schmid, Bernhard Lehner, Daniel Klotz 等NeurIPS 2024 · 19 次引用
- Detection of Out-of-Distribution Samples Using Binary Neuron Activation PatternsBartlomiej Olber, Krystian Radlak, Adam Popowicz, Michal Szczepankiewicz 等CVPR 2023
- MOOD: Multi-Level Out-of-Distribution DetectionZiqian Lin, Sreya Dutta Roy, Yixuan LiCVPR 2021
- Single Layer Predictive Normalized Maximum Likelihood for Out-of-Distribution DetectionKoby Bibas, Meir Feder, Tal HassnerNeurIPS 2021 · 31 次引用
