Deep learning models are increasingly deployed in safety-critical applications, where reliable out-of-distribution (OOD) detection is essential to ensure robustness. Existing methods predominantly rely on the penultimate-layer activations of neural networks, assuming they encapsulate the most informative in-distribution (ID) representations. In this work, we revisit this assumption to show that intermediate layers encode equally rich and discriminative information for OOD detection. Based on this observation, we propose a simple yet effective model-agnostic approach that leverages internal representations across multiple layers. Our scheme aggregates features from successive convolutional blocks, computes class-wise mean embeddings, and applies L_2 normalization to form compact ID prototypes capturing class semantics. During inference, cosine similarity between test features and these prototypes serves as an OOD score--ID samples exhibit strong affinity to at least one prototype, whereas OOD samples remain uniformly distant. Extensive experiments on state-of-the-art OOD benchmarks across diverse architectures demonstrate that our approach delivers robust, architecture-agnostic performance and strong generalization for image classification. Notably, it improves AUROC by up to 4.41% and reduces FPR by 13.58%, highlighting multi-layer feature aggregation as a powerful yet underexplored signal for OOD detection, challenging the dominance of penultimate-layer-based methods. Our code is available at: https://github.com/sgchr273/cosine-layers.git.
SeNeDiF-OOD: Semantic Nested Dichotomy Fusion for Out-of-Distribution Detection Methodology in Open-World Classification. A Case Study on Monument Style Classification
DynProto: Dynamic Prototype Evolution for Out-of-Distribution Detection
Sun Yat-sen University(中山大学);Peng Cheng Laboratory(鹏城实验室);University of Nottingham Malaysia(诺丁汉马来西亚大学);Hong Kong University of Science and Technology(香港科学与技术大学);Key Laboratory of Machine Intelligence and Advanced Computing(智能与先进计算关键实验室)
Prototype-based Optimal Transport for Out-of-Distribution Detection
School of Biomedical Engineering, University of Science and Technology of China(中国科学技术大学生物医学工程学院);Data Darkness Lab, MIRACLE Center, Suzhou Institute for Advanced Research, USTC(中国科学技术大学苏州高等研究院MIRACLE中心Data Darkness实验室)
Mila - Quebec AI Institute(魁北克AI研究所);DIRO, Université de Montréal(蒙特利尔大学计算研究所);Université Laval(拉瓦尔大学);IID(智能与数据研究所);DEEL, IRT Saint Exupéry(DEEL,圣埃克苏佩里研究所);CIFAR AI Chair(CIFAR人工智能席位)
How to Achieve Prototypical Birth and Death for OOD Detection?
School of Computer and Electronic Information, Nanjing Normal University(南京师范大学计算机与电子信息学院);School of Artificial Intelligence and Information Technology, Nanjing University of Chinese Medicine(南京中医药大学人工智能与信息技术学院);School of Cyber Science and Technology, Shenzhen Campus of Sun Yat-sen University, Shenzhen(中山大学深圳校区网络安全科学与技术学院);Tohoku University(东北大学)
Zero-Shot Out-of-Distribution Detection with Outlier Label Exposure
Australian Institute for Machine Learning(澳大利亚机器学习研究所);The University of Adelaide(阿德莱德大学);School of Computing and Information Systems(计算与信息系统学院);Singapore Management University(新加坡管理大学)
Your Data Is Not Perfect: Towards Cross-Domain Out-of-Distribution Detection in Class-Imbalanced Data
College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算学院和数据科学学院);KINDI Computing Research Center, College of Engineering, Qatar University, Doha(卡塔尔大学工程学院KINDI计算研究中心,多哈)
Mixture of Gaussian-distributed Prototypes with Generative Modelling for Interpretable and Trustworthy Image Recognition
Australian Institute for Machine Learning (AIML), University of Adelaide(阿德莱德大学澳大利亚机器学习研究所);Stanford University(斯坦福大学);Cornell University(康奈尔大学);Cornell Tech(康奈尔理工学院);University of Oxford(牛津大学);St. Vincent’s Institute of Medical Research(圣文森特医学研究所);Melbourne Integrative Genomics, The University of Melbourne(墨尔本大学墨尔本整合基因组学中心);St Vincent’s Hospital Melbourne(墨尔本圣文森特医院);Centre for Vision, Speech and Signal Processing (CVSSP), University of Surrey(萨里大学视觉、语音与信号处理中心);The University of Adelaide(阿德莱德大学)
Hierarchical Vision-Language Learning for Medical Out-of-Distribution Detection
Peng Cheng Laboratory(鹏城实验室);Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));University of Nottingham Malaysia(诺丁汉大学(马来西亚));Key Laboratory of Machine Intelligence and Advanced Computing, MOE(机器智能与高级计算重点实验室)
Unified Classification and Rejection: A One-versus-All Framework
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
本文提出一对其余统一框架,将 K 类开放集识别建模为仅用已知类训练的 (K+1) 类问题,并结合 OVA 与交叉熵损失,在单一分类器上兼顾闭集分类、OOD 检测和误分类检测。
Enclosing Prototypical Variational Autoencoder for Explainable Out-of-Distribution Detection
Digitale Schiene Deutschland, DB InfraGO AG(Digitale Schiene Deutschland,DB InfraGO AG);Communication Systems Group, Technische Universität Berlin(通信系统组,技术大学柏林)
TagOOD: A Novel Approach to Out-of-Distribution Detection via Vision-Language Representations and Class Center Learning
Shanghai Engineering Research Center of AI & Robotics(上海人工智能与机器人工程研究中心);Academy for Engineering & Technology, Fudan University(复旦大学工程与技术学院);Shanghai Key Lab of Intelligent Information Processing(上海智能信息处理重点实验室);School of Computer Science, Fudan University(复旦大学计算机科学学院)
Jeonbuk National University(全北国立大学);Shanghai University of Engineering Science(上海工程技术大学);The Hong Kong University of Science and Technology(香港科技大学);Mokpo National University(木浦国立大学)
Quantum Conflict Measurement in Decision Making for Out-of-Distribution Detection
College of Information Engineering, Shanghai Maritime University(上海海洋大学信息工程学院);Information Processing and Systems Department, ONERA—The French Aerospace Lab(法国航空航天实验室信息处理与系统部);Social Robotics Laboratory, Department of Electrical and Computer Engineering, Interactive Digital Media Institute, National University of Singapore(新加坡国立大学电气与计算机工程系社会机器人实验室);Institute for Future, Qingdao University(青岛大学未来研究院)
NeuralOOD: Improving Out-of-Distribution Generalization Performance with Brain-machine Fusion Learning Framework
Faculty of Education, Capital Normal University(首都师范大学教育学院);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Key Laboratory of Brain Cognition and Brain-inspired Intelligence Technology, Chinese Academy of Sciences(中国科学院脑认知与类脑智能技术重点实验室);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
SHRUG-FM: Reliability-Aware Foundation Models for Earth Observation
Universitat de València(瓦伦西亚大学);Wageningen University & Research(瓦赫宁根大学与研究所);Delft University of Technology(代尔夫特理工大学);European Space Agency(欧洲航天局);Heidelberg University(海德堡大学);Ghent University(根特大学);University of Oxford(牛津大学);Google Research(谷歌研究)
On the Robustness of Open-World Test-Time Training: Self-Training with Dynamic Prototype Expansion
South China University of Technology(华南理工大学);Institute for Infocomm Research (I2R), Agency for Science, Technology and Research (A*STAR)(新加坡科技研究局(A*STAR)信息通信研究院(I2R))
Exploiting Vision Language Model for Training-Free 3D Point Cloud OOD Detection via Graph Score Propagation
School of Computing and Artificial Intelligence,Southwest Jiaotong University(计算机与人工智能学院,西南交通大学);South China University of Technology(华南理工大学);Institute for infocomm research, A*STAR(信息通信研究所,A*STAR)
Additive Causal Construction for Transferable and Reconfigurable Cross-System Learning in Multi-Source Image Fusion
School of Life Science and Technology, University of Electronic Science and Technology of China(电子科技大学生命科学与技术学院);School of Health and Wellbeing, University of Glasgow(格拉斯哥大学健康与幸福学院);Department of Organ Transplantation, Sichuan Provincial People’s Hospital, University of Electronic Science and Technology of China(电子科技大学附属四川省人民医院器官移植科);School of Information and Software Engineering, University of Electronic Science and Technology of China(电子科技大学信息与软件工程学院);Department of Radiology, Huzhou Maternity & Child Health Care Hospital(湖州市妇幼保健院放射科);Hepatological Surgery Department, Huzhou Central Hospital, Fifth School of Clinical Medicine of Zhejiang Chinese Medical University(浙江中医药大学附属湖州中医院第五临床医学院湖州市中心医院肝外科)