Papers › Cross-Modal Adapter for Text-Video Retrieval

Cross-Modal Adapter for Text-Video Retrieval

17 Nov 2022arXiv:2211.09623archive 2025-07-28

Haojun Jiang, Jianke Zhang, Rui Huang, Chunjiang Ge, Zanlin Ni, Jiwen Lu, Jie zhou, Shiji Song, Gao Huang

Text-video retrieval is an important multi-modal learning task, where the goal is to retrieve the most relevant video for a given text query. Recently, pre-trained models, e.g., CLIP, show great potential on this task. However, as pre-trained models are scaling up, fully fine-tuning them on text-video 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 fine-tuning. 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 early cross-modal interactions between CLIP's two encoders. Although surprisingly simple, our approach has three notable benefits: (1) reduces 99.6% of fine-tuned parameters, and alleviates the problem of overfitting, (2) saves approximately 30% of 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, it achieves superior or comparable performance compared to fully fine-tuned methods on MSR-VTT, MSVD, VATEX, ActivityNet, and DiDeMo datasets. The code will be available at \url{https://github.com/LeapLabTHU/Cross-Modal-Adapter}.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2211.09623")

Code

Syntology Ran 8 of 15 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · violated contract; 2 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

leaplabthu/cross-modal-adapter officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 8 ran; 1 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · violated contract
2ran · our draft was wrong
3ran
7unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from leaplabthu/cross-modal-adapter. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

all_gather leaplabthu/cross-modal-adapter/comm.py official repository ran Apache-2.0 (permissive) · d741eb912b24880a · report
check_attr leaplabthu/cross-modal-adapter/modules/modeling_jointvt_upshare_adapter.py official repository ran · violated contract Apache-2.0 (permissive) · 47c2715feba5fd6b · report
compute_metrics leaplabthu/cross-modal-adapter/metrics.py official repository ran fingerprinted Apache-2.0 (permissive) · f45b80d057798fed · report
reduce_dict leaplabthu/cross-modal-adapter/comm.py official repository ran · violated contract Apache-2.0 (permissive) · 2a3280757ce5a198 · report
tensor_text_to_video_metrics leaplabthu/cross-modal-adapter/metrics.py official repository ran Apache-2.0 (permissive) · 66bf2e9b33bd27dd · report
update_attr leaplabthu/cross-modal-adapter/modules/modeling_jointvt_upshare_adapter.py official repository ran · our draft was wrong Apache-2.0 (permissive) · d34a2226d2cf142e · report
url_to_filename leaplabthu/cross-modal-adapter/modules/file_utils.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · af64ec220e8bcdbc · report
warmup_linear leaplabthu/cross-modal-adapter/modules/optimization.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · e0960afdb0d64aa7 · report
cached_path leaplabthu/cross-modal-adapter/modules/file_utils.py official repository unverified Apache-2.0 (permissive) · 349d780dd4a89a37 · report
filename_to_url leaplabthu/cross-modal-adapter/modules/file_utils.py official repository unverified Apache-2.0 (permissive) · db0ac56aaf6e35e6 · report
get_cosine_schedule_with_warmup leaplabthu/cross-modal-adapter/modules/optimization_xpool.py official repository unverified Apache-2.0 (permissive) · 28936c41e64792bd · report
get_linear_schedule_with_warmup leaplabthu/cross-modal-adapter/modules/optimization_xpool.py official repository unverified Apache-2.0 (permissive) · afba2c06a42074fe · report
tensor_video_to_text_sim leaplabthu/cross-modal-adapter/metrics.py official repository unverified Apache-2.0 (permissive) · b6f9f3930836fe3f · report
warmup_constant leaplabthu/cross-modal-adapter/modules/optimization.py official repository unverified Apache-2.0 (permissive) · 59e4e730a9dc5dc6 · report
warmup_cosine leaplabthu/cross-modal-adapter/modules/optimization.py official repository unverified Apache-2.0 (permissive) · 20b3d25ba1b796e5 · report

Tasks

RetrievalVideo Retrievalparameter-efficient fine-tuning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

CLIP

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections