Papers › CAMP: Cross-Modal Adaptive Message Passing for Text-Image Retrieval

CAMP: Cross-Modal Adaptive Message Passing for Text-Image Retrieval

12 Sep 2019ICCV 2019 10arXiv:1909.05506archive 2025-07-28

Zihao Wang, Xihui Liu, Hongsheng Li, Lu Sheng, Junjie Yan, Xiaogang Wang, Jing Shao

Text-image cross-modal retrieval is a challenging task in the field of language and vision. Most previous approaches independently embed images and sentences into a joint embedding space and compare their similarities. However, previous approaches rarely explore the interactions between images and sentences before calculating similarities in the joint space. Intuitively, when matching between images and sentences, human beings would alternatively attend to regions in images and words in sentences, and select the most salient information considering the interaction between both modalities. In this paper, we propose Cross-modal Adaptive Message Passing (CAMP), which adaptively controls the information flow for message passing across modalities. Our approach not only takes comprehensive and fine-grained cross-modal interactions into account, but also properly handles negative pairs and irrelevant information with an adaptive gating scheme. Moreover, instead of conventional joint embedding approaches for text-image matching, we infer the matching score based on the fused features, and propose a hardest negative binary cross-entropy loss for training. Results on COCO and Flickr30k significantly surpass state-of-the-art methods, demonstrating the effectiveness of our approach.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="1909.05506")

Code

Syntology Ran 1 of 9 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · our draft was wrong.

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

ZihaoWang-CV/CAMP_iccv19 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

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

1ran · our draft was wrong
8unverified

Licence: 0 of the 9 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 ZihaoWang-CV/CAMP_iccv19. “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.

cosine_sim ZihaoWang-CV/CAMP_iccv19/model.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 9b0a787b92a87023 · report
EncoderImage ZihaoWang-CV/CAMP_iccv19/model.py official repository unverified Apache-2.0 (permissive) · 2773ab044520c27b · report
collate_fn ZihaoWang-CV/CAMP_iccv19/data.py official repository unverified Apache-2.0 (permissive) · 3519b7d198507efd · report
from_CUHK_json ZihaoWang-CV/CAMP_iccv19/vocab.py official repository unverified Apache-2.0 (permissive) · d5bbbfb834787fc3 · report
from_flickr_json ZihaoWang-CV/CAMP_iccv19/vocab.py official repository unverified Apache-2.0 (permissive) · 4d60d6b4f58a577f · report
get_paths ZihaoWang-CV/CAMP_iccv19/data.py official repository unverified Apache-2.0 (permissive) · 99e6f6b6e105a9a8 · report
l2norm ZihaoWang-CV/CAMP_iccv19/fusion_module.py official repository unverified Apache-2.0 (permissive) · 68fa66add9257783 · report
qkv_attention ZihaoWang-CV/CAMP_iccv19/fusion_module.py official repository unverified Apache-2.0 (permissive) · 0cceed012da71d39 · report
sum_attention ZihaoWang-CV/CAMP_iccv19/fusion_module.py official repository unverified Apache-2.0 (permissive) · c1ec456001cd6c03 · report

Tasks

Cross-Modal RetrievalImage RetrievalRetrieval

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Retrieval Flickr30K 1K test CAMP R@1 51.5 #9 of 18 Archive leaderboard report
Image Retrieval Flickr30K 1K test CAMP R@10 85.3 #9 of 18 Archive leaderboard report
Image Retrieval Flickr30K 1K test CAMP R@5 77.1 #9 of 18 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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