arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.20134cs.CV
收藏

重新审视Logit分布以实现可靠的分布外检测

Revisiting Logit Distributions for Reliable Out-of-Distribution Detection

State Key Laboratory of AI Safety, Institute of Computing Technology, CAS, China(人工智能安全国家重点实验室,计算技术研究所,中国科学院,中国);University of Chinese Academy of Sciences (CAS), China(中国科学院大学(中国科学院))

Jiachen Liang, Ruibing Hou, Minyang Hu, Hong Chang, Shiguang Shan, Xilin Chen

AI总结:

本文提出LogitGap,一种利用最大logit与其余logit关系的事后分布外检测方法,通过无训练策略选择信息量最大的logit,在视觉-语言和视觉模型上达到最先进性能。

摘要:

分布外(OOD)检测对于确保深度学习模型在开放世界应用中的可靠性至关重要。尽管事后(post-hoc)方法因其高效性和易于部署而受到青睐,但现有方法往往未能充分利用模型logit空间中嵌入的丰富信息。在本文中,我们提出了LogitGap,一种新颖的事后OOD检测方法,该方法明确利用最大logit与其余logit之间的关系来增强分布内(ID)和OOD样本之间的可分离性。为了进一步提高其有效性,我们通过关注logit空间中更紧凑且信息量更大的子集来改进LogitGap。具体来说,我们引入了一种无需训练的策略,该策略自动识别用于评分的最具信息量的logit。我们提供了理论分析和实证证据来验证我们方法的有效性。在视觉-语言和仅视觉模型上的大量实验表明,LogitGap在各种OOD检测场景和基准测试中始终达到最先进的性能。代码可在https://github.com/GIT-LJc/LogitGap获取。

英文摘要:

Out-of-distribution (OOD) detection is critical for ensuring the reliability of deep learning models in open-world applications. While post-hoc methods are favored for their efficiency and ease of deployment, existing approaches often underexploit the rich information embedded in the model's logits space. In this paper, we propose LogitGap, a novel post-hoc OOD detection method that explicitly exploits the relationship between the maximum logit and the remaining logits to enhance the separability between in-distribution (ID) and OOD samples. To further improve its effectiveness, we refine LogitGap by focusing on a more compact and informative subset of the logit space. Specifically, we introduce a training-free strategy that automatically identifies the most informative logits for scoring. We provide both theoretical analysis and empirical evidence to validate the effectiveness of our approach. Extensive experiments on both vision-language and vision-only models demonstrate that LogitGap consistently achieves state-of-the-art performance across diverse OOD detection scenarios and benchmarks. Code is available at https://github.com/GIT-LJc/LogitGap.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑