SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1909.05506 · 2019

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

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 9 functions out of this paper's own repositories and ran 7 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.

RepositoryRoleRan
ZihaoWang-CV/CAMP_iccv19 canonical 7 of 9
FunctionStatusWhere it lives
collate_fn Ran ZihaoWang-CV/CAMP_iccv19/data.py
code served (permissive licence) · get_code("3519b7d198507efd")
cosine_sim Ran ZihaoWang-CV/CAMP_iccv19/model.py
code served (permissive licence) · get_code("9b0a787b92a87023")
from_CUHK_json Ran ZihaoWang-CV/CAMP_iccv19/vocab.py
code served (permissive licence) · get_code("d5bbbfb834787fc3")
from_flickr_json Ran ZihaoWang-CV/CAMP_iccv19/vocab.py
code served (permissive licence) · get_code("4d60d6b4f58a577f")
get_paths Ran ZihaoWang-CV/CAMP_iccv19/data.py
code served (permissive licence) · get_code("99e6f6b6e105a9a8")
l2norm Ran ZihaoWang-CV/CAMP_iccv19/fusion_module.py
code served (permissive licence) · get_code("68fa66add9257783")
qkv_attention Ran ZihaoWang-CV/CAMP_iccv19/fusion_module.py
code served (permissive licence) · get_code("0cceed012da71d39")
EncoderImage Not yet run ZihaoWang-CV/CAMP_iccv19/model.py
code served (permissive licence) · get_code("2773ab044520c27b")
sum_attention Not yet run ZihaoWang-CV/CAMP_iccv19/fusion_module.py
code served (permissive licence) · get_code("c1ec456001cd6c03")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1909.05506")
get_code_for_paper("1909.05506")
have("1909.05506")

Connect an agent — have() is free.