Cross-Modal Adapter for Vision-Language Retrieval

Haojun Jiang, Jianke Zhang, Rui Huang, Chunjiang Ge, Zanlin Ni +2 more
11/17/2022
cs.CVcs.AIcs.CL
lora-peft-merging

Official code: LeapLabTHU/Cross-Modal-Adapter (143 stars, Python, Apache-2.0, PyTorch, last commit 2025-08-17).

Abstract

Vision-language retrieval is an important multi-modal learning topic, where the goal is to retrieve the most relevant visual candidate for a given text query. Recently, pre-trained models, e.g., CLIP, show great potential on retrieval tasks.

Show full abstract

However, as pre-trained models are scaling up, fully fine-tuning them on donwstream retrieval datasets has a high risk of overfitting. Moreover, in practice, it would be costly to train and store a large model for each task. To overcome the above issues, we present a novel Cross-Modal Adapter for parameter-efficient transfer learning. Inspired by adapter-based methods, we adjust the pre-trained model with a few parameterization layers. However, there are two notable differences. First, our method is designed for the multi-modal domain. Secondly, it allows encoder-level implicit cross-modal interactions between vision and language encoders. Although surprisingly simple, our approach has three notable benefits: (1) reduces the vast majority of fine-tuned parameters, (2) saves training time, and (3) allows all the pre-trained parameters to be fixed, enabling the pre-trained model to be shared across datasets. Extensive experiments demonstrate that, without bells and whistles, our approach outperforms adapter-based methods on image-text retrieval datasets (MSCOCO, Flickr30K) and video-text retrieval datasets (MSR-VTT, DiDeMo, and ActivityNet).

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

[Pattern Recognition 2025] Cross-Modal Adapter for Vision-Language Retrieval

14313PythonNov 16, 20221 years agoApache-2.0
adapterclipdeep-learningmachine-learningparameter-efficient-learning+4 more

Similar Papers

Cite this paper

@article{jiang2022crossmodal,
  title  = {Cross-Modal Adapter for Vision-Language Retrieval},
  author = {Haojun Jiang and Jianke Zhang and Rui Huang and Chunjiang Ge and Zanlin Ni and Shiji Song and Gao Huang},
  year   = {2022},
  eprint = {2211.09623},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.09623}
}

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/2211.09623.svg)](https://codeofpaper.com/paper/2211.09623)

Discussion