arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.26661cs.CVcs.AI
收藏

在预训练视觉语言模型的后验分布外检测中尊重模态差距

Respecting Modality Gap in Post-hoc Out-of-distribution Detection with Pre-trained Vision-Language Models

The University of Queensland(昆士兰大学);University of Technology Sydney(悉尼科技大学)

Yuanwei Hu, Bo Peng, Yadan Luo, Zhen Fang, Ling Chen, Jie Lu

AI总结:

针对预训练视觉语言模型在后验分布外检测中文本原型与视觉原型存在模态差距的问题,提出在线伪监督框架直接在视觉特征空间学习类原型,实现新最优性能。

摘要:

分布外(OOD)检测已成为一种流行的技术,通过识别来自未知类别的意外输入来增强机器学习模型的可靠性。预训练视觉语言模型(VLM)的最新进展使得无需访问分布内(ID)训练数据即可进行零样本OOD检测;在这种设置下,现有方法通常将类名的文本嵌入视为类原型。在本文中,我们通过理论证明现成的文本原型通常与最优视觉原型不对齐,从而产生无法通过提示工程单独消除的内在模态差距,来挑战广泛采用的文本即原型范式。为了在后验约束下缓解这一差距,本文提出了一种在线伪监督框架,该框架使用未标记的测试时数据流和预训练VLM的软预测,直接在视觉特征空间中学习类原型。我们为在线优化过程的收敛性提供了理论保证。大量实验经验证明,我们的方法在各种OOD检测设置中达到了新的最优水平。

英文摘要:

Out-of-distribution (OOD) detection has emerged as a popular technique to enhance the reliability of machine learning models by identifying unexpected inputs from unknown classes. Recent progress in pre-trained vision-language models (VLMs) has enabled zero-shot OOD detection without access to in-distribution (ID) training data; in this setting, existing methods commonly treat text embeddings of class names as class prototypes. In this paper, we challenge the widely adopted text-as-prototype paradigm by theoretically showing that off-the-shelf textual prototypes are generally misaligned with the optimal visual prototypes, yielding an intrinsic modality gap that cannot be eliminated by prompt engineering alone. To mitigate this gap under the post-hoc constraint, this paper presents an online pseudo-supervised framework that directly learns class prototypes in the visual feature space using unlabeled test-time data streams and soft predictions from the pre-trained VLMs. We provide theoretical guarantees for the convergence of the online optimization procedure. Extensive experiments empirically demonstrate that our method achieves a new state of the art across a variety of OOD detection setups.

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

↑