Mingsheng Long, Jianmin Wang, Yang Shu, Ximei Wang, Xingzhuo Guo, Jialong Wu
We lifted 1 functions out of this paper's own repositories and ran 1 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.
| Repository | Role | Ran |
|---|---|---|
| thuml/clipood | canonical | 1 of 1 |
| Function | Status | Where it lives |
|---|---|---|
| GeneralMovingAverage | Ran | thuml/clipood/engine.py code served (permissive licence) · get_code("44d062f4cd96eba4") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Out-of-distribution (OOD) generalization, where the model needs to handle distribution shifts from training, is a major challenge of machine learning. Contrastive language-image pre-training (CLIP) models have shown impressive zero-shot ability, but the further adaptation of CLIP on downstream tasks undesirably degrades OOD performances. This paper aims at generalizing CLIP to out-ofdistribution test data on downstream tasks. We propose CLIPood, a fine-tuning method that can adapt CLIP models to OOD situations where both domain shifts and open classes may occur on the unseen test data. To exploit the semantic relations between classes from the text modality, CLIPood introduces a new training objective, margin metric softmax (MMS), with class adaptive margins for fine-tuning. To incorporate both pre-trained zeroshot model and fine-tuned task-adaptive model, CLIPood leverages a new optimization strategy, Beta moving average (BMA), to maintain a temporal ensemble weighted by Beta distribution. Experiments on diverse datasets with different OOD scenarios show that CLIPood consistently outperforms existing generalization techniques.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2302.00864")
get_code_for_paper("2302.00864")
have("2302.00864")
Connect an agent — have() is free.