Test-Time Linear Out-of-Distribution Detection
Ke Fan, Tong Liu, Xingyu Qiu, Yikai Wang, Lian Huai, Zeyu Shangguan, Shuang Gou, Fengjian Liu, Yuqian Fu, Yanwei Fu, Xingqun Jiang
摘要
Out-of-Distribution (OOD) detection aims to address the excessive confidence prediction by neural networks by triggering an alert when the input sample deviates significantly from the training distribution (in-distribution), indicating that the output may not be reliable. Current OOD detection approaches explore all kinds of cues to identify OOD data, such as finding irregular patterns in the feature space, logit space, gradient space, or the raw image space. Surprisingly, we observe a linear trend between the OOD score produced by current OOD detection algorithms and the network features on several datasets. We conduct a thorough investigation, theoretically and empirically, to analyze and understand the meaning of such a linear trend in OOD detection. This paper proposes a Robust Test-time Linear method (RTL) to utilize such linear trends like a 'free lunch' when we have a batch of data to perform OOD detection. By using a simple linear regression as a test time adaptation, we can make a more precise OOD prediction. We further propose an online variant of the proposed method, which achieves promising performance and is more practical for real applications. Theoretical analysis is given to prove the effectiveness of our methods. Extensive experiments on several OOD datasets show the efficacy of RTL for OOD detection tasks, significantly improving the results of base OOD detectors. Project will be available at https://github.com/kfan21/RTL .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- OOD-Barrier: Build a Middle-Barrier for Open-Set Single-Image Test Time Adaptation via Vision Language Models 引用了 Energy-based Out-of-distribution Detection
- OOD-Barrier: Build a Middle-Barrier for Open-Set Single-Image Test Time Adaptation via Vision Language Models 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- OOD-Barrier: Build a Middle-Barrier for Open-Set Single-Image Test Time Adaptation via Vision Language Models 引用了 Tent: Fully Test-Time Adaptation by Entropy Minimization
- OOD-Barrier: Build a Middle-Barrier for Open-Set Single-Image Test Time Adaptation via Vision Language Models 引用了 Test-Time Training with Self-Supervision for Generalization under Distribution Shifts
- Back to Source: Open-Set Continual Test-Time Adaptation via Domain Compensation 引用了 Energy-based Out-of-distribution Detection
- Back to Source: Open-Set Continual Test-Time Adaptation via Domain Compensation 引用了 Tent: Fully Test-Time Adaptation by Entropy Minimization
- DIsoN: Decentralized Isolation Networks for Out-of-Distribution Detection in Medical Imaging 引用了 Energy-based Out-of-distribution Detection
- COSTARR: Consolidated Open Set Technique with Attenuation for Robust Recognition 引用了 Energy-based Out-of-distribution Detection
- Activation Matters: Test-time Activated Negative Labels for OOD Detection with Vision-Language Models 引用了 Energy-based Out-of-distribution Detection
引用它的顶会 Paper9
- OOD-Barrier: Build a Middle-Barrier for Open-Set Single-Image Test Time Adaptation via Vision Language ModelsBoyang Peng, Sanqing Qu, Tianpei Zou, Fan Lu 等NeurIPS 2025 · 4 次引用
- Activation Matters: Test-time Activated Negative Labels for OOD Detection with Vision-Language ModelsYabin Zhang, Maya Varma, Yunhe Gao, Jean-Benoit Delbrouck 等CVPR 2026 · 2 次引用
- Back to Source: Open-Set Continual Test-Time Adaptation via Domain CompensationYingkai Yang, Chaoqi Chen, Hui HuangCVPR 2026 · 1 次引用
- DIsoN: Decentralized Isolation Networks for Out-of-Distribution Detection in Medical ImagingFelix Wagner, Pramit Saha, Harry Anthony, J. Alison Noble 等NeurIPS 2025 · 1 次引用
- COSTARR: Consolidated Open Set Technique with Attenuation for Robust RecognitionRyan Rabinowitz, Steve Cruz, Walter J. Scheirer, Terrance E. BoultICCV 2025 · 1 次引用
它引用的 Paper7
- 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 次引用
- Tent: Fully Test-Time Adaptation by Entropy MinimizationDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen 等ICLR 2021 · 1,731 次引用
- Test-Time Training with Self-Supervision for Generalization under Distribution ShiftsYu Sun, Xiaolong Wang, Zhuang Liu, John Miller 等ICML 2020 · 1,220 次引用
- Scalable Penalized Regression for Noise Detection in Learning with Noisy LabelsYikai Wang, Xinwei Sun, Yanwei FuCVPR 2022 · 37 次引用
相关 Paper
- Meta OOD Learning For Continuously Adaptive OOD DetectionXinheng Wu, Jie Lu, Zhen Fang, Guangquan ZhangICCV 2023 · 15 次引用
- Neural Mean Discrepancy for Efficient Out-of-Distribution DetectionXin Dong, Junfeng Guo, Ang Li, Wei-Te Ting 等CVPR 2022 · 40 次引用
- ReAct: Out-of-distribution Detection With Rectified ActivationsYiyou Sun, Chuan Guo, Yixuan LiNeurIPS 2021 · 733 次引用
- Towards neural networks that provably know when they don't knowAlexander Meinke, Matthias HeinICLR 2020 · 151 次引用
- OODD: Test-time Out-of-Distribution Detection with Dynamic DictionaryYifeng Yang, Lin Zhu, Zewen Sun, Hengyu Liu 等CVPR 2025
