Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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.

Jinlun Ye, Jiang Liao, Runhe Lai, Xinhua Lu, Jiaxin Zhuang, Zhiyong Gan, Ruixuan Wang• 2026

Related benchmarks

TaskDatasetResultRank
OOD DetectionImageNet-1k ID Average OOD
AUROC0.9729
92
OOD DetectioniNaturalist (OOD) / ImageNet-1k (ID) 1.0 (test)
FPR950.42
90
OOD DetectionImageNet SUN
FPR@957.18
70
Out-of-Distribution DetectionImageNet Far-OOD
AUROC98.5
58
OOD DetectionImageNet-1k (ID) vs Places (OOD) 1.0 (test)
AUROC96.22
49
Out-of-Distribution DetectionCIFAR 10 (Near OOD)
AUROC93.6
44
Out-of-Distribution DetectionCIFAR 100 Near OOD
AUROC82.33
38
Out-of-Distribution DetectionOpenOOD ImageNet-1k ID Far-OOD
AUROC97.05
30
OOD DetectionTexture OOD ImageNet-1k ID (test)
FPR@9526.39
27
Out-of-Distribution DetectionImageNet-1k Near-OOD
AUROC83.33
23
Showing 10 of 14 rows

Other info

Follow for update