Anchor-based Robust Finetuning of Vision-Language Models

Jinwei Han, Zhiwen Lin, Zhongyi Sun, Yingguo Gao, Ke Yan +3 more
2/9/2026

No official code found. Best implementation: LixDemon/ARF (3 stars, Apache-2.0, last commit 2024-05-18).

Abstract

We aim at finetuning a vision-language model without hurting its out-of-distribution (OOD) generalization. We address two types of OOD generalization, i.e., i) domain shift such as natural to sketch images, and ii) zero-shot capability to recognize the category that was not contained in the finetune data. Arguably, the diminished OOD generalization after finetuning stems from the excessively simplified finetuning target, which only provides the class information, such as “a photo of a [CLASS]”. This is distinct from the process in that CLIP was pretrained, where there is abundant text supervision with rich semantic information. Therefore, we propose to compensate for the finetune process using auxiliary supervision with rich semantic information, which acts as anchors to preserve the OOD generalization. Specifically, two types of anchors are elaborated in our method, including i) text-compensated anchor which uses the images from the finetune set but enriches the text supervision from a pretrained captioner, ii) image-text-pair anchor which is retrieved from the dataset similar to pretraining data of CLIP according to the downstream task, associating with the original CLIP text with rich semantics. Those anchors are utilized as auxiliary semantic information to maintain the original feature space of CLIP, thereby preserving the OOD generalization capabilities. Comprehensive experiments demonstrate that our method achieves in-distribution performance akin to conventional finetuning while attaining new state-of-the-art results on domain shift and zero-shot learning benchmarks.

View on arXivView PDF

Code Implementations(1)

LixDemon/ARFCommunity66%
Apache-2.0

[CVPR 2024] Anchor-based Robust Finetuning of Vision-Language Models

30May 18, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{han2026anchorbased,
  title  = {Anchor-based Robust Finetuning of Vision-Language Models},
  author = {Jinwei Han and Zhiwen Lin and Zhongyi Sun and Yingguo Gao and Ke Yan and Shouhong Ding and Yuan Gao and Gui-Song Xia},
  year   = {2026},
  eprint = {2404.06244},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2404.06244},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.06244.svg)](https://codeofpaper.com/paper/2404.06244)

Discussion