Papers › Enhancing Outlier Knowledge for Few-Shot Out-of-Distribution Detection with Extensible...

Enhancing Outlier Knowledge for Few-Shot Out-of-Distribution Detection with Extensible Local Prompts

7 Sep 2024arXiv:2409.04796archive 2025-07-28

Fanhu Zeng, Zhen Cheng, Fei Zhu, Xu-Yao Zhang

Out-of-Distribution (OOD) detection, aiming to distinguish outliers from known categories, has gained prominence in practical scenarios. Recently, the advent of vision-language models (VLM) has heightened interest in enhancing OOD detection for VLM through few-shot tuning. However, existing methods mainly focus on optimizing global prompts, ignoring refined utilization of local information with regard to outliers. Motivated by this, we freeze global prompts and introduce a novel coarse-to-fine tuning paradigm to emphasize regional enhancement with local prompts. Our method comprises two integral components: global prompt guided negative augmentation and local prompt enhanced regional regularization. The former utilizes frozen, coarse global prompts as guiding cues to incorporate negative augmentation, thereby leveraging local outlier knowledge. The latter employs trainable local prompts and a regional regularization to capture local information effectively, aiding in outlier identification. We also propose regional-related metric to empower the enrichment of OOD detection. Moreover, since our approach explores enhancing local prompts only, it can be seamlessly integrated with trained global prompts during inference to boost the performance. Comprehensive experiments demonstrate the effectiveness and potential of our method. Notably, our method reduces average FPR95 by 5.17% against state-of-the-art method in 4-shot tuning on challenging ImageNet-1k dataset, even outperforming 16-shot results of previous methods.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2409.04796")

Code

Syntology Ran 10 of 13 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 1 ran · fixture could not drive it; 5 ran with no contract checked.

By repository: found in paper text by Syntology: 13 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

AuroraZengfh/Local-Prompt found in paper text by Syntology report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 10 ran; 1 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
1ran · fixture could not drive it
5ran
3unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from AuroraZengfh/Local-Prompt. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

basic_clean AuroraZengfh/Local-Prompt/clip_w_local/simple_tokenizer.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 98f385d847636a3e · report
fpr_and_fdr_at_recall AuroraZengfh/Local-Prompt/utils/detection_util.py found in paper text by Syntology ran · fixture could not drive it fingerprinted no licence file found · pointer only · 3853ecdb6fc74451 · report
getAttMap AuroraZengfh/Local-Prompt/utils/grad_cam.py found in paper text by Syntology ran no licence file found · pointer only · c28216e5027f12a2 · report
get_pairs AuroraZengfh/Local-Prompt/clip_w_local/simple_tokenizer.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · d919ae32e5e4e616 · report
load_image AuroraZengfh/Local-Prompt/utils/grad_cam.py found in paper text by Syntology ran no licence file found · pointer only · 7458439441af1cea · report
normalize AuroraZengfh/Local-Prompt/utils/grad_cam.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 850654253698ad7e · report
set_ood_loader_ImageNet AuroraZengfh/Local-Prompt/utils/train_eval_util.py found in paper text by Syntology ran no licence file found · pointer only · fe4e39f3658c298b · report
set_val_loader AuroraZengfh/Local-Prompt/utils/train_eval_util.py found in paper text by Syntology ran no licence file found · pointer only · 1549a4e42b6f3cb3 · report
stable_cumsum AuroraZengfh/Local-Prompt/utils/detection_util.py found in paper text by Syntology ran · honoured contract fingerprinted no licence file found · pointer only · d4acb3120a027622 · report
whitespace_clean AuroraZengfh/Local-Prompt/clip_w_local/simple_tokenizer.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 9542161e9640b858 · report
build_model AuroraZengfh/Local-Prompt/clip_w_local/model.py found in paper text by Syntology unverified no licence file found · pointer only · dbbf313e1d3a69ba · report
get_measures AuroraZengfh/Local-Prompt/utils/detection_util.py found in paper text by Syntology unverified no licence file found · pointer only · 24570af601666d85 · report
load AuroraZengfh/Local-Prompt/clip_w_local/clip.py found in paper text by Syntology unverified no licence file found · pointer only · fbf8c0143d9c48e3 · report

Tasks

Out of Distribution (OOD) DetectionOut-of-Distribution Detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections