Background Prompt for Few-Shot Out-of-Distribution Detection

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Cai, Songyue, Wu, Zongqian, Mo, Yujie, Peng, Liang, Hu, Ping, Shi, Xiaoshuang, Zhu, Xiaofeng
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909805937950720
author Cai, Songyue
Wu, Zongqian
Mo, Yujie
Peng, Liang
Hu, Ping
Shi, Xiaoshuang
Zhu, Xiaofeng
author_facet Cai, Songyue
Wu, Zongqian
Mo, Yujie
Peng, Liang
Hu, Ping
Shi, Xiaoshuang
Zhu, Xiaofeng
contents Existing foreground-background (FG-BG) decomposition methods for the few-shot out-of-distribution (FS-OOD) detection often suffer from low robustness due to over-reliance on the local class similarity and a fixed background patch extraction strategy. To address these challenges, we propose a new FG-BG decomposition framework, namely Mambo, for FS-OOD detection. Specifically, we propose to first learn a background prompt to obtain the local background similarity containing both the background and image semantic information, and then refine the local background similarity using the local class similarity. As a result, we use both the refined local background similarity and the local class similarity to conduct background extraction, reducing the dependence of the local class similarity in previous methods. Furthermore, we propose the patch self-calibrated tuning to consider the sample diversity to flexibly select numbers of background patches for different samples, and thus exploring the issue of fixed background extraction strategies in previous methods. Extensive experiments on real-world datasets demonstrate that our proposed Mambo achieves the best performance, compared to SOTA methods in terms of OOD detection and near OOD detection setting. The source code will be released at https://github.com/YuzunoKawori/Mambo.
format Preprint
id arxiv_https___arxiv_org_abs_2509_21055
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Background Prompt for Few-Shot Out-of-Distribution Detection
Cai, Songyue
Wu, Zongqian
Mo, Yujie
Peng, Liang
Hu, Ping
Shi, Xiaoshuang
Zhu, Xiaofeng
Computer Vision and Pattern Recognition
Existing foreground-background (FG-BG) decomposition methods for the few-shot out-of-distribution (FS-OOD) detection often suffer from low robustness due to over-reliance on the local class similarity and a fixed background patch extraction strategy. To address these challenges, we propose a new FG-BG decomposition framework, namely Mambo, for FS-OOD detection. Specifically, we propose to first learn a background prompt to obtain the local background similarity containing both the background and image semantic information, and then refine the local background similarity using the local class similarity. As a result, we use both the refined local background similarity and the local class similarity to conduct background extraction, reducing the dependence of the local class similarity in previous methods. Furthermore, we propose the patch self-calibrated tuning to consider the sample diversity to flexibly select numbers of background patches for different samples, and thus exploring the issue of fixed background extraction strategies in previous methods. Extensive experiments on real-world datasets demonstrate that our proposed Mambo achieves the best performance, compared to SOTA methods in terms of OOD detection and near OOD detection setting. The source code will be released at https://github.com/YuzunoKawori/Mambo.
title Background Prompt for Few-Shot Out-of-Distribution Detection
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2509.21055