CLIP-driven Outliers Synthesis for few-shot OOD detection

Hao Sun, Rundong He, Zhongyi Han, Zhicong Lin, Yongshun Gong +1 more
3/30/2024
cs.CVcs.LG

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Few-shot OOD detection focuses on recognizing out-of-distribution (OOD) images that belong to classes unseen during training, with the use of only a small number of labeled in-distribution (ID) images. Up to now, a mainstream strategy is based on large-scale vision-language models, such as CLIP. However, these methods overlook a crucial issue: the lack of reliable OOD supervision information, which can lead to biased boundaries between in-distribution (ID) and OOD. To tackle this problem, we propose CLIP-driven Outliers Synthesis~(CLIP-OS). Firstly, CLIP-OS enhances patch-level features' perception by newly proposed patch uniform convolution, and adaptively obtains the proportion of ID-relevant information by employing CLIP-surgery-discrepancy, thus achieving separation between ID-relevant and ID-irrelevant. Next, CLIP-OS synthesizes reliable OOD data by mixing up ID-relevant features from different classes to provide OOD supervision information. Afterward, CLIP-OS leverages synthetic OOD samples by unknown-aware prompt learning to enhance the separability of ID and OOD. Extensive experiments across multiple benchmarks demonstrate that CLIP-OS achieves superior few-shot OOD detection capability.

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. 2 weaker matches are 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{sun2024clipdriven,
  title  = {CLIP-driven Outliers Synthesis for few-shot OOD detection},
  author = {Hao Sun and Rundong He and Zhongyi Han and Zhicong Lin and Yongshun Gong and Yilong Yin},
  year   = {2024},
  eprint = {2404.00323},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.00323v1}
}

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

Discussion