Enhancing Few-Shot Out-of-Distribution Detection via the Refinement of Foreground and Background

Tianyu Li, Songyue Cai, Zongqian Wu, Ping Hu, Xiaofeng Zhu
1/21/2026
cs.CV

Official code: Lounwb/FoBoR (1 star, last commit 2026-02-06).

Abstract

CLIP-based foreground-background (FG-BG) decomposition methods have demonstrated remarkable effectiveness in improving few-shot out-of-distribution (OOD) detection performance. However, existing approaches still suffer from several limitations.

Show full abstract

For background regions obtained from decomposition, existing methods adopt a uniform suppression strategy for all patches, overlooking the varying contributions of different patches to the prediction. For foreground regions, existing methods fail to adequately consider that some local patches may exhibit appearance or semantic similarity to other classes, which may mislead the training process. To address these issues, we propose a new plug-and-play framework. This framework consists of three core components: (1) a Foreground-Background Decomposition module, which follows previous FG-BG methods to separate an image into foreground and background regions; (2) an Adaptive Background Suppression module, which adaptively weights patch classification entropy; and (3) a Confusable Foreground Rectification module, which identifies and rectifies confusable foreground patches. Extensive experimental results demonstrate that the proposed plug-and-play framework significantly improves the performance of existing FG-BG decomposition methods. Code is available at: https://github.com/lounwb/FoBoR.

View on arXivView PDF

Code Implementations(1)

Lounwb/FoBoROfficial100%

Official Implementation of Enhancing Few-Shot Out-of-Distribution Detection via the Refinement of Foreground and Background

10Jan 19, 20269 months ago

Similar Papers

Cite this paper

@article{li2026enhancing,
  title  = {Enhancing Few-Shot Out-of-Distribution Detection via the Refinement of Foreground and Background},
  author = {Tianyu Li and Songyue Cai and Zongqian Wu and Ping Hu and Xiaofeng Zhu},
  year   = {2026},
  eprint = {2601.15065},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.15065v1}
}

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

Discussion