arXiv:2604.15756cs.CLcs.CV2026-04中稿 · CVPR被引 1

无需外部标签,动态学习测试数据中的异常语义,提升视觉语言模型的泛化检测能力。

TTL: Test-time Textual Learning for OOD Detection with Pretrained Vision-Language Models

论文配图:TTL: Test-time Textual Learning for OOD Detection with Pretrained Vision-Language Models
图 1 · 摘自论文原文
  • 通过伪标签自适应更新可学习提示,从无标签测试数据中动态学习异常语义
  • 在9个外部数据集上均超越现有方法,实现当前最优的分布外检测性能
  • 适合需要实时适应新异常场景的工业级视觉系统部署

视觉语言模型(如CLIP)通过对齐视觉与文本表征,具备较强的分布外(OOD)检测能力。近年来基于CLIP的测试时自适应方法通过引入外部OOD标签进一步提升性能,但这些标签数量有限且固定,难以覆盖真实场景中开放、动态演化的异常语义空间。为此,我们提出测试时文本学习(TTL)框架,无需依赖外部标签,即可从无标签测试流中动态学习OOD文本语义。TTL利用伪标签样本更新可学习提示以捕捉新兴的异常知识,并设计一种异常知识净化策略,筛选可靠样本进行适应并抑制噪声。同时,TTL维护一个高质量的异常文本知识库,用于跨批次的稳定得分校准。在两个标准基准和九个外部数据集上的大量实验表明,TTL始终达到当前最优性能,验证了文本自适应在鲁棒测试时OOD检测中的价值。代码已开源。

原文摘要 · Abstract (English)

Vision-language models (VLMs) such as CLIP exhibit strong Out-of-distribution (OOD) detection capabilities by aligning visual and textual representations. Recent CLIP-based test-time adaptation methods further improve detection performance by incorporating external OOD labels. However, such labels are finite and fixed, while the real OOD semantic space is inherently open-ended. Consequently, fixed labels fail to represent the diverse and evolving OOD semantics encountered in test streams. To address this limitation, we introduce Test-time Textual Learning (TTL), a framework that dynamically learns OOD textual semantics from unlabeled test streams, without relying on external OOD labels. TTL updates learnable prompts using pseudo-labeled test samples to capture emerging OOD knowledge. To suppress noise introduced by pseudo-labels, we introduce an OOD knowledge purification strategy that selects reliable OOD samples for adaptation while suppressing noise. In addition, TTL maintains an OOD Textual Knowledge Bank that stores high-quality textual features, providing stable score calibration across batches. Extensive experiments on two standard benchmarks with nine OOD datasets demonstrate that TTL consistently achieves state-of-the-art performance, highlighting the value of textual adaptation for robust test-time OOD detection. Our code is available at https://github.com/figec/TTL.

OOD检测视觉语言模型测试时自适应伪标签

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