Detecting Out-of-Distribution Through the Lens of Neural Collapse
Litian Liu, Yao Qin
摘要
Out-of-Distribution (OOD) detection is critical for safe deployment; however, existing detectors often struggle to generalize across datasets of varying scales and model architectures, and some can incur high computational costs in real-world applications. Inspired by the phenomenon of Neural Collapse, we propose a versatile and efficient OOD detection method. Specifically, we re-characterize prior observations that in-distribution (ID) samples form clusters, demonstrating that, with appropriate centering, these clusters align closely with model weight vectors. Additionally, we reveal that ID features tend to expand into a simplex Equiangular Tight Frame, explaining the common observation that ID features are situated farther from the origin than OOD features. Incorporating both insights from Neural Collapse, our OOD detector leverages feature proximity to weight vectors and complements this approach by using feature norms to effectively filter out OOD samples. Extensive experiments on off-the-shelf models demonstrate the robustness of our OOD detector across diverse scenarios, mitigating generalization discrepancies and enhancing overall performance, with inference latency comparable to that of the basic softmax-confidence detector. Code is available at: https://github.com/litianliu/NCI-OOD .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 19 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Fast Decision Boundary based Out-of-Distribution Detector 引用了 Energy-based Out-of-distribution Detection
- Fast Decision Boundary based Out-of-Distribution Detector 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Fast Decision Boundary based Out-of-Distribution Detector 引用了 Out-of-Distribution Detection with Deep Nearest Neighbors
- Enhancing Hallucination Detection through Noise Injection 引用了 Fast Decision Boundary based Out-of-Distribution Detector
- AdaSCALE: Adaptive Scaling for OOD Detection 引用了 Fast Decision Boundary based Out-of-Distribution Detector
- AdaSCALE: Adaptive Scaling for OOD Detection 引用了 Energy-based Out-of-distribution Detection
- AdaSCALE: Adaptive Scaling for OOD Detection 引用了 Learning to Shape In-distribution Feature Space for Out-of-distribution Detection
- AdaSCALE: Adaptive Scaling for OOD Detection 引用了 Out-of-Distribution Detection with Deep Nearest Neighbors
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- Learning to Shape In-distribution Feature Space for Out-of-distribution Detection 引用了 Energy-based Out-of-distribution Detection
- Learning to Shape In-distribution Feature Space for Out-of-distribution Detection 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- Learning to Shape In-distribution Feature Space for Out-of-distribution Detection 引用了 Out-of-Distribution Detection with Deep Nearest Neighbors
- Out-of-Distribution Detection with Deep Nearest Neighbors 引用了 Energy-based Out-of-distribution Detection
- Out-of-Distribution Detection with Deep Nearest Neighbors 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- Out-of-Distribution Detection with Deep Nearest Neighbors 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Revisiting Logit Distributions for Reliable Out-of-Distribution Detection 引用了 Fast Decision Boundary based Out-of-Distribution Detector
- Revisiting Logit Distributions for Reliable Out-of-Distribution Detection 引用了 Energy-based Out-of-distribution Detection
- Revisiting Logit Distributions for Reliable Out-of-Distribution Detection 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Revisiting Logit Distributions for Reliable Out-of-Distribution Detection 引用了 Out-of-Distribution Detection with Deep Nearest Neighbors
- Swin Transformer V2: Scaling Up Capacity and Resolution 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
引用它的顶会 Paper19
- Fast Decision Boundary based Out-of-Distribution DetectorLitian Liu, Yao QinICML 2024 · 47 次引用
- Learning to Shape In-distribution Feature Space for Out-of-distribution DetectionYonggang Zhang, Jie Lu, Bo Peng, Zhen Fang 等NeurIPS 2024 · 33 次引用
- Enhancing Hallucination Detection through Noise InjectionLitian Liu, Reza Pourreza, Sunny Panchal, Apratim Bhattacharyya 等ICLR 2026 · 19 次引用
- AdaSCALE: Adaptive Scaling for OOD DetectionSudarshan RegmiICML 2026 · 9 次引用
- Revisiting Logit Distributions for Reliable Out-of-Distribution DetectionJiachen Liang, Ruibing Hou, Minyang Hu, Hong Chang 等NeurIPS 2025 · 9 次引用
它引用的 Paper25
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 次引用
- Swin Transformer V2: Scaling Up Capacity and ResolutionZe Liu, Han Hu, Yutong Lin, Zhuliang Yao 等CVPR 2022 · 2,138 次引用
- Out-of-Distribution Detection with Deep Nearest NeighborsYiyou Sun, Yifei Ming, Xiaojin Zhu, Yixuan LiICML 2022 · 789 次引用
相关 Paper
- NECO: NEural Collapse Based Out-of-distribution detectionMouïn Ben Ammar, Nacim Belkhir, Sebastian Popescu, Antoine Manzanera 等ICLR 2024 · 40 次引用
- Controlling Neural Collapse Enhances Out-of-Distribution Detection and Transfer LearningMd Yousuf Harun, Jhair Gallardo, Christopher KananICML 2025
- Pursuing Feature Separation based on Neural Collapse for Out-of-Distribution DetectionYingwen Wu, Ruiji Yu, Xinwen Cheng, Zhengbao He 等ICLR 2025
- Enhancing Out-of-Distribution Detection with Extended Logit NormalizationYifan Ding, Xixi Liu, Jonas Unger, Gabriel EilertsenCVPR 2026 · 4 次引用
- Neural Mean Discrepancy for Efficient Out-of-Distribution DetectionXin Dong, Junfeng Guo, Ang Li, Wei-Te Ting 等CVPR 2022 · 40 次引用
