SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.15914 · ICLR · 2024

Overcoming the Pitfalls of Vision-Language Model Finetuning for OOD Generalization

Hanlin Goh, Josh Susskind, Chen Huang, Yuhang Zang

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 5 functions out of this paper's own repositories and ran 3 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
apple/ml-ogen canonical 3 of 5
FunctionStatusWhere it lives
basic_clean Ran apple/ml-ogen/clip/simple_tokenizer.py
pointer only (licence: NONE) · get_code("98f385d847636a3e")
get_pairs Ran apple/ml-ogen/clip/simple_tokenizer.py
pointer only (licence: NONE) · get_code("d919ae32e5e4e616")
whitespace_clean Ran apple/ml-ogen/clip/simple_tokenizer.py
pointer only (licence: NONE) · get_code("9542161e9640b858")
build_model Not yet run apple/ml-ogen/clip/model.py
pointer only (licence: NOASSERTION) · get_code("1ca6497acf4d9e2a")
load Not yet run apple/ml-ogen/clip/clip.py
pointer only (licence: NONE) · get_code("fbf8c0143d9c48e3")

Repositories linked to this paper

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

Abstract

Existing vision-language models exhibit strong generalization on a variety of visual domains and tasks. However, such models mainly perform zero-shot recognition in a closed-set manner, and thus struggle to handle open-domain visual concepts by design. There are recent finetuning methods, such as prompt learning, that not only study the discrimination between in-distribution (ID) and out-ofdistribution (OOD) samples, but also show some improvements in both ID and OOD accuracies. In this paper, we first demonstrate that vision-language models, after long enough finetuning but without proper regularization, tend to overfit the known classes in the given dataset, with degraded performance on unknown classes. Then we propose a novel approach OGEN to address this pitfall, with the main focus on improving the OOD GENeralization of finetuned models. Specifically, a class-conditional feature generator is introduced to synthesize OOD features using just the class name of any unknown class. Such synthesized features will provide useful knowledge about unknowns and help regularize the decision boundary between ID and OOD data when optimized jointly. Equally important is our adaptive self-distillation mechanism to regularize our feature generation model during joint optimization, i.e., adaptively transferring knowledge between model states to further prevent overfitting. Experiments validate that our method yields convincing gains in OOD generalization performance in different settings. Code: https://github.com/apple/ml-ogen.

For agents

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

get_harvested_code_for_paper("2401.15914")
get_code_for_paper("2401.15914")
have("2401.15914")

Connect an agent — have() is free.