Auxiliary Prompt Tuning of Vision-Language Models for Few-Shot Out-of-Distribution Detection

Wenjun Miao, Guansong Pang, Zi-Hang Wang, Jing-Yi Zheng, Xiaolong Bai
1/1/2025
lora-peft-merging

No official code found. Best implementation: mala-lab/APT (5 stars, Python, last commit 2025-10-15).

Abstract

Recent advancements in CLIP-based out-of-distribution (OOD) detection have shown promising results via regularization on prompt tuning, leveraging background features extracted from a few in-distribution (ID) samples as proxies for OOD features.However, these methods suffer from an inherent limitation: a lack of diversity in the extracted OOD features from the few-shot ID data.To address this issue, we propose to leverage external datasets as auxiliary outlier data (i.e., pseudo OOD samples) to extract rich, diverse OOD features, with the features from not only background regions but also foreground object regions, thereby supporting more discriminative prompt tuning for OOD detection. We further introduce Auxiliary Prompt Tuning (APT), a novel framework that can be used as a plug-in module to enable existing prompt tuning-based methods to utilize the auxiliary data for more accurate OOD detection.There are two key challenges of utilizing those auxiliary data in prompt tuning, including I) foreground-background decomposition of unlabeled auxiliary data with diverse outlying objects and II) optimization of foreground OOD features.

Show full abstract

APT tackles challenge I with an adaptive logit-based Kullback-Leibler divergence method and challenge II by constructing foreground-background pairs for each foreground region to enable effective exploitation of foreground OOD features. Extensive experiments on standard and hard OOD benchmarks show that APT achieves state-of-the-art performance, obtaining significant improvements in challenging scenarios, e.g., hard OOD and 1-shot detection.

Semantic Scholar

Code Implementations(1)

mala-lab/APTCommunity58%

[ICCV 2025] Official implementation for "Auxiliary Prompt Tuning of Vision-Language Models for Few-Shot Out-of-Distribution Detection"

53Python, ShellJul 14, 20251 years ago
ai-safetylarge-vision-language-modelsout-of-distribution-detectionprompt-tuning

Similar Papers

Cite this paper

@article{miao2025auxiliary,
  title  = {Auxiliary Prompt Tuning of Vision-Language Models for Few-Shot Out-of-Distribution Detection},
  author = {Wenjun Miao and Guansong Pang and Zi-Hang Wang and Jing-Yi Zheng and Xiaolong Bai},
  year   = {2025},
  url    = {https://ink.library.smu.edu.sg/sis_research/10933},
  journal = {IEEE International Conference on Computer Vision}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/37ad77d88ef648f328ec5282c617404811d97a4b.svg)](https://codeofpaper.com/paper/37ad77d88ef648f328ec5282c617404811d97a4b)

Discussion