Dual-Adapter: Training-free Dual Adaptation for Few-shot Out-of-Distribution Detection

Xinyi Chen, Yaohui Li, Haoxing Chen
5/25/2024
cs.CV

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

We study the problem of few-shot out-of-distribution (OOD) detection, which aims to detect OOD samples from unseen categories during inference time with only a few labeled in-domain (ID) samples. Existing methods mainly focus on training task-aware prompts for OOD detection. However, training on few-shot data may cause severe overfitting and textual prompts alone may not be enough for effective detection. To tackle these problems, we propose a prior-based Training-free Dual Adaptation method (Dual-Adapter) to detect OOD samples from both textual and visual perspectives. Specifically, Dual-Adapter first extracts the most significant channels as positive features and designates the remaining less relevant channels as negative features. Then, it constructs both a positive adapter and a negative adapter from a dual perspective, thereby better leveraging previously outlooked or interfering features in the training dataset. In this way, Dual-Adapter can inherit the advantages of CLIP not having to train, but also excels in distinguishing between ID and OOD samples. Extensive experimental results on four benchmark datasets demonstrate the superiority of Dual-Adapter.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2024dualadapter,
  title  = {Dual-Adapter: Training-free Dual Adaptation for Few-shot Out-of-Distribution Detection},
  author = {Xinyi Chen and Yaohui Li and Haoxing Chen},
  year   = {2024},
  eprint = {2405.16146},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.16146v1}
}

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/2405.16146.svg)](https://codeofpaper.com/paper/2405.16146)

Discussion