SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.03359 · NeurIPS · 2024

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

Bo Han, Jianing Zhu, Jiangchao Yao, Geng Yu

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 13 functions out of this paper's own repositories and ran 5 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
tmlr-group/SCT canonical 5 of 13
FunctionStatusWhere it lives
basic_clean Ran tmlr-group/SCT/clip_w_local/simple_tokenizer.py
pointer only (licence: NONE) · get_code("98f385d847636a3e")
fpr_and_fdr_at_recall Ran tmlr-group/SCT/utils/detection_util.py
pointer only (licence: NONE) · get_code("3853ecdb6fc74451")
get_pairs Ran tmlr-group/SCT/clip_w_local/simple_tokenizer.py
pointer only (licence: NONE) · get_code("d919ae32e5e4e616")
stable_cumsum Ran tmlr-group/SCT/utils/detection_util.py
pointer only (licence: NONE) · get_code("d4acb3120a027622")
whitespace_clean Ran tmlr-group/SCT/clip_w_local/simple_tokenizer.py
pointer only (licence: NONE) · get_code("9542161e9640b858")
build_model Not yet run tmlr-group/SCT/clip_w_local/model.py
pointer only (licence: NONE) · get_code("dbbf313e1d3a69ba")
class_prior Not yet run tmlr-group/SCT/utils/loss_util.py
pointer only (licence: NONE) · get_code("efa941da0bce2a64")
entropy_select_topk Not yet run tmlr-group/SCT/trainers/sct.py
pointer only (licence: NONE) · get_code("80167249a79bbdee")
entropy_select_topk Not yet run tmlr-group/SCT/trainers/locoop.py
pointer only (licence: NONE) · get_code("65319c2dbd4ac5e8")
generate_compl_labels Not yet run tmlr-group/SCT/utils/loss_util.py
pointer only (licence: NONE) · get_code("ae9af00449c026cb")
get_measures Not yet run tmlr-group/SCT/utils/detection_util.py
pointer only (licence: NONE) · get_code("24570af601666d85")
load Not yet run tmlr-group/SCT/clip_w_local/clip.py
pointer only (licence: NONE) · get_code("fbf8c0143d9c48e3")
prepare_train_loaders Not yet run tmlr-group/SCT/utils/loss_util.py
pointer only (licence: NONE) · get_code("022975ea1eca0e30")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 at: https://github.com/tmlr-group/SCT.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2411.03359")
get_code_for_paper("2411.03359")
have("2411.03359")

Connect an agent — have() is free.