arXiv:2510.20134cs.CV2025-10NeurIPS被引 6

通过分析模型输出的逻辑值分布,提升异常样本检测精度。

Revisiting Logit Distributions for Reliable Out-of-Distribution Detection

  • 利用最大逻辑值与其余逻辑值的差距作为判别依据
  • 在多个数据集上达到当前最优检测效果
  • 无需训练即可自动筛选关键逻辑值,适合快速部署

开放世界中,模型对分布外(OOD)样本的检测对可靠性至关重要。尽管后处理方法因高效易部署而受青睐,但现有方法常未能充分挖掘模型输出空间中的丰富信息。本文提出LogitGap,一种新型后处理OOD检测方法,通过显式利用最大逻辑值与其余逻辑值之间的关系,增强分布内(ID)与分布外样本的可分性。为进一步提升性能,我们引入一种无需训练的策略,自动识别最具判别力的逻辑值子集用于打分。理论分析与实验证明该方法有效。在视觉-语言及纯视觉模型上广泛测试表明,LogitGap在多种场景与基准下均持续达到领先性能。代码已开源。

原文摘要 · Abstract (English)

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.

异常检测深度学习模型可靠性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。