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

深海之谜:中间表示在分布外检测中的作用

Mysteries of the Deep: Role of Intermediate Representations in Out of Distribution Detection

Australian Institute for Machine Learning, University of Adelaide(阿德莱德大学澳大利亚机器学习研究所);Idiap Research Institute(伊迪亚普研究所);Monash University(莫纳什大学);Naval Group(海军集团)

I. M. De la Jara, C. Rodriguez-Opazo, D. Teney, D. Ranasinghe, E. Abbasnejad

AI总结:

本文研究预训练模型中间层表示对 OOD 检测的价值,提出无需 OOD 数据和训练的基于熵的层选择准则,显著提升近、远 OOD 检测性能。

摘要:

分布外(OOD)检测对于在真实环境中可靠部署机器学习模型至关重要。然而,大多数方法将大型预训练模型视为单一整体的编码器,并且仅依赖其最后一层表示进行检测。我们对这一固有观念提出挑战。我们揭示,预训练模型的中间层由残差连接塑造,而残差连接会微妙地变换输入投影,这些中间层能够编码异常丰富且多样的信号,用于检测分布偏移。重要的是,为了利用跨层的潜在表示多样性,我们引入了一种基于熵的准则,以便在无需训练的设置下自动识别提供最互补信息的层,并且不需要访问 OOD 数据。我们表明,与跨各种模型架构和训练目标的最先进免训练方法相比,有选择地融合这些中间表示,可在远 OOD 基准上将 OOD 检测准确率最高提升 10%,在近 OOD 基准上提升超过 7%。我们的发现为 OOD 检测研究揭示了一条新途径,并阐明了各种训练目标和模型架构对基于置信度的 OOD 检测方法的影响。

英文摘要:

Out-of-distribution (OOD) detection is essential for reliably deploying machine learning models in the wild. Yet, most methods treat large pre-trained models as monolithic encoders and rely solely on their final-layer representations for detection. We challenge this wisdom. We reveal the \textit{intermediate layers} of pre-trained models, shaped by residual connections that subtly transform input projections, \textit{can} encode \textit{surprisingly rich and diverse signals} for detecting distributional shifts. Importantly, to exploit latent representation diversity across layers, we introduce an entropy-based criterion to \textit{automatically} identify layers offering the most complementary information in a training-free setting -- \textit{without access to OOD data}. We show that selectively incorporating these intermediate representations can increase the accuracy of OOD detection by up to \textbf{$10\%$} in far-OOD and over \textbf{$7\%$} in near-OOD benchmarks compared to state-of-the-art training-free methods across various model architectures and training objectives. Our findings reveal a new avenue for OOD detection research and uncover the impact of various training objectives and model architectures on confidence-based OOD detection methods.

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

↑