Papers › Self-Calibrated Tuning of Vision-Language Models for Out-of-Distribution Detection

Self-Calibrated Tuning of Vision-Language Models for Out-of-Distribution Detection

5 Nov 2024arXiv:2411.03359archive 2025-07-28

Geng Yu, Jianing Zhu, Jiangchao Yao, Bo Han

Out-of-distribution (OOD) detection is crucial for deploying reliable machine learning models in open-world applications. Recent advances in CLIP-based OOD detection have shown promising results via regularizing prompt tuning with OOD features extracted from ID data. However, the irrelevant context mined from ID data can be spurious due to the inaccurate foreground-background decomposition, thus limiting the OOD detection performance. In this work, we propose a novel framework, namely, Self-Calibrated Tuning (SCT), to mitigate this problem for effective OOD detection with only the given few-shot ID data. Specifically, SCT introduces modulating factors respectively on the two components of the original learning objective. It adaptively directs the optimization process between the two tasks during training on data with different prediction uncertainty to calibrate the influence of OOD regularization, which is compatible with many prompt tuning based OOD detection methods. Extensive experiments and analyses have been conducted to characterize and demonstrate the effectiveness of the proposed SCT. The code is publicly available.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2411.03359")

Code

Syntology Ran 5 of 13 code samples harvested from 1 repository linked to this paper; 8 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.

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

tmlr-group/sct officialmentioned in paperpytorch 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; 5 ran; 1 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-25; 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
8unverified

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 tmlr-group/SCT. “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 tmlr-group/SCT/clip_w_local/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 98f385d847636a3e · report
fpr_and_fdr_at_recall tmlr-group/SCT/utils/detection_util.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 3853ecdb6fc74451 · report
get_pairs tmlr-group/SCT/clip_w_local/simple_tokenizer.py official repository ran · our draft was wrong no licence file found · pointer only · d919ae32e5e4e616 · report
stable_cumsum tmlr-group/SCT/utils/detection_util.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · d4acb3120a027622 · report
whitespace_clean tmlr-group/SCT/clip_w_local/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 9542161e9640b858 · report
build_model tmlr-group/SCT/clip_w_local/model.py official repository unverified no licence file found · pointer only · dbbf313e1d3a69ba · report
class_prior tmlr-group/SCT/utils/loss_util.py official repository unverified no licence file found · pointer only · efa941da0bce2a64 · report
entropy_select_topk tmlr-group/SCT/trainers/sct.py official repository unverified no licence file found · pointer only · 80167249a79bbdee · report
entropy_select_topk tmlr-group/SCT/trainers/locoop.py official repository unverified no licence file found · pointer only · 65319c2dbd4ac5e8 · report
generate_compl_labels tmlr-group/SCT/utils/loss_util.py official repository unverified no licence file found · pointer only · ae9af00449c026cb · report
get_measures tmlr-group/SCT/utils/detection_util.py official repository unverified no licence file found · pointer only · 24570af601666d85 · report
load tmlr-group/SCT/clip_w_local/clip.py official repository unverified no licence file found · pointer only · fbf8c0143d9c48e3 · report
prepare_train_loaders tmlr-group/SCT/utils/loss_util.py official repository unverified no licence file found · pointer only · 022975ea1eca0e30 · 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.

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